Browse Source

无jira fix: 修复BI.isWidthOrHeight

es6
zsmj 2 years ago
parent
commit
c181c9864d
  1. 2
      src/core/2.base.js

2
src/core/2.base.js

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

Loading…
Cancel
Save