vue-devui
Version:
DevUI components based on Vite and Vue3
23 lines (22 loc) • 976 B
TypeScript
import { SetupContext } from 'vue';
import { IInnerTreeNode, ITreeNode, IUseCore, IUseTree } from './use-tree-types';
export declare const DEFAULT_TREE_PLUGINS: ((data: import("vue").Ref<IInnerTreeNode[]>, core: IUseCore, context: {
attrs: {
[x: string]: unknown;
};
slots: Readonly<{
[name: string]: import("vue").Slot<any> | undefined;
}>;
emit: (event: string, ...args: any[]) => void;
expose: (exposed?: Record<string, any> | undefined) => void;
} | {
attrs: {
[x: string]: unknown;
};
slots: Readonly<{
[name: string]: import("vue").Slot<any> | undefined;
}>;
emit: (event: string, ...args: any[]) => void;
expose: (exposed?: Record<string, any> | undefined) => void;
}, lazyLode: import("./use-tree-types").IUseLazyLoad) => import("./use-tree-types").IUseToggle)[];
export declare function useTree(tree: ITreeNode[], plugins: never[] | undefined, context: SetupContext): Partial<IUseTree>;