🐛(component): 修复 drawer content 高度异常

This commit is contained in:
sight 2022-07-20 21:16:48 +08:00
parent 8a0db60bed
commit 66c6443a3b

View File

@ -150,7 +150,7 @@ export function calculateContent(
return "calc(" + height + " - 86px)"; return "calc(" + height + " - 86px)";
} }
} }
if (type == 1) { if (type == 1 || type == 4) {
if (title) { if (title) {
return "calc(" + height + " - 102px)"; return "calc(" + height + " - 102px)";
} else { } else {
@ -172,7 +172,7 @@ export function calculateContent(
return isMessage ? height : "calc(" + height + " - 86px)"; return isMessage ? height : "calc(" + height + " - 86px)";
} }
} }
if (type == 1) { if (type == 1 || type == 4) {
if (title) { if (title) {
return "calc(" + height + " - 51px)"; return "calc(" + height + " - 51px)";
} else { } else {