Skip to content

Commit

Permalink
fix: 修改BreadcrumbProps itemRender类型
Browse files Browse the repository at this point in the history
  • Loading branch information
lihxhit authored and sendya committed Feb 23, 2021
1 parent b8580bd commit 32ebd12
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/RouteContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { InjectionKey, VNodeChild } from 'vue';
import { createContext, useContext } from './hooks/context';
import { MenuDataItem } from './typings';
import { PureSettings } from './defaultSettings';

export interface Route {
path: string;
breadcrumbName: string;
Expand All @@ -14,12 +13,12 @@ export interface BreadcrumbProps {
routes?: Route[];
params?: any;
separator?: VNodeChild;
itemRender?: (
route: Route,
params: any,
routes: Array<Route>,
paths: Array<string>,
) => VNodeChild;
itemRender?: (opts: {
route: Route;
params: any;
routes: Array<Route>;
paths: Array<string>;
}) => VNodeChild;
}

export type BreadcrumbListReturn = Pick<
Expand Down

0 comments on commit 32ebd12

Please sign in to comment.