UNPKG

@extclp/vexip-ui

Version:

A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good

1 lines 928 B
{"version":3,"file":"symbol.mjs","sources":["../../../components/collapse/symbol.ts"],"sourcesContent":["import type { InjectionKey } from 'vue'\n\nexport type CollapseArrowType = 'right' | 'left' | 'none'\n\nexport interface PanelState {\n tab?: HTMLElement | null,\n label: string | number,\n expanded: boolean,\n setExpanded: (expanded: boolean) => void\n}\n\nexport interface CollapseState {\n arrowType: CollapseArrowType,\n registerPanel(panel: PanelState): void,\n unregisterPanel(panel: PanelState): void,\n expandPanel(label: string | number, expanded: boolean): void,\n refreshLabels: () => void\n}\n\nexport const COLLAPSE_STATE = '__VXP_COLLAPSE_STATE' as unknown as InjectionKey<CollapseState>\n\nlet idCount = 0\n\nexport function getIndexId() {\n return idCount++\n}\n"],"names":["COLLAPSE_STATE","idCount","getIndexId"],"mappings":"AAmBO,MAAMA,IAAiB;AAE9B,IAAIC,IAAU;AAEP,SAASC,IAAa;AACpB,SAAAD;AACT;"}