From 40dbf37c9fb91a0a89e5ff937f7171e1827c1a04 Mon Sep 17 00:00:00 2001 From: Ming <66944708+zym19960704@users.noreply.github.com> Date: Thu, 18 Apr 2024 12:50:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=9D=A2=E5=8C=85=E5=B1=91=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=91=BD=E5=90=8D=E9=97=AE=E9=A2=98,=E8=A1=A5?= =?UTF-8?q?=E5=85=85=E6=96=87=E6=A1=A3=20(#743)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: blankzhang --- components/breadcrumb/index.ts | 6 +++--- docs/.vitepress/components/breadcrumb/index.md | 15 ++++++++++++++- 2 files changed, 17 insertions(+), 4 deletions(-) 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