index.d.ts 991 Bytes
Newer Older
陈小聪's avatar
陈小聪 committed
1
import React from 'react';
2
import { Location } from 'history';
陈小聪's avatar
陈小聪 committed
3 4 5

export interface PageHeaderProps {
  title?: React.ReactNode | string | number;
6 7 8 9
  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;
陈小聪's avatar
陈小聪 committed
12
  breadcrumbList?: Array<{ title: string | number; href?: string }>;
13
  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 | string;
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;
陈小聪's avatar
陈小聪 committed
23 24 25
  className?: string;
  loading?: boolean;
  breadcrumbSeparator?: React.ReactNode;
26 27 28
  location?: Location;
  itemRender: (menuItem: any) => React.ReactNode;
  breadcrumbNameMap?: any;
29 30
}

陈小聪's avatar
陈小聪 committed
31
export default class PageHeader extends React.Component<PageHeaderProps, any> {}