epic-designer
Version:
基于vue3的设计器,可视化开发页面表单
14 lines (13 loc) • 501 B
TypeScript
import { InjectionKey, Ref } from 'vue';
export type PanelName = number | string | symbol;
export interface CollapseContext {
accordion: boolean;
activeKeys: Ref<PanelName[]>;
bordered: boolean;
defaultExpandAll: boolean;
isPanelActive: (name: PanelName) => boolean;
registerPanel: (name: PanelName) => void;
togglePanel: (name: PanelName) => void;
unregisterPanel: (name: PanelName) => void;
}
export declare const COLLAPSE_CONTEXT_KEY: InjectionKey<CollapseContext>;