From a8dda5c5862f8080734aa8d011c4fdc9a0b505dc Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Thu, 22 Oct 2020 22:51:50 +0800 Subject: [PATCH] perf: update transition for test --- components/_util/transition.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/_util/transition.tsx b/components/_util/transition.tsx index 029fe22c3..32e02497e 100644 --- a/components/_util/transition.tsx +++ b/components/_util/transition.tsx @@ -44,7 +44,9 @@ if (process.env.NODE_ENV === 'test') { Transition = (_, { slots }) => { return slots.default?.(); }; + Transition.inheritAttrs = false; TransitionGroup = defineComponent({ + inheritAttrs: false, props: ['tag', 'class'], setup(props, { slots }) { const { tag: Tag = Fragment, ...rest } = props;