From 5849af1ff09c50c4221bab4ffd861572b3fb90a6 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Mon, 7 Sep 2020 21:02:09 +0800 Subject: [PATCH] chore(Tag): remove useless key --- src/tag/index.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/tag/index.js b/src/tag/index.js index b3965909b..0e279b7b8 100644 --- a/src/tag/index.js +++ b/src/tag/index.js @@ -56,16 +56,12 @@ export default createComponent({ return ( - {show ? ( - + {show && ( + {slots.default?.()} {CloseIcon} - ) : null} + )} ); };