From ea20dd6f37837d69aaaf239c8740bfef38978b4f Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 19 Oct 2022 19:24:40 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-13158:=20=E5=86=99=E4=B8=AA=E7=AE=80?= =?UTF-8?q?=E5=8D=95demo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/useContext.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/useContext.html b/examples/useContext.html index 2e736c377..e7213e10d 100644 --- a/examples/useContext.html +++ b/examples/useContext.html @@ -49,8 +49,8 @@ if (!BI.isNumber(pix)) { return pix; } - return `calc(var(--css-scale) * ${pix}px - ${border || 0}})`; - } + return "calc(var(--css-scale) * " + pix + "px)"; + }; var Child = BI.inherit(BI.Widget, { render: function () {