uview-plus 3.2.22 → 3.2.23

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,10 @@
1
+ ## 3.2.23(2024-05-30)
2
+ fix: #378 H5 u-input 在表单中初始值为空也会触发一次 formValidate(this,"change")事件导致进入页面直接校验了一次
3
+
4
+ fix: #373 搜索组件up-search的@clear事件无效
5
+
6
+ fix: #372 ActionSheet 组件的取消按钮触发区域太小
7
+
1
8
  ## 3.2.22(2024-05-13)
2
9
  上传组件支持微信小程序预览视频
3
10
 
@@ -93,13 +93,12 @@
93
93
  v-if="cancelText"
94
94
  ></u-gap>
95
95
  <view class="u-action-sheet__item-wrap__item u-action-sheet__cancel"
96
- hover-class="u-action-sheet--hover">
96
+ hover-class="u-action-sheet--hover" @tap="cancel">
97
97
  <text
98
98
  @touchmove.stop.prevent
99
99
  :hover-stay-time="150"
100
100
  v-if="cancelText"
101
101
  class="u-action-sheet__cancel-text"
102
- @tap="cancel"
103
102
  >{{cancelText}}</text>
104
103
  </view>
105
104
  </view>
@@ -154,8 +154,8 @@ export default {
154
154
  ) {
155
155
  this.valueChange();
156
156
  } else {
157
- // 尝试调用u-form的验证方法
158
- formValidate(this, "change");
157
+ // 尝试调用up-form的验证方法
158
+ if(!this.firstChange) formValidate(this, "change");
159
159
  }
160
160
  /* #endif */
161
161
  this.firstChange = false;
@@ -177,8 +177,8 @@ export default {
177
177
  ) {
178
178
  this.valueChange();
179
179
  } else {
180
- // 尝试调用u-form的验证方法
181
- formValidate(this, "change");
180
+ // 尝试调用up-form的验证方法
181
+ if(!this.firstChange) formValidate(this, "change");
182
182
  }
183
183
  /* #endif */
184
184
  this.firstChange = false;
@@ -54,7 +54,7 @@
54
54
  <view
55
55
  class="u-search__content__icon u-search__content__close"
56
56
  v-if="keyword && clearabled && focused"
57
- @tap="clear"
57
+ @click="clear"
58
58
  >
59
59
  <u-icon
60
60
  name="close"
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.2.22",
5
+ "version": "3.2.23",
6
6
  "description": "uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",