feat: 新增 notice-bar 目录

This commit is contained in:
就眠儀式 2022-03-17 17:21:30 +08:00
parent 1ead396b51
commit 797adf2c57
3 changed files with 11 additions and 0 deletions

View File

@ -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;

View File

View File

@ -78,6 +78,7 @@ import LayException from "./component/exception/index";
import LayResult from "./component/result/index"; import LayResult from "./component/result/index";
import LayFullscreen from "./component/fullscreen/index"; import LayFullscreen from "./component/fullscreen/index";
import LayDatePicker from "./component/datePicker/index"; import LayDatePicker from "./component/datePicker/index";
import LayNoticeBar from "./component/noticeBar/index";
import LayConfigProvider from "./provider"; import LayConfigProvider from "./provider";
import { InstallOptions } from "./types"; import { InstallOptions } from "./types";
@ -154,6 +155,7 @@ const components: Record<string, Component> = {
LayFullscreen, LayFullscreen,
LayConfigProvider, LayConfigProvider,
LayDatePicker, LayDatePicker,
LayNoticeBar
}; };
const install = (app: App, options?: InstallOptions): void => { const install = (app: App, options?: InstallOptions): void => {
@ -238,6 +240,7 @@ export {
LayFullscreen, LayFullscreen,
LayConfigProvider, LayConfigProvider,
LayDatePicker, LayDatePicker,
LayNoticeBar
}; };
export { layer }; export { layer };