refactor Components props extracting

This commit is contained in:
Horcrux
2017-02-03 19:43:25 +08:00
parent 9b62d500ce
commit 5bd9b40c17
35 changed files with 208 additions and 276 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
let percentReg = /^(\-?\d+(?:\.\d+)?)(%?)$/;
let percentReg = /^(-?\d+(?:\.\d+)?)(%?)$/;
export default function (percent) {
let matched = percent.match(percentReg);
if (!matched) {