UNPKG

@meleon/uni-ui

Version:

A uniapp components library written in vue3 and typescript

16 lines (15 loc) 576 B
import type { InjectionKey } from 'vue'; import type { TreeNodeEntity } from './index.interface'; export interface TreeContext { key2TreeNode: Map<string, TreeNodeEntity>; checkedKeys: string[]; indeterminateKeys: string[]; expandedKeys: string[]; selectedKeys: string[]; treeNode: TreeNodeEntity[]; onCheck: (checked: boolean, key: string) => void; onSelect: (key: string) => void; onExpand: (expanded: boolean, key: string) => void; } declare const treeInjectionKey: InjectionKey<TreeContext>; export { treeInjectionKey };