perf: update transition for test

pull/3053/head
tangjinzhou 2020-10-22 22:51:50 +08:00
parent 86a90468ba
commit a8dda5c586
1 changed files with 2 additions and 0 deletions

View File

@ -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;