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