Browse Source

KERNEL-13158: 写个简单demo

es6
guy 2 years ago
parent
commit
ea20dd6f37
  1. 4
      examples/useContext.html

4
examples/useContext.html

@ -49,8 +49,8 @@
if (!BI.isNumber(pix)) { if (!BI.isNumber(pix)) {
return 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, { var Child = BI.inherit(BI.Widget, {
render: function () { render: function () {

Loading…
Cancel
Save