From f5cbf9d2bc66edbe927c552334f17f9ce36361b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=9D=E5=85=88=E7=91=9E?= <1490493387@qq.com> Date: Sun, 4 Sep 2022 16:34:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E6=96=B9=E6=8E=88=E6=9D=83=E7=99=BB=E5=BD=95icon=E5=92=8C?= =?UTF-8?q?=E4=BC=98=E5=8C=96svg-icon=E7=BB=84=E4=BB=B6=E5=8F=AF=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 4e60ff0a8d159a789c42b180eeacd2e4a8013916 --- src/assets/icons/qq.svg | 2 +- src/assets/icons/wechat.svg | 2 +- src/components/SvgIcon/index.vue | 14 ++++++++---- src/views/login/components/SocialSignin.vue | 10 ++++----- src/views/system/menu/components/Menu.vue | 24 ++++++++++----------- src/views/system/role/index.vue | 2 +- 6 files changed, 29 insertions(+), 25 deletions(-) diff --git a/src/assets/icons/qq.svg b/src/assets/icons/qq.svg index 5adcf437..98da3953 100644 --- a/src/assets/icons/qq.svg +++ b/src/assets/icons/qq.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/src/assets/icons/wechat.svg b/src/assets/icons/wechat.svg index 5adcf437..35de4bc3 100644 --- a/src/assets/icons/wechat.svg +++ b/src/assets/icons/wechat.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/src/components/SvgIcon/index.vue b/src/components/SvgIcon/index.vue index 1f23cd6a..fa0dce3b 100644 --- a/src/components/SvgIcon/index.vue +++ b/src/components/SvgIcon/index.vue @@ -1,5 +1,9 @@ @@ -18,7 +22,11 @@ const props = defineProps({ }, color: { type: String, - default: '' + default: '#fff' + }, + size: { + type: String, + default: '1em' } }); @@ -27,8 +35,6 @@ const symbolId = computed(() => `#${props.prefix}-${props.iconClass}`);