t-fighting-design
Version:
Fighting design can quickly build interactive interfaces in vue3 applications, which looks good.
28 lines (27 loc) • 1.12 kB
TypeScript
import type { TreeDataInterface } from './src/interface.d';
import type { DefineComponent, PropType, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
import type { InstallType, TreeAddLevelReturnInterface } from '../_interface';
import Tree from "./src/tree";
export declare const FTree: InstallType<DefineComponent<{
readonly data: {
readonly type: PropType<TreeDataInterface>;
readonly default: () => [];
};
}, {
prop: {
readonly data?: unknown;
} & {
data: TreeDataInterface;
} & {};
treeData: ComputedRef<TreeAddLevelReturnInterface[]>;
handleClick: (item: TreeAddLevelReturnInterface, index: number) => void;
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{
readonly data?: unknown;
} & {
data: TreeDataInterface;
} & {}>, {
data: TreeDataInterface;
}>>;
export declare type TreeInstance = InstanceType<typeof Tree>;
export * from './src/interface.d';
export default Tree;