@extclp/vexip-ui
Version:
A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good
1 lines • 1.01 kB
Source Map (JSON)
{"version":3,"file":"symbol.mjs","sources":["../../../components/anchor/symbol.ts"],"sourcesContent":["import type { InjectionKey } from 'vue'\n\nexport interface AnchorLinkOptions {\n to: string,\n label: string,\n title?: string,\n children?: AnchorLinkOptions[]\n}\n\nexport interface AnchorLinkState {\n el?: HTMLElement,\n to: string,\n active: boolean,\n indent: number\n}\n\nexport interface AnchorState {\n currentActive: string,\n increaseLink(state: AnchorLinkState): void,\n decreaseLink(state: AnchorLinkState): void,\n handleActive(label: string): void\n}\n\nexport interface AnchorSlots {\n default?: () => any,\n marker?: () => any\n}\n\nexport const baseIndentWidth = 14 // px\nexport const LINK_STATE = '__VXP_ANCHOR_LINK_STATE' as unknown as InjectionKey<AnchorLinkState>\nexport const ANCHOR_STATE = '__VXP_ANCHOR_STATE' as unknown as InjectionKey<AnchorState>\n"],"names":["baseIndentWidth","LINK_STATE","ANCHOR_STATE"],"mappings":"AA4BO,MAAMA,IAAkB,IAClBC,IAAa,2BACbC,IAAe;"}