diff --git a/src/components/PageHeader/breadcrumb.d.ts b/src/components/PageHeader/breadcrumb.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..ce6e62442abd6cd190684e7fa53d9fbb8d8e1f4b --- /dev/null +++ b/src/components/PageHeader/breadcrumb.d.ts @@ -0,0 +1,6 @@ +import * as React from 'react'; +import { IPageHeaderProps } from './index' + +export default class BreadcrumbView extends React.Component {} + +export function getBreadcrumb(breadcrumbNameMap: Object, url: string): Object; diff --git a/src/components/PageHeader/index.d.ts b/src/components/PageHeader/index.d.ts index 4f63283432a0f2663a8c0a37bc7fbb584b058190..c64e592b480332a97ab5691a92f4e657d3985d81 100644 --- a/src/components/PageHeader/index.d.ts +++ b/src/components/PageHeader/index.d.ts @@ -20,6 +20,4 @@ export interface IPageHeaderProps { hiddenBreadcrumb?:boolean; } -export function getBreadcrumb(breadcrumbNameMap: Object, url: string): typeof Object; - export default class PageHeader extends React.Component {} diff --git a/src/components/PageHeader/index.test.js b/src/components/PageHeader/index.test.js index e801a5855bd3297bfdc8cdb04ccc1e2e81935455..d22706e9c231db2c8c7e3e2981b5d26f04c86750 100644 --- a/src/components/PageHeader/index.test.js +++ b/src/components/PageHeader/index.test.js @@ -1,4 +1,4 @@ -import { getBreadcrumb } from './index'; +import { getBreadcrumb } from './breadcrumb'; import { urlToList } from '../_utils/pathTools'; const routerData = {