@extclp/vexip-ui
Version:
A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good
1 lines • 1.72 kB
Source Map (JSON)
{"version":3,"file":"symbol.mjs","sources":["../../../components/tour/symbol.ts"],"sourcesContent":["import type { InjectionKey, MaybeRef } from 'vue'\nimport type { MaybeElement, MaybeInstance, Placement } from '@vexip-ui/hooks'\nimport type { BubbleType } from '@/components/bubble'\n\nexport type TourType = BubbleType\nexport type TourSignType = 'dot' | 'bar' | 'count'\n\nexport interface TourVirtual {\n getBoundingClientRect(): { top: number, left: number, width: number, height: number }\n}\n\nexport type TourTarget =\n | MaybeRef<string | MaybeInstance | TourVirtual>\n | (() => string | MaybeElement | TourVirtual)\n\nexport interface TourPayload {\n start(): void,\n prev(): void,\n next(autoClose?: boolean): void,\n close(): void\n}\n\nexport type TourStepRenderFn = (payload: TourPayload) => any\n\nexport interface TourStepOptions {\n target?: TourTarget,\n placement?: Placement,\n title?: string,\n content?: string,\n order?: number,\n type?: TourType,\n renderer?: TourStepRenderFn\n}\n\nexport type TourSlotParams = TourPayload & { step: TourStepOptions, index: number }\nexport type TourCommonSLot = (params: TourSlotParams) => any\n\nexport interface TourState {\n increaseStep(step: TourStepOptions): void,\n decreaseStep(step: TourStepOptions): void\n}\n\nexport interface TourSlots {\n /**\n * @internal\n */\n default?: () => any,\n header?: TourCommonSLot,\n title?: TourCommonSLot,\n close?: TourCommonSLot,\n body?: TourCommonSLot,\n footer?: TourCommonSLot,\n sign?: TourCommonSLot,\n actions?: TourCommonSLot\n}\n\nexport const TOUR_STATE = '___VXP_TOUR_STATE' as unknown as InjectionKey<TourState>\n"],"names":["TOUR_STATE"],"mappings":"AAwDO,MAAMA,IAAa;"}