Skip to content

Commit 32ebd12

Browse files
lihxhitsendya
authored andcommitted
fix: 修改BreadcrumbProps itemRender类型
1 parent b8580bd commit 32ebd12

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/RouteContext.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { InjectionKey, VNodeChild } from 'vue';
22
import { createContext, useContext } from './hooks/context';
33
import { MenuDataItem } from './typings';
44
import { PureSettings } from './defaultSettings';
5-
65
export interface Route {
76
path: string;
87
breadcrumbName: string;
@@ -14,12 +13,12 @@ export interface BreadcrumbProps {
1413
routes?: Route[];
1514
params?: any;
1615
separator?: VNodeChild;
17-
itemRender?: (
18-
route: Route,
19-
params: any,
20-
routes: Array<Route>,
21-
paths: Array<string>,
22-
) => VNodeChild;
16+
itemRender?: (opts: {
17+
route: Route;
18+
params: any;
19+
routes: Array<Route>;
20+
paths: Array<string>;
21+
}) => VNodeChild;
2322
}
2423

2524
export type BreadcrumbListReturn = Pick<

0 commit comments

Comments
 (0)