index.d.ts 758 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;
20
  hiddenBreadcrumb?:boolean;
21 22
}

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