File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/vue-final-modal/src/components/VueFinalModal Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ export function useTransition(
48
48
const [ contentVisible , contentState , contentListeners ] = useTransitionState ( visible . value )
49
49
const [ overlayVisible , overlayState , overlayListeners ] = useTransitionState ( visible . value )
50
50
51
- const contentTransition = computed < TransitionProps > ( ( ) => mergeTransition ( props . contentTransition ) )
52
- const overlayTransition = computed < TransitionProps > ( ( ) => mergeTransition ( props . overlayTransition ) )
51
+ const contentTransition = computed ( ( ) => mergeTransition ( props . contentTransition ) )
52
+ const overlayTransition = computed ( ( ) => mergeTransition ( props . overlayTransition ) )
53
53
54
54
const isReadyToBeDestroyed = computed ( ( ) =>
55
55
( props . hideOverlay || overlayState . value === TransitionState . Leave )
@@ -110,7 +110,7 @@ export function useTransition(
110
110
}
111
111
}
112
112
113
- function mergeTransition ( transition ?: VfmTransition | TransitionProps ) {
113
+ function mergeTransition ( transition ?: VfmTransition | TransitionProps ) : TransitionProps {
114
114
if ( typeof transition === 'string' )
115
115
return { name : transition , appear : true }
116
116
return { appear : true , ...transition }
You can’t perform that action at this time.
0 commit comments