@opensig/opendesign
Version:
19 lines (18 loc) • 670 B
TypeScript
import { Component } from 'vue';
export type MockTreeItem = {
label: string;
icon?: Component;
children?: MockTreeItem[];
};
export type MockTreeParams = {
depth: number;
maxChild: number;
minChild: number;
label?: string;
getIcon?: (item: Omit<MockTreeItem, 'icon'>, index: number) => Component | undefined;
overflowText?: string;
};
export declare function mockTreeItem({ depth, maxChild, minChild, label, getIcon, overflowText, }: MockTreeParams & {
label: string;
}): Omit<MockTreeItem, 'icon'>;
export declare function mockTreeArr({ depth, maxChild, minChild, label, getIcon, overflowText }: MockTreeParams): MockTreeItem[];