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 +9 -0
- package/components/u-action-sheet/u-action-sheet.vue +1 -2
- package/components/u-datetime-picker/u-datetime-picker.vue +4 -5
- package/components/u-input/u-input.vue +4 -4
- package/components/u-search/u-search.vue +1 -1
- package/components/u-tabs/u-tabs.vue +1 -0
- package/package.json +1 -1
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
|
-
// 尝试调用
|
|
158
|
-
|
|
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
|
-
// 尝试调用
|
|
181
|
-
|
|
180
|
+
// 尝试调用up-form的验证方法
|
|
181
|
+
if(!this.firstChange) formValidate(this, "change");
|
|
182
182
|
}
|
|
183
183
|
/* #endif */
|
|
184
184
|
this.firstChange = false;
|