Skip to content

Commit

Permalink
feat(VExpandTransition): add support for group prop
Browse files Browse the repository at this point in the history
  • Loading branch information
ascott18 committed Mar 6, 2024
1 parent 0e3578b commit 5aac664
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,14 @@ export function createJavascriptTransition (
default: mode,
},
disabled: Boolean,
group: Boolean,
},

setup (props, { slots }) {
const tag = props.group ? TransitionGroup : Transition

return () => {
return h(Transition, {
return h(tag as FunctionalComponent, {
name: props.disabled ? '' : name,
css: !props.disabled,
// mode: props.mode, // TODO: vuejs/vue-next#3104
Expand Down

0 comments on commit 5aac664

Please sign in to comment.