You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

14 lines
511 B

import { InjectionKey, Slots } from "vue";
export const TreeInjectionKey: InjectionKey<TreeContext> = Symbol('TreeInjectionKey');
type TreeContext = Readonly<{
// renderNode: TypeWithUndefined<RenderNodeFunc>;
// renderIcon: TypeWithUndefined<RenderIconFunc>;
slots: Slots;
// expandedKeys: Set<NodeKey>;
// getSelectedNode: () => TypeWithUndefined<BaseTreeNode>;
// getCheckedNodes: () => BaseTreeNode[];
// getHalfCheckedNodes: () => BaseTreeNode[];
// getExpandedKeys: () => NodeKey[];
}>;