popup.rect get & set

This commit is contained in:
2023-04-19 09:27:29 +08:00
parent 046ed387e6
commit 92a360cbc2
5 changed files with 54 additions and 17 deletions

View File

@ -6,7 +6,7 @@ function fillCheckbox(container, type, label, charactor = 'check') {
container.appendChild(
createElement('layer', 'check-box-inner', createIcon(type, charactor))
);
if (label instanceof HTMLElement) {
if (label instanceof Element) {
container.appendChild(label);
} else if (label?.length > 0) {
container.appendChild(