fix: 更新依赖配置,调整计算内容高度公式中的偏移量,移除不必要的空字符串值
This commit is contained in:
@@ -947,10 +947,11 @@ function calculateContent(title2, height, btn, type, isMessage) {
|
||||
if (height && height.indexOf("%") != -1) {
|
||||
height = "100%";
|
||||
}
|
||||
console.log("btn", height + "px");
|
||||
if (btn && btn.length > 0) {
|
||||
if (type == 0) {
|
||||
if (title2) {
|
||||
return "calc(" + height + " - 90px)";
|
||||
return "calc(" + height + " - 135px)";
|
||||
} else {
|
||||
return "calc(" + height + " - 86px)";
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -142,10 +142,11 @@ export function calculateContent(
|
||||
if (height && height.indexOf("%") != -1) {
|
||||
height = "100%";
|
||||
}
|
||||
console.log("btn", height + "px");
|
||||
if (btn && btn.length > 0) {
|
||||
if (type == 0) {
|
||||
if (title) {
|
||||
return "calc(" + height + " - 90px)";
|
||||
return "calc(" + height + " - 135px)";
|
||||
} else {
|
||||
return "calc(" + height + " - 86px)";
|
||||
}
|
||||
|
||||
@@ -23,9 +23,9 @@ export default defineConfig({
|
||||
},
|
||||
terserOptions: {
|
||||
compress: {
|
||||
drop_console: true,
|
||||
drop_console: false,
|
||||
drop_debugger: true,
|
||||
pure_funcs: ["console.log"],
|
||||
pure_funcs: [],
|
||||
},
|
||||
output: {
|
||||
comments: true,
|
||||
|
||||
Reference in New Issue
Block a user