UNPKG

@extclp/vexip-ui

Version:

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

1 lines 1.16 kB
{"version":3,"file":"symbol.mjs","sources":["../../../components/timeline/symbol.ts"],"sourcesContent":["import type { InjectionKey } from 'vue'\r\n\r\nexport type TimelineItemType = 'primary' | 'info' | 'success' | 'error' | 'warning' | 'disabled'\r\n\r\nexport interface ItemState {\r\n label: string | number,\r\n index: number,\r\n total: number,\r\n height: number,\r\n}\r\n\r\nexport interface TimelineState {\r\n dashed: boolean,\r\n lineColor: string,\r\n spacing: number | string,\r\n alternate: boolean,\r\n horizontal: boolean,\r\n increaseItem: (item: ItemState) => void,\r\n decreaseItem: (item: ItemState) => void,\r\n handleSignalClick: (label: string | number) => void,\r\n}\r\n\r\nexport const TIMELINE_STATE = '__VXP_TIMELINE_STATE' as unknown as InjectionKey<TimelineState>\r\n\r\nexport const timelineItemTypes = Object.freeze<TimelineItemType[]>([\r\n 'primary',\r\n 'info',\r\n 'success',\r\n 'error',\r\n 'warning',\r\n 'disabled',\r\n])\r\n"],"names":["TIMELINE_STATE","timelineItemTypes"],"mappings":"AAsBO,MAAMA,IAAiB,wBAEjBC,IAAoB,OAAO,OAA2B;AAAA,EACjE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;"}