From 8f37ee68c98eb4a5de42a4f199608de7f4e13647 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 20 May 2022 20:41:45 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=AE=E6=94=B9SvgIcon=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=EF=BC=8C=E6=9C=AA=E6=89=BE=E5=88=B0class=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=9C=AA=E5=8F=91=E7=8E=B0=E5=9B=BE=E6=A0=87=E9=98=B2?= =?UTF-8?q?=E6=AD=A2=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/SvgIcon/index.vue | 3 ++- frontend/src/icons/svg/non-existent.svg | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 frontend/src/icons/svg/non-existent.svg diff --git a/frontend/src/components/SvgIcon/index.vue b/frontend/src/components/SvgIcon/index.vue index 0446ae9079..aab94ba63a 100644 --- a/frontend/src/components/SvgIcon/index.vue +++ b/frontend/src/components/SvgIcon/index.vue @@ -14,7 +14,8 @@ export default { props: { iconClass: { type: String, - required: true + required: false, + default: 'non-existent' }, className: { type: String, diff --git a/frontend/src/icons/svg/non-existent.svg b/frontend/src/icons/svg/non-existent.svg new file mode 100644 index 0000000000..db9a67d4c9 --- /dev/null +++ b/frontend/src/icons/svg/non-existent.svg @@ -0,0 +1,2 @@ + \ No newline at end of file