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

fix: 修改BreadcrumbProps itemRender类型

parent b8580bd1
...@@ -2,7 +2,6 @@ import { InjectionKey, VNodeChild } from 'vue'; ...@@ -2,7 +2,6 @@ import { InjectionKey, VNodeChild } from 'vue';
import { createContext, useContext } from './hooks/context'; import { createContext, useContext } from './hooks/context';
import { MenuDataItem } from './typings'; import { MenuDataItem } from './typings';
import { PureSettings } from './defaultSettings'; import { PureSettings } from './defaultSettings';
export interface Route { export interface Route {
path: string; path: string;
breadcrumbName: string; breadcrumbName: string;
...@@ -14,12 +13,12 @@ export interface BreadcrumbProps { ...@@ -14,12 +13,12 @@ export interface BreadcrumbProps {
routes?: Route[]; routes?: Route[];
params?: any; params?: any;
separator?: VNodeChild; separator?: VNodeChild;
itemRender?: ( itemRender?: (opts: {
route: Route, route: Route;
params: any, params: any;
routes: Array<Route>, routes: Array<Route>;
paths: Array<string>, paths: Array<string>;
) => VNodeChild; }) => VNodeChild;
} }
export type BreadcrumbListReturn = Pick< 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