UNPKG

vexip-ui

Version:

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

1 lines 1.18 kB
{"version":3,"file":"symbol.cjs","sources":["../../../components/breadcrumb/symbol.ts"],"sourcesContent":["import type { InjectionKey } from 'vue'\n\nexport interface BreadcrumbOptions {\n label: string,\n name?: string | (() => string),\n}\n\nexport type SeparatorRenderFn = (data: { label: string | number }) => any\n\nexport interface BreadcrumbItemState {\n label: string | number,\n}\n\nexport interface BreadcrumbState {\n separator: string,\n separatorRenderer: null | SeparatorRenderFn,\n increaseItem: (item: BreadcrumbItemState) => void,\n decreaseItem: (item: BreadcrumbItemState) => void,\n handleSelect: (label: string | number) => void,\n refreshLabels: () => void,\n handleSeparatorClick: (label: string | number) => void,\n}\n\nexport type SelectEvent = (label: string | number) => void\n\nexport interface BreadcrumbSlots {\n default?: () => any,\n item?: (params: { option: BreadcrumbOptions, index: number }) => any,\n separator?: (params: { label: string | number }) => any,\n}\n\nexport const BREADCRUMB_STATE = '__VXP_BREADCRUMB_STATE' as unknown as InjectionKey<BreadcrumbState>\n"],"names":["BREADCRUMB_STATE"],"mappings":"gFA+BO,MAAMA,EAAmB"}