♻️: 完善layer.notify()入场动画,不再依赖anim属性
This commit is contained in:
@@ -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}`;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user