fix(vc-trigger): enable align when status 'motion' to avoid animation of child restart when transition finished. #6656 (#6662)

pull/6800/head
KaygNas 2023-06-25 09:37:50 +08:00 committed by GitHub
parent 0b73afffc4
commit 3838c5da3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -127,7 +127,10 @@ export default defineComponent({
}, },
}); });
const alignDisabled = computed(() => { const alignDisabled = computed(() => {
if ((props.align as any)?.points && (status.value === 'align' || status.value === 'stable')) { if (
(props.align as any)?.points &&
(status.value === 'align' || status.value === 'motion' || status.value === 'stable')
) {
return false; return false;
} }
return true; return true;