Skip to content

Commit 7444b8a

Browse files
committed
chore: refine type
1 parent 5081259 commit 7444b8a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/vue-final-modal/src/components/VueFinalModal/useTransition.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ export function useTransition(
4848
const [contentVisible, contentState, contentListeners] = useTransitionState(visible.value)
4949
const [overlayVisible, overlayState, overlayListeners] = useTransitionState(visible.value)
5050

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))
5353

5454
const isReadyToBeDestroyed = computed(() =>
5555
(props.hideOverlay || overlayState.value === TransitionState.Leave)
@@ -110,7 +110,7 @@ export function useTransition(
110110
}
111111
}
112112

113-
function mergeTransition(transition?: VfmTransition | TransitionProps) {
113+
function mergeTransition(transition?: VfmTransition | TransitionProps): TransitionProps {
114114
if (typeof transition === 'string')
115115
return { name: transition, appear: true }
116116
return { appear: true, ...transition }

0 commit comments

Comments
 (0)