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

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