UNPKG

epic-designer

Version:

基于vue3的设计器,可视化开发页面表单

13 lines (12 loc) 519 B
import { ComponentSchema } from '../../../../types/src/index'; import { ComputedRef, InjectionKey, Ref, Slots } from 'vue'; import { TreeProps } from './types'; export interface TreeContext { expandedKeys: Ref<string[]>; handleSelect: (id: string, componentSchema: ComponentSchema) => void; selectedKeys: ComputedRef<string[]>; slots: Slots; treeProps: TreeProps; } export declare const TREE_CONTEXT_KEY: InjectionKey<TreeContext>; export declare function useTreeContext(): TreeContext | undefined;