Commit 32ebd126 authored by lihxhit's avatar lihxhit Committed by 言肆

fix: 修改BreadcrumbProps itemRender类型

parent b8580bd1
......@@ -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;
......@@ -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<
......
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