fix: 更新依赖配置,调整计算内容高度公式中的偏移量,移除不必要的空字符串值

This commit is contained in:
2025-08-13 10:13:37 +08:00
parent 03dda7b4ee
commit 3e44d6eb9c
20 changed files with 2676 additions and 2682 deletions

View File

@@ -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

View File

@@ -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)";
}

View File

@@ -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,