uview-plus 3.2.22 → 3.2.24

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,12 @@
1
+ ## 3.2.24(2024-06-11)
2
+ fix: 修复时间选择器confirm事件触发时机导致2次才会触发v-model更新
3
+ ## 3.2.23(2024-05-30)
4
+ fix: #378 H5 u-input 在表单中初始值为空也会触发一次 formValidate(this,"change")事件导致进入页面直接校验了一次
5
+
6
+ fix: #373 搜索组件up-search的@clear事件无效
7
+
8
+ fix: #372 ActionSheet 组件的取消按钮触发区域太小
9
+
1
10
  ## 3.2.22(2024-05-13)
2
11
  上传组件支持微信小程序预览视频
3
12
 
@@ -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>
@@ -188,11 +188,6 @@
188
188
  },
189
189
  // 点击工具栏的确定按钮
190
190
  confirm() {
191
- this.$emit('confirm', {
192
- value: this.innerValue,
193
- mode: this.mode
194
- })
195
-
196
191
  // #ifdef VUE3
197
192
  this.$emit('update:modelValue', this.innerValue)
198
193
  // #endif
@@ -203,6 +198,10 @@
203
198
  this.getInputValue(this.innerValue)
204
199
  this.showByClickInput = false
205
200
  }
201
+ this.$emit('confirm', {
202
+ value: this.innerValue,
203
+ mode: this.mode
204
+ })
206
205
  },
207
206
  //用正则截取输出值,当出现多组数字时,抛出错误
208
207
  intercept(e,type){
@@ -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"
@@ -327,6 +327,7 @@
327
327
  @include flex;
328
328
  align-items: center;
329
329
  justify-content: center;
330
+ cursor: pointer;
330
331
 
331
332
  &--disabled {
332
333
  /* #ifndef APP-NVUE */
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.24",
6
6
  "description": "uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",