feat: config.js 支持 isLocked 配置,锁定仅限制位置不影响编辑
This commit is contained in:
@@ -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';
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user