mirror of
https://gitee.com/openharmony/third_party_weex-loader
synced 2024-11-27 01:20:23 +00:00
update deps/weex-styler/lib/validator.js.
Signed-off-by: 卡哥 <lizhouze@huawei.com>
This commit is contained in:
parent
6a3353502b
commit
8916a15bd2
4
deps/weex-styler/lib/validator.js
vendored
4
deps/weex-styler/lib/validator.js
vendored
@ -711,10 +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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user