@extclp/vexip-ui
Version:
A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good
18 lines (17 loc) • 622 B
TypeScript
import { InjectionKey } from 'vue';
export type CollapseArrowType = 'right' | 'left' | 'none';
export interface PanelState {
tab?: HTMLElement | null;
label: string | number;
expanded: boolean;
setExpanded: (expanded: boolean) => void;
}
export interface CollapseState {
arrowType: CollapseArrowType;
registerPanel(panel: PanelState): void;
unregisterPanel(panel: PanelState): void;
expandPanel(label: string | number, expanded: boolean): void;
refreshLabels: () => void;
}
export declare const COLLAPSE_STATE: InjectionKey<CollapseState>;
export declare function getIndexId(): number;