From e7deec9752935ec6fe434d9cc35490cc1e37a75c Mon Sep 17 00:00:00 2001 From: shy Date: Fri, 13 Jun 2025 09:19:51 +0800 Subject: [PATCH] add some --- lib/page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/page.js b/lib/page.js index 8caf4524..4be109f1 100644 --- a/lib/page.js +++ b/lib/page.js @@ -37,7 +37,7 @@ Volcanos("page", { if (can.base.isIn(k, "height", "width", "min-height", "max-height", "min-width", "max-width") && parseInt(v) < 0) { return target[key] && (target[key][k] = "") } if (can.base.isIn(k, "height", "width", "min-height", "max-height", "min-width", "max-width", "left", "top", "right", "bottom", "margin-left", "margin-top", "margin", "padding", "font-size") && v && (can.base.isNumber(v) || !can.base.endWith(v, "px"))) { v += "px" } if (can.base.isIn(k, "background-image")) { v = "url("+v+")" } - if (can.base.isIn(k, "background")) { v = "url("+v+")" } + if (can.base.isIn(k, "background") && v) { v = "url("+v+")" } target[key] && (target[key][k] = v) }) }); return target