chore: use computed

This commit is contained in:
syuilo 2023-01-15 08:35:03 +09:00
parent 9ee1b5f30a
commit b66f4ebba1
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ const type = $computed<ModalTypes>(() => {
return props.preferType!; return props.preferType!;
} }
}); });
const isEnableBgTransparent = props.transparentBg && (type === 'popup'); const isEnableBgTransparent = $computed(() => props.transparentBg && (type === 'popup'));
let transitionName = $computed((() => let transitionName = $computed((() =>
defaultStore.state.animation defaultStore.state.animation
? useSendAnime ? useSendAnime