feat: 新增 notice-bar 组件

This commit is contained in:
就眠儀式
2022-03-17 18:00:28 +08:00
parent 3583a59960
commit 1d252424c8
6 changed files with 103 additions and 9 deletions

View File

@@ -5,4 +5,4 @@ Component.install = (app: App) => {
app.component(Component.name, Component);
};
export default Component;
export default Component;

View File

@@ -14,9 +14,9 @@
<script lang="ts">
import { toRefs, reactive, defineComponent, ref, onMounted, nextTick } from 'vue';
export default defineComponent({
name: 'noticeBar',
name: 'LayNoticeBar',
props: {
// 通知栏模式,可选值为 closeable link
// 选值为 closeable link
mode: {
type: String,
default: () => '',
@@ -61,7 +61,7 @@ export default defineComponent({
type: Boolean,
default: () => false,
},
// 自定义左侧图标
// 自定义左侧图标
leftIcon: {
type: String,
default: () => '',

View File

@@ -155,7 +155,7 @@ const components: Record<string, Component> = {
LayFullscreen,
LayConfigProvider,
LayDatePicker,
LayNoticeBar
LayNoticeBar,
};
const install = (app: App, options?: InstallOptions): void => {
@@ -240,7 +240,7 @@ export {
LayFullscreen,
LayConfigProvider,
LayDatePicker,
LayNoticeBar
LayNoticeBar,
};
export { layer };