diff --git a/deps/weex-styler/lib/validator.js b/deps/weex-styler/lib/validator.js index f4924a2d04addfcf8ffca2cb466dc6e17d9062b5..6185af7986a80fbd43bb6e9968536e10dffc9985 100644 --- a/deps/weex-styler/lib/validator.js +++ b/deps/weex-styler/lib/validator.js @@ -711,9 +711,12 @@ var BORDER_VALIDATOR = function BORDER_VALIDATOR (value, name) { if (values && values.length <= 3) { for (let i = 0; i < values.length; i++) { const item = values[i] - if (rules[i].match(item)) { + for (let i = 0; i < rules.length; i++) { + if (rules[i].match(item)) { rules[i].action(item) + break; } + } // style width color pass verification, but did not write in order, such as "1px red solid", should be error let orderIndex = -1 order.forEach((item) => {