Commit f22234a6 authored by summer789's avatar summer789 Committed by 陈帅

fix:补全PageHeader组件d.ts定义 (#3662)

* fix:补全PageHeader组件d.ts定义

* add itemRender

* prettier add history
parent 2a70fe0d
...@@ -61,6 +61,7 @@ ...@@ -61,6 +61,7 @@
"umi": "^2.4.4" "umi": "^2.4.4"
}, },
"devDependencies": { "devDependencies": {
"@types/history": "^4.7.2",
"@types/react": "^16.8.1", "@types/react": "^16.8.1",
"@types/react-dom": "^16.0.11", "@types/react-dom": "^16.0.11",
"antd-pro-merge-less": "^1.0.0", "antd-pro-merge-less": "^1.0.0",
......
/// <reference types="history" />
import * as React from 'react'; import * as React from 'react';
import { Location } from 'history';
export interface IPageHeaderProps { export interface IPageHeaderProps {
title?: React.ReactNode | string; title?: React.ReactNode | string;
logo?: React.ReactNode | string; logo?: React.ReactNode | string;
...@@ -18,6 +20,9 @@ export interface IPageHeaderProps { ...@@ -18,6 +20,9 @@ export interface IPageHeaderProps {
home?: React.ReactNode; home?: React.ReactNode;
wide?: boolean; wide?: boolean;
hiddenBreadcrumb?: boolean; hiddenBreadcrumb?: boolean;
location?: Location;
itemRender: (menuItem: any) => React.ReactNode;
breadcrumbNameMap?: any;
} }
export default class PageHeader extends React.Component<IPageHeaderProps, any> {} export default class PageHeader extends React.Component<IPageHeaderProps, any> {}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment