import { type TreeOption } from 'naive-ui'; import { AnyObject } from '../../../../shared/types'; type IKey = string | number; type ITreeOption = TreeOption & AnyObject; export type Strategy = 'all' | 'child' | 'parent'; export type PTreeOption = { key: IKey; label: string; name: string; labelExpand: string; parentKey?: IKey; parentName: string; innerItemsNum: number; children: undefined | PTreeOption[]; leaf: boolean; originItem: ITreeOption; disabled?: boolean; count?: number; [k: string]: any; }; export type IWordBook = { parent_id_obj: keyof T; parent_name_obj: keyof T; filter_key?: string; empty_enable?: boolean; [key: string]: any; }; export type IWordBookChild = { user_id_obj: keyof T; user_name_obj: keyof T; user_expand_keys?: string[]; leaf_field?: string; leaf_value?: string; }; export {};