Browse Source

无JIRA任务 width属性支持 calc

es6
dailer 3 years ago
parent
commit
86c6326994
  1. 2
      src/core/2.base.js

2
src/core/2.base.js

@ -500,7 +500,7 @@ if (!_global.BI) {
if (typeof w === "number") { if (typeof w === "number") {
return w >= 0; return w >= 0;
} else if (typeof w === "string") { } else if (typeof w === "string") {
return /^\d{1,3}(\.\d)?%$/.exec(w) || w == "auto" || /^\d+px$/.exec(w); return /^\d{1,3}(\.\d)?%$/.test(w) || w == "auto" || /^\d+px$/.test(w) || /^calc/.test(w);
} }
}, },

Loading…
Cancel
Save