1
0
mirror of https://shylinux.com/x/volcanos synced 2025-07-01 12:04:43 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2025-06-13 09:19:51 +08:00
parent 2c4462b4c2
commit e7deec9752

View File

@ -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