From 797adf2c579db2926e8588fb1fe42e7890ed3b32 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 17:21:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=20notice-bar=20?= =?UTF-8?q?=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/noticeBar/index.ts | 8 ++++++++ src/component/noticeBar/index.vue | 0 src/index.ts | 3 +++ 3 files changed, 11 insertions(+) create mode 100644 src/component/noticeBar/index.ts create mode 100644 src/component/noticeBar/index.vue diff --git a/src/component/noticeBar/index.ts b/src/component/noticeBar/index.ts new file mode 100644 index 00000000..389b5c17 --- /dev/null +++ b/src/component/noticeBar/index.ts @@ -0,0 +1,8 @@ +import type { App } from "vue"; +import Component from "./index.vue"; + +Component.install = (app: App) => { + app.component(Component.name, Component); +}; + +export default Component; \ No newline at end of file diff --git a/src/component/noticeBar/index.vue b/src/component/noticeBar/index.vue new file mode 100644 index 00000000..e69de29b diff --git a/src/index.ts b/src/index.ts index 280a5731..9467e22f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -78,6 +78,7 @@ import LayException from "./component/exception/index"; import LayResult from "./component/result/index"; import LayFullscreen from "./component/fullscreen/index"; import LayDatePicker from "./component/datePicker/index"; +import LayNoticeBar from "./component/noticeBar/index"; import LayConfigProvider from "./provider"; import { InstallOptions } from "./types"; @@ -154,6 +155,7 @@ const components: Record = { LayFullscreen, LayConfigProvider, LayDatePicker, + LayNoticeBar }; const install = (app: App, options?: InstallOptions): void => { @@ -238,6 +240,7 @@ export { LayFullscreen, LayConfigProvider, LayDatePicker, + LayNoticeBar }; export { layer };