UNPKG

vexip-ui

Version:

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

1 lines 1.24 kB
{"version":3,"file":"symbol.cjs","sources":["../../../components/collapse/symbol.ts"],"sourcesContent":["import type { InjectionKey } from 'vue'\n\nexport type CollapseArrowType = 'right' | 'left' | 'none'\nexport type CollapseAliveType = 'always' | 'mounted' | 'never'\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 alive: boolean | CollapseAliveType,\n registerPanel(panel: PanelState): void,\n unregisterPanel(panel: PanelState): void,\n expandPanel(label: string | number, expanded: boolean): void,\n refreshLabels: () => void,\n}\n\nexport interface CollapsePanelSlots {\n /**\n * @internal\n */\n default?: () => any,\n /**\n * @internal\n */\n title?: () => any,\n arrow?: (params: { expanded: boolean }) => any,\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":"gFAiCO,MAAMA,EAAiB,uBAE9B,IAAIC,EAAU,EAEP,SAASC,GAAa,CACpB,OAAAD,GACT"}