vexip-ui
Version:
A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good
1 lines • 929 B
Source Map (JSON)
{"version":3,"file":"symbol.cjs","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":"gFAmBO,MAAMA,EAAiB,uBAE9B,IAAIC,EAAU,EAEP,SAASC,GAAa,CACpB,OAAAD,GACT"}