index.d.ts 930 Bytes
Newer Older
1
/// <reference types="history"  />
jim's avatar
jim committed
2
import * as React from 'react';
3
import { Location } from 'history';
jim's avatar
jim committed
4
export interface IPageHeaderProps {
5 6 7 8 9
  title?: React.ReactNode | string;
  logo?: React.ReactNode | string;
  action?: React.ReactNode | string;
  content?: React.ReactNode;
  extraContent?: React.ReactNode;
jim's avatar
jim committed
10
  routes?: any[];
陈帅's avatar
陈帅 committed
11
  params?: any;
12 13
  breadcrumbList?: Array<{ title: React.ReactNode; href?: string }>;
  tabList?: Array<{ key: string; tab: React.ReactNode }>;
afc163's avatar
afc163 committed
14
  tabActiveKey?: string;
15
  tabDefaultActiveKey?: string;
16
  onTabChange?: (key: string) => void;
17
  tabBarExtraContent?: React.ReactNode;
陈帅's avatar
陈帅 committed
18
  linkElement?: React.ReactNode;
jim's avatar
jim committed
19
  style?: React.CSSProperties;
陈帅's avatar
陈帅 committed
20
  home?: React.ReactNode;
陈帅's avatar
陈帅 committed
21
  wide?: boolean;
Rayron Victor's avatar
Rayron Victor committed
22
  hiddenBreadcrumb?: boolean;
23 24 25
  location?: Location;
  itemRender: (menuItem: any) => React.ReactNode;
  breadcrumbNameMap?: any;
26 27
}

jim's avatar
jim committed
28
export default class PageHeader extends React.Component<IPageHeaderProps, any> {}