uview-plus 3.4.57 → 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 +8 -0
- package/components/u-album/u-album.vue +0 -1
- package/components/u-cate-tab/u-cate-tab.vue +5 -7
- package/components/u-form/u-form.vue +10 -10
- package/components/u-grid/u-grid.vue +1 -1
- package/index.js +3 -0
- package/package.json +1 -1
- package/theme.scss +2 -2
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
|
// 开发环境才提示,生产环境不会提示
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
// 在uni-app中应尽量避免使用flex布局以外的方式,因为nvue/uvue等方案都支持flex布局
|
|
106
106
|
// 这里使用grid布局使用为目前20240409uni-app在抖音小程序开启virtualHost时有bug,存在事件失效问题。
|
|
107
107
|
/* #ifndef APP-NVUE */
|
|
108
|
-
display: grid;
|
|
108
|
+
display: grid !important;
|
|
109
109
|
grid-gap: v-bind(gap);
|
|
110
110
|
grid-template-columns: repeat(v-bind(col), 1fr);
|
|
111
111
|
/* #endif */
|
package/index.js
CHANGED
package/package.json
CHANGED
package/theme.scss
CHANGED