From 382454ca0efe21d1b145e61f0cd14755e17473f8 Mon Sep 17 00:00:00 2001 From: lyt-Top <1105290566@qq.com> Date: Thu, 1 Jul 2021 22:33:57 +0800 Subject: [PATCH] =?UTF-8?q?'admin-21.07.01:=E6=96=B0=E5=A2=9E=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8=E9=80=9A=E7=9F=A5=E6=A0=8F/=E5=85=AC=E5=91=8A?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=8F=8A=E6=BC=94=E7=A4=BA=E7=95=8C=E9=9D=A2?= =?UTF-8?q?'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/components/noticeBar/index.vue | 191 +++++++++++++++++++++++++++++ src/i18n/lang/en.ts | 1 + src/i18n/lang/zh-cn.ts | 1 + src/i18n/lang/zh-tw.ts | 1 + src/router/route.ts | 15 +++ src/views/fun/noticeBar/index.vue | 161 ++++++++++++++++++++++++ 7 files changed, 371 insertions(+), 1 deletion(-) create mode 100644 src/components/noticeBar/index.vue create mode 100644 src/views/fun/noticeBar/index.vue 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 @@ + + + + + + + {{ text }} + + + + + + + + + + + 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 @@ + + + + + + + + + + + + + + {{ v }} + + + + + + + + + + + + + + + + + + + + + + + + + +