diff --git a/components/breadcrumb/index.ts b/components/breadcrumb/index.ts index 47d98f25..e5462a6f 100644 --- a/components/breadcrumb/index.ts +++ b/components/breadcrumb/index.ts @@ -11,9 +11,9 @@ export const FBreadcrumb = withInstall( Breadcrumb as BreadcrumbType, ); -type BreadCrumbItemType = SFCWithInstall; -export const FBreadCrumbItem = withInstall( - BreadcrumbItem as BreadCrumbItemType, +type BreadcrumbItemType = SFCWithInstall; +export const FBreadcrumbItem = withInstall( + BreadcrumbItem as BreadcrumbItemType, ); export default FBreadcrumb; diff --git a/docs/.vitepress/components/breadcrumb/index.md b/docs/.vitepress/components/breadcrumb/index.md index ef29f961..649cc0df 100644 --- a/docs/.vitepress/components/breadcrumb/index.md +++ b/docs/.vitepress/components/breadcrumb/index.md @@ -5,9 +5,11 @@ ## 组件注册 ```js -import { FBreadcrumb } from '@fesjs/fes-design'; +import { FBreadcrumb,FBreadcrumbItem } from '@fesjs/fes-design'; app.use(FBreadcrumb); +app.use(FBreadcrumbItem); + ``` ## 代码演示 @@ -33,3 +35,14 @@ click.vue | separator | 分隔符,默认为`/` | `string` | `-` | | fontSize | 字体大小 | `number` | `14` | +## Breadcrumb Slots + +| 名称 | 说明 | +| ------- | ------------------- | +| default | BreadcrumbItem 组件 | + +## BreadcrumbItem Slots + +| 名称 | 说明 | +| ------- | -------------- | +| default | 用户自定义内容 | \ No newline at end of file