From 1d252424c85cf0192bba57cadc809362e4617959 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com> Date: Thu, 17 Mar 2022 18:00:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=20notice-bar=20?= =?UTF-8?q?=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/docs/zh-CN/components/noticeBar.md | 81 ++++++++++++++++++++++ example/src/router/zh-CN.ts | 11 ++- example/src/view/utils/menus.ts | 8 ++- src/component/noticeBar/index.ts | 2 +- src/component/noticeBar/index.vue | 6 +- src/index.ts | 4 +- 6 files changed, 103 insertions(+), 9 deletions(-) create mode 100644 example/docs/zh-CN/components/noticeBar.md diff --git a/example/docs/zh-CN/components/noticeBar.md b/example/docs/zh-CN/components/noticeBar.md new file mode 100644 index 00000000..11b42565 --- /dev/null +++ b/example/docs/zh-CN/components/noticeBar.md @@ -0,0 +1,81 @@ +::: anchor +::: + +::: title 基本介绍 +::: + +::: describe 全局展示操作反馈信息。 +::: + +::: title 基础使用 +::: + +::: demo + + + + + +::: + +::: title 使用图标 +::: + +::: demo + + + + + +::: + + +::: title 允许关闭 +::: + +::: demo + + + + + +::: \ No newline at end of file diff --git a/example/src/router/zh-CN.ts b/example/src/router/zh-CN.ts index e5dbe100..5282cd46 100644 --- a/example/src/router/zh-CN.ts +++ b/example/src/router/zh-CN.ts @@ -356,13 +356,20 @@ const zhCN = [ path: "/zh-CN/components/fullscreen", component: () => import("../../docs/zh-CN/components/fullscreen.md"), - meta: { title: "结果" }, - }, { + meta: { title: "全屏" }, + }, + { path: "/zh-CN/components/scroll", component: () => import("../../docs/zh-CN/components/scroll.md"), meta: { title: "虚拟滚动" }, }, + { + path: "/zh-CN/components/noticeBar", + component: () => + import("../../docs/zh-CN/components/noticeBar.md"), + meta: { title: "通知栏" }, + }, ], }, ], diff --git a/example/src/view/utils/menus.ts b/example/src/view/utils/menus.ts index 7de9044b..42d65a41 100644 --- a/example/src/view/utils/menus.ts +++ b/example/src/view/utils/menus.ts @@ -330,9 +330,15 @@ const menus = [ { id: 100, title: "虚拟滚动", - subTitle: "result", + subTitle: "scroll", path: "/zh-CN/components/scroll", }, + { + id: 100, + title: "通知栏", + subTitle: "noticeBar", + path: "/zh-CN/components/noticeBar", + }, ], }, { diff --git a/src/component/noticeBar/index.ts b/src/component/noticeBar/index.ts index 389b5c17..5511c18f 100644 --- a/src/component/noticeBar/index.ts +++ b/src/component/noticeBar/index.ts @@ -5,4 +5,4 @@ Component.install = (app: App) => { app.component(Component.name, Component); }; -export default Component; \ No newline at end of file +export default Component; diff --git a/src/component/noticeBar/index.vue b/src/component/noticeBar/index.vue index 0440d313..f1012bd6 100644 --- a/src/component/noticeBar/index.vue +++ b/src/component/noticeBar/index.vue @@ -14,9 +14,9 @@