uview-plus 3.3.26 → 3.3.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/changelog.md
CHANGED
|
@@ -152,7 +152,10 @@
|
|
|
152
152
|
// 手动设置校验的规则,如果规则中有函数的话,微信小程序中会过滤掉,所以只能手动调用设置规则
|
|
153
153
|
setRules(rules) {
|
|
154
154
|
// 判断是否有规则
|
|
155
|
-
if (rules.length === 0)
|
|
155
|
+
if (rules.length === 0) {
|
|
156
|
+
this.itemRules = [];
|
|
157
|
+
return
|
|
158
|
+
};
|
|
156
159
|
this.itemRules = rules;
|
|
157
160
|
},
|
|
158
161
|
// 获取父组件的参数
|