This commit is contained in:
tamaina 2022-01-29 15:10:06 +00:00
parent 9825d7ce87
commit eaaccb52da

View file

@ -101,23 +101,20 @@ export default defineComponent({
return () => h( return () => h(
defaultStore.state.animation ? TransitionGroup : 'div', defaultStore.state.animation ? TransitionGroup : 'div',
defaultStore.state.animation ? { {
class: { class: {
'sqadhkmv': true, 'sqadhkmv': true,
'noGap': props.noGap 'noGap': props.noGap
}, },
name: 'list',
tag: 'div',
'data-direction': props.direction, 'data-direction': props.direction,
'data-reversed': props.reversed ? 'true' : 'false', 'data-reversed': props.reversed ? 'true' : 'false',
onBeforeLeave, ...(defaultStore.state.animation ? {
onLeaveCanceled, name: 'list',
} : { tag: 'div',
class: { onBeforeLeave,
'sqadhkmv': true, onLeaveCanceled,
'noGap': props.noGap } : {}),
}, },
},
{ default: renderChildren }); { default: renderChildren });
} }
}); });