feat(打印能力): 统一打印精度与预览边距
build.yaml / build (push) Successful in 45s

This commit is contained in:
xiaoqidun committed 2026-10-24 21:59:32 +08:00
1 parent a022c3e636
commit 865ddd47f4
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -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;