UNPKG

element-plus

Version:

A Component Library for Vue 3

1 lines 1.35 kB
{"version":3,"file":"breadcrumb-item.mjs","names":[],"sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb-item.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type { RouteLocationRaw } from 'vue-router'\n\nexport interface BreadcrumbItemProps {\n /**\n * @description target route of the link, same as `to` of `vue-router`\n */\n to?: RouteLocationRaw\n /**\n * @description if `true`, the navigation will not leave a history record\n */\n replace?: boolean\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `BreadcrumbItemProps` instead.\n */\nexport const breadcrumbItemProps = buildProps({\n /**\n * @description target route of the link, same as `to` of `vue-router`\n */\n to: {\n type: definePropType<RouteLocationRaw>([String, Object]),\n default: '',\n },\n /**\n * @description if `true`, the navigation will not leave a history record\n */\n replace: Boolean,\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `BreadcrumbItemProps` instead.\n */\nexport type BreadcrumbItemPropsPublic = ExtractPublicPropTypes<\n typeof breadcrumbItemProps\n>\n"],"mappings":";;;;;;AAmBA,MAAa,sBAAsB,WAAW;CAI5C,IAAI;EACF,MAAM,eAAiC,CAAC,QAAQ,OAAO,CAAC;EACxD,SAAS;EACV;CAID,SAAS;CACV,CAAU"}