♻️: 完善layer.notify()入场动画,不再依赖anim属性

This commit is contained in:
0o张不歪o0
2022-06-30 21:46:04 +08:00
parent f780ba6625
commit 2664e941fe
4 changed files with 20 additions and 10 deletions

View File

@@ -39,6 +39,7 @@ import {
calculatePhotosArea,
calculateNotifOffset,
removeNotifiyFromQueen,
getNotifyAnimationClass,
} from "../utils";
import useMove from "../composable/useMove";
import useResize from "../composable/useResize";
@@ -530,6 +531,9 @@ const enterActiveClass = computed(() => {
if (type === 4) {
return getDrawerAnimationClass(props.offset);
}
if (type === 6) {
return getNotifyAnimationClass(props.offset);
}
return `layer-anim layer-anim-0${props.anim}`;
});