Skip to content
Snippets Groups Projects
Commit b66f4ebb authored by syuilo's avatar syuilo
Browse files

chore: use computed

parent 9ee1b5f3
No related branches found
No related tags found
No related merge requests found
...@@ -82,7 +82,7 @@ const type = $computed<ModalTypes>(() => { ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment