mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 15:06:46 +08:00
1 parent
a022c3e636
commit
865ddd47f4
3 files changed
+5
-5
No files matched your search
@@ -45,7 +45,7 @@ export class PrintDialog {
|
||||
for (const [name, value] of Object.entries(saved || {})) {
|
||||
const node = this.el[name];
|
||||
if (node?.type === "checkbox" && typeof value === "boolean") node.checked = value;
|
||||
else if (node && typeof value === "string") node.value = value;
|
||||
else if (node && typeof value === "string" && (!node.options || [...node.options].some(option => option.value === value))) node.value = value;
|
||||
}
|
||||
} catch {}
|
||||
this.mode = this.el.Mode.value;
|
||||
|
||||
Reference in new issue
Block a user