基础功能完整

This commit is contained in:
cheney
2026-07-16 10:48:58 +08:00
parent 5bff1a186f
commit f14501f586
4 changed files with 31 additions and 36 deletions
-3
View File
@@ -174,7 +174,6 @@ function collectDimValues(field) {
*/
function renderDimensionBar() {
const p = state.currentProject;
const empty = document.getElementById("dim-empty");
const mappingBtn = document.getElementById("btn-dim-mapping");
const items = [
{ key: "idc", enable: "enableIdc", mapping: "idcMapping", field: "idc", box: "dim-idc", sel: "dim-idc-select", map: "dim-idc-mapping" },
@@ -183,14 +182,12 @@ function renderDimensionBar() {
];
if (!p) {
empty.style.display = "";
mappingBtn.style.display = "none";
items.forEach((it) => (document.getElementById(it.box).style.display = "none"));
return;
}
const anyEnabled = p.enableIdc || p.enableEnvironment || p.enableGroup;
empty.style.display = anyEnabled ? "none" : "";
mappingBtn.style.display = anyEnabled ? "" : "none";
items.forEach((it) => {