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
@@ -1,3 +1,8 @@
1
+ ## 3.4.59(2025-07-23)
2
+ fix: 修复album组件和CateTab组件watch和emits重复
3
+
4
+ fix: 修复样式优先级导致form表单labelPosition属性top失效
5
+
1
6
  ## 3.4.58(2025-07-22)
2
7
  fix: 修复样式优先级影响grid宫格组件布局
3
8
 
@@ -114,7 +114,6 @@ export default {
114
114
  }
115
115
  }
116
116
  },
117
- emits: ["albumWidth"],
118
117
  computed: {
119
118
  imageStyle() {
120
119
  return (index1, index2) => {
@@ -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-formlabelPosition="left" :model="model1" :rules="rules" ref="form1"></up-form>
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
@@ -2,7 +2,7 @@
2
2
  "id": "uview-plus",
3
3
  "name": "uview-plus",
4
4
  "displayName": "零云®uview-plus3.0重磅发布,全面的Vue3鸿蒙移动组件库。",
5
- "version": "3.4.58",
5
+ "version": "3.4.59",
6
6
  "description": "零云®uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水。",
7
7
  "keywords": [
8
8
  "uview",
package/theme.scss CHANGED
@@ -38,7 +38,7 @@ $u-info-light: #f4f4f5;
38
38
  // scss混入,为了少写几行#ifndef
39
39
  @mixin flex($direction: row) {
40
40
  /* #ifndef APP-NVUE */
41
- display: flex !important;
41
+ display: flex;
42
42
  /* #endif */
43
- flex-direction: $direction !important;
43
+ flex-direction: $direction;
44
44
  }