diff --git a/package.json b/package.json index 2090948..8da54f0 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "prettier": "^2.3.2", "sass": "^1.35.1", "sass-loader": "^12.1.0", - "typescript": "^4.3.4", + "typescript": "^4.3.5", "vite": "^2.3.8", "vue-eslint-parser": "^7.6.0" }, diff --git a/src/components/noticeBar/index.vue b/src/components/noticeBar/index.vue new file mode 100644 index 0000000..048ffd5 --- /dev/null +++ b/src/components/noticeBar/index.vue @@ -0,0 +1,191 @@ + + + + + diff --git a/src/i18n/lang/en.ts b/src/i18n/lang/en.ts index c67bc26..41b6090 100644 --- a/src/i18n/lang/en.ts +++ b/src/i18n/lang/en.ts @@ -24,6 +24,7 @@ export default { funCountup: 'countup', funEchartsTree: 'echartsTree', funSelector: 'funSelector', + funNoticeBar: 'ScrollingNoticeBar', funWangEditor: 'wangEditor', funCropper: 'cropper', funQrcode: 'qrcode', diff --git a/src/i18n/lang/zh-cn.ts b/src/i18n/lang/zh-cn.ts index cfa39d7..87701c3 100644 --- a/src/i18n/lang/zh-cn.ts +++ b/src/i18n/lang/zh-cn.ts @@ -24,6 +24,7 @@ export default { funCountup: 'countup 数字滚动', funEchartsTree: 'echartsTree 树图', funSelector: '图标选择器', + funNoticeBar: '滚动通知栏', funWangEditor: 'wangEditor 编辑器', funCropper: 'cropper 图片裁剪', funQrcode: 'qrcode 二维码生成', diff --git a/src/i18n/lang/zh-tw.ts b/src/i18n/lang/zh-tw.ts index ff8311b..1b3f99c 100644 --- a/src/i18n/lang/zh-tw.ts +++ b/src/i18n/lang/zh-tw.ts @@ -24,6 +24,7 @@ export default { funCountup: 'countup 數位滾動', funEchartsTree: 'echartsTree 樹圖', funSelector: '圖標選擇器', + funNoticeBar: '滾動通知欄', funWangEditor: 'wangEditor 編輯器', funCropper: 'cropper 圖片裁剪', funQrcode: 'qrcode 二維碼生成', diff --git a/src/router/route.ts b/src/router/route.ts index 38b10fe..246fca7 100644 --- a/src/router/route.ts +++ b/src/router/route.ts @@ -392,6 +392,21 @@ export const dynamicRoutes: Array = [ icon: 'iconfont icon-xuanzeqi', }, }, + { + path: '/fun/noticeBar', + name: 'funNoticeBar', + component: () => import('/@/views/fun/noticeBar/index.vue'), + meta: { + title: 'message.router.funNoticeBar', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + auth: ['admin', 'test'], + icon: 'el-icon-bell', + }, + }, { path: '/fun/wangEditor', name: 'funWangEditor', diff --git a/src/views/fun/noticeBar/index.vue b/src/views/fun/noticeBar/index.vue new file mode 100644 index 0000000..918d7d0 --- /dev/null +++ b/src/views/fun/noticeBar/index.vue @@ -0,0 +1,161 @@ + + +