uview-plus 3.4.58 → 3.4.59
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
|
@@ -73,7 +73,11 @@
|
|
|
73
73
|
watch: {
|
|
74
74
|
tabList() {
|
|
75
75
|
this.getMenuItemTop()
|
|
76
|
-
}
|
|
76
|
+
},
|
|
77
|
+
current(nval) {
|
|
78
|
+
this.innerCurrent = nval;
|
|
79
|
+
this.leftMenuStatus(this.innerCurrent);
|
|
80
|
+
}
|
|
77
81
|
},
|
|
78
82
|
emits: ['update:current'],
|
|
79
83
|
data() {
|
|
@@ -96,12 +100,6 @@
|
|
|
96
100
|
this.leftMenuStatus(this.innerCurrent);
|
|
97
101
|
this.getMenuItemTop()
|
|
98
102
|
},
|
|
99
|
-
watch: {
|
|
100
|
-
current(nval) {
|
|
101
|
-
this.innerCurrent = nval;
|
|
102
|
-
this.leftMenuStatus(this.innerCurrent);
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
103
|
methods: {
|
|
106
104
|
addUnit,
|
|
107
105
|
// 点击左边的栏目切换
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* @property {String | Number} labelWidth 提示文字的宽度,单位px ( 默认 45 )
|
|
26
26
|
* @property {String} labelAlign lable字体的对齐方式 ( 默认 ‘left' )
|
|
27
27
|
* @property {Object} labelStyle lable的样式,对象形式
|
|
28
|
-
* @example <up-
|
|
28
|
+
* @example <up-form labelPosition="left" :model="model1" :rules="rules" ref="form1"></up-form>
|
|
29
29
|
*/
|
|
30
30
|
export default {
|
|
31
31
|
name: "u-form",
|
|
@@ -190,11 +190,11 @@
|
|
|
190
190
|
});
|
|
191
191
|
errorsRes.push(...errors);
|
|
192
192
|
childErrors.push(...errors);
|
|
193
|
-
}
|
|
194
|
-
//没有配置,或者配置了showErrorMsg为true时候,才修改子组件message,默认没有配置
|
|
195
|
-
if(!options||options?.showErrorMsg==true){
|
|
196
|
-
child.message =
|
|
197
|
-
childErrors[0]?.message ? childErrors[0].message : null;
|
|
193
|
+
}
|
|
194
|
+
//没有配置,或者配置了showErrorMsg为true时候,才修改子组件message,默认没有配置
|
|
195
|
+
if(!options||options?.showErrorMsg==true){
|
|
196
|
+
child.message =
|
|
197
|
+
childErrors[0]?.message ? childErrors[0].message : null;
|
|
198
198
|
}
|
|
199
199
|
if (i == (rules.length - 1)) {
|
|
200
200
|
resolve(errorsRes)
|
|
@@ -219,10 +219,10 @@
|
|
|
219
219
|
});
|
|
220
220
|
});
|
|
221
221
|
},
|
|
222
|
-
/**
|
|
223
|
-
* 校验全部数据
|
|
224
|
-
* @param {Object} options
|
|
225
|
-
* @param {Boolean} options.showErrorMsg -是否显示校验信息,
|
|
222
|
+
/**
|
|
223
|
+
* 校验全部数据
|
|
224
|
+
* @param {Object} options
|
|
225
|
+
* @param {Boolean} options.showErrorMsg -是否显示校验信息,
|
|
226
226
|
*/
|
|
227
227
|
validate(options) {
|
|
228
228
|
// 开发环境才提示,生产环境不会提示
|
package/package.json
CHANGED
package/theme.scss
CHANGED