From 9c6a9fb47cd83876bf8316e9a9b26cb7de03cd25 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Mon, 27 Feb 2023 16:06:26 +0800 Subject: [PATCH] fix: tag warning --- components/tag/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/tag/index.tsx b/components/tag/index.tsx index ef201c68d..04073c70e 100644 --- a/components/tag/index.tsx +++ b/components/tag/index.tsx @@ -48,7 +48,7 @@ const Tag = defineComponent({ // Warning for deprecated usage if (process.env.NODE_ENV !== 'production') { warning( - !('visible' in props), + props.visible === undefined, 'Tag', '`visible` is deprecated, please use `` instead.', );