From a196430d8518e3836f3f3a660c8af12a5534711e Mon Sep 17 00:00:00 2001 From: taojinlong Date: Tue, 8 Jun 2021 12:16:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=BF=E6=8D=A2svg=20logo=E5=9B=BE?= =?UTF-8?q?=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/SvgIcon/index.vue | 10 ++- frontend/src/icons/svg/DataEase.svg | 86 +++++++++++++++++++ frontend/src/layout/components/Topbar.vue | 3 +- frontend/src/styles/index.scss | 10 +++ frontend/src/utils/permission.js | 1 - frontend/src/views/login/index.vue | 4 +- .../src/views/panel/list/EditPanel/index.vue | 1 - 7 files changed, 108 insertions(+), 7 deletions(-) create mode 100644 frontend/src/icons/svg/DataEase.svg diff --git a/frontend/src/components/SvgIcon/index.vue b/frontend/src/components/SvgIcon/index.vue index 9a3318e5e6..0446ae9079 100644 --- a/frontend/src/components/SvgIcon/index.vue +++ b/frontend/src/components/SvgIcon/index.vue @@ -19,6 +19,10 @@ export default { className: { type: String, default: '' + }, + customClass: { + type: String, + default: '' } }, computed: { @@ -31,9 +35,11 @@ export default { svgClass() { if (this.className) { return 'svg-icon ' + this.className - } else { - return 'svg-icon' } + if (this.customClass) { + return this.customClass + } + return 'svg-icon' }, styleExternalIcon() { return { diff --git a/frontend/src/icons/svg/DataEase.svg b/frontend/src/icons/svg/DataEase.svg new file mode 100644 index 0000000000..c3fdc13e07 --- /dev/null +++ b/frontend/src/icons/svg/DataEase.svg @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/layout/components/Topbar.vue b/frontend/src/layout/components/Topbar.vue index 03c016a265..efc96b11ee 100644 --- a/frontend/src/layout/components/Topbar.vue +++ b/frontend/src/layout/components/Topbar.vue @@ -1,7 +1,8 @@