From 3b3cd76e5119fcd1cddf550339fc41b8559fd5b9 Mon Sep 17 00:00:00 2001 From: iczer <1126263215@qq.com> Date: Thu, 27 Aug 2020 19:05:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20add=20scoped=20slot=20for=20icon=20in?= =?UTF-8?q?=20menu.js;=20:star:=20=E6=96=B0=E5=A2=9E=EF=BC=9A=E4=B8=BA=20m?= =?UTF-8?q?enus.js=20=E7=9A=84=20icon=20=E5=A2=9E=E5=8A=A0=20scoped=20slot?= =?UTF-8?q?=20API=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/menu/menu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/menu/menu.js b/src/components/menu/menu.js index d21ad6d..0008e7c 100644 --- a/src/components/menu/menu.js +++ b/src/components/menu/menu.js @@ -120,7 +120,7 @@ export default { }, methods: { renderIcon: function (h, icon, key) { - if (this.$scopedSlots.icon) { + if (this.$scopedSlots.icon && icon && icon !== 'none') { return this.$scopedSlots.icon({icon, key}) } return !icon || icon == 'none' ? null : h(Icon, {props: {type: icon}})