uview-plus 3.4.58 → 3.4.60
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-calendar/month.vue +1 -1
- package/components/u-cate-tab/u-cate-tab.vue +5 -7
- package/components/u-form/u-form.vue +10 -10
- package/components/u-icon/util.js +6 -6
- package/components/u-input/u-input.vue +1 -1
- package/index.js +0 -3
- package/package.json +1 -1
- package/theme.scss +2 -2
package/changelog.md
CHANGED
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
style.opacity = 0.7
|
|
222
222
|
}
|
|
223
223
|
} else if (this.selected.length === 1) {
|
|
224
|
-
// 之所以需要这么写,是因为
|
|
224
|
+
// 之所以需要这么写,是因为uni-app的iOS客户端的bug
|
|
225
225
|
// 进行还原操作,否则在nvue的iOS,uni-app有bug,会导致诡异的表现
|
|
226
226
|
style.borderTopLeftRadius = '3px'
|
|
227
227
|
style.borderBottomLeftRadius = '3px'
|
|
@@ -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
|
// 开发环境才提示,生产环境不会提示
|
|
@@ -58,12 +58,12 @@ const loadFont = once(() => {
|
|
|
58
58
|
}
|
|
59
59
|
// #endif
|
|
60
60
|
// #ifdef APP-NVUE
|
|
61
|
-
if (this.customFontFamily) {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
61
|
+
// if (this.customFontFamily) {
|
|
62
|
+
// domModule.addRule('fontFace', {
|
|
63
|
+
// 'fontFamily': `${this.customPrefix}-${this.customFontFamily}`,
|
|
64
|
+
// 'src': `url('${this.customFontUrl}')`
|
|
65
|
+
// })
|
|
66
|
+
// }
|
|
67
67
|
// #endif
|
|
68
68
|
return true;
|
|
69
69
|
});
|
|
@@ -206,7 +206,7 @@ export default {
|
|
|
206
206
|
if (this.border === "none") {
|
|
207
207
|
style.padding = "0";
|
|
208
208
|
} else {
|
|
209
|
-
// 由于uni-app的iOS
|
|
209
|
+
// 由于uni-app的iOS端限制,导致需要分开写才有效
|
|
210
210
|
style.paddingTop = "6px";
|
|
211
211
|
style.paddingBottom = "6px";
|
|
212
212
|
style.paddingLeft = "9px";
|
package/index.js
CHANGED
package/package.json
CHANGED
package/theme.scss
CHANGED