feat: config.js 支持 isLocked 配置,锁定仅限制位置不影响编辑

This commit is contained in:
2026-05-15 15:45:45 +08:00
parent 396559b2ec
commit 9e0a7c083d
2 changed files with 10 additions and 3 deletions

View File

@@ -274,6 +274,10 @@
el.style.top = cfg.top + 'px';
if (cfg.fontWeight) el.style.fontWeight = cfg.fontWeight;
if (cfg.placeholder) el.dataset.placeholder = cfg.placeholder;
if (cfg.isLocked) {
el.classList.add('locked');
el.dataset.locked = 'true';
}
}
});
}