🐛(layer): 修复 drawer 出场动画不生效

This commit is contained in:
就眠儀式
2022-06-27 13:55:50 +08:00
parent edad4c7269
commit f3aaadee00
5 changed files with 35 additions and 25 deletions

View File

@@ -112,18 +112,15 @@ export function calculateOffset(offset: any, area: any, type: any) {
export function calculateType(modalType: number | string) {
if (modalType === "dialog" || modalType == 0) {
return 0;
} else if (
modalType === "page" ||
modalType === "drawer" ||
modalType == 1 ||
modalType == 4
) {
} else if (modalType === "page" || modalType == 1) {
return 1;
} else if (modalType === "iframe" || modalType == 2) {
return 2;
} else if (modalType === "loading" || modalType == 3) {
return 3;
} else if (modalType === "photos") {
} else if (modalType === "drawer" || modalType == 4) {
return 4;
} else if (modalType === "photos") {
return 5;
}
return 0;