修复全仓复利开启时单笔预算仍显示:flex 覆盖了 hidden,改为强制隐藏。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-08-12 10:16:47 +08:00
parent a8d6795837
commit 886b6dcc5b
6 changed files with 36 additions and 5 deletions
@@ -295,6 +295,10 @@
input.dataset.envKey = field.key;
input.className = "env-field-input";
row.appendChild(input);
if (field.hidden) {
row.hidden = true;
row.style.display = "none";
}
return row;
}
@@ -367,6 +371,7 @@
if (!budgetRow) return;
const compoundOn = !compoundSel || String(compoundSel.value || "").toLowerCase() === "true";
budgetRow.hidden = compoundOn;
budgetRow.style.display = compoundOn ? "none" : "";
}
function bindCompoundBudgetVisibility(body) {