From f22234a63e4d2171cd9e732b4ee1ccfdde9ad024 Mon Sep 17 00:00:00 2001
From: summer789 <562550692@qq.com>
Date: Fri, 22 Mar 2019 12:19:57 +0800
Subject: [PATCH] =?UTF-8?q?fix:=E8=A1=A5=E5=85=A8PageHeader=E7=BB=84?=
=?UTF-8?q?=E4=BB=B6d.ts=E5=AE=9A=E4=B9=89=20(#3662)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* fix:补全PageHeader组件d.ts定义
* add itemRender
* prettier add history
---
package.json | 1 +
src/components/PageHeader/index.d.ts | 5 +++++
2 files changed, 6 insertions(+)
diff --git a/package.json b/package.json
index 7966b0fc..3990b358 100644
--- a/package.json
+++ b/package.json
@@ -61,6 +61,7 @@
"umi": "^2.4.4"
},
"devDependencies": {
+ "@types/history": "^4.7.2",
"@types/react": "^16.8.1",
"@types/react-dom": "^16.0.11",
"antd-pro-merge-less": "^1.0.0",
diff --git a/src/components/PageHeader/index.d.ts b/src/components/PageHeader/index.d.ts
index eacbb2de..e3e1f321 100644
--- a/src/components/PageHeader/index.d.ts
+++ b/src/components/PageHeader/index.d.ts
@@ -1,4 +1,6 @@
+///
import * as React from 'react';
+import { Location } from 'history';
export interface IPageHeaderProps {
title?: React.ReactNode | string;
logo?: React.ReactNode | string;
@@ -18,6 +20,9 @@ export interface IPageHeaderProps {
home?: React.ReactNode;
wide?: boolean;
hiddenBreadcrumb?: boolean;
+ location?: Location;
+ itemRender: (menuItem: any) => React.ReactNode;
+ breadcrumbNameMap?: any;
}
export default class PageHeader extends React.Component {}
--
GitLab