import type { ElTreeV2Props } from '../ele-app/el'; /** * 多选标签显示策略 */ export type ShowCheckedStrategy = 'all' | 'parent' | 'child'; /** * 树配置选项 */ export type TreeOption = Required>; /** * 树数据 */ export type TreeData = Exclude; /** * 树数据项 */ export type DataItem = TreeData[number]; /** * 树数据请求函数 */ export type TreeDataFunction = () => Promise; /** * 树组件属性 */ export interface TreeProps extends Omit { /** 树组件数据 */ data?: TreeData | TreeDataFunction; }