@extclp/vexip-ui
Version:
A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good
1 lines • 1.24 kB
Source Map (JSON)
{"version":3,"file":"symbol.mjs","sources":["../../../components/breadcrumb/symbol.ts"],"sourcesContent":["import type { InjectionKey } from 'vue'\r\n\r\nexport interface BreadcrumbOptions {\r\n label: string,\r\n name?: string | (() => string),\r\n}\r\n\r\nexport type SeparatorRenderFn = (data: { label: string | number }) => any\r\n\r\nexport interface BreadcrumbItemState {\r\n label: string | number,\r\n}\r\n\r\nexport interface BreadcrumbState {\r\n separator: string,\r\n separatorRenderer: null | SeparatorRenderFn,\r\n increaseItem: (item: BreadcrumbItemState) => void,\r\n decreaseItem: (item: BreadcrumbItemState) => void,\r\n handleSelect: (label: string | number) => void,\r\n refreshLabels: () => void,\r\n handleSeparatorClick: (label: string | number) => void,\r\n}\r\n\r\nexport type SelectEvent = (label: string | number) => void\r\n\r\nexport interface BreadcrumbSlots {\r\n default?: () => any,\r\n item?: (params: { option: BreadcrumbOptions, index: number }) => any,\r\n separator?: (params: { label: string | number }) => any,\r\n}\r\n\r\nexport const BREADCRUMB_STATE = '__VXP_BREADCRUMB_STATE' as unknown as InjectionKey<BreadcrumbState>\r\n"],"names":["BREADCRUMB_STATE"],"mappings":"AA+BO,MAAMA,IAAmB;"}