sadais-piui 1.2.7-beta106 → 1.2.7-beta108
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.
|
@@ -331,9 +331,8 @@ export default {
|
|
|
331
331
|
this.$emit('click', e)
|
|
332
332
|
},
|
|
333
333
|
handleInput: debounce(function(e) {
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
this.handleChange(value)
|
|
334
|
+
const value = e.detail.value
|
|
335
|
+
this.$emit('input', value)
|
|
337
336
|
}, 50),
|
|
338
337
|
handleFocus() {
|
|
339
338
|
this.focused = true
|
|
@@ -341,11 +340,13 @@ export default {
|
|
|
341
340
|
this.$emit('focus')
|
|
342
341
|
},
|
|
343
342
|
handleBlur(e) {
|
|
343
|
+
const value = e.detail.value
|
|
344
344
|
setTimeout(() => {
|
|
345
345
|
this.focused = false
|
|
346
346
|
}, 100)
|
|
347
347
|
// 失去焦点
|
|
348
|
-
this
|
|
348
|
+
this.handleChange(value)
|
|
349
|
+
this.$emit('blur', value)
|
|
349
350
|
setTimeout(() => {
|
|
350
351
|
this.dispatch('PiFormItem', 'form-blur', e.detail.value)
|
|
351
352
|
}, 40)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
* @Author: zhangzhenfei
|
|
3
3
|
* @Date: 2021-08-13 11:31:57
|
|
4
|
-
* @LastEditTime: 2024-05-29 10:
|
|
4
|
+
* @LastEditTime: 2024-05-29 10:35:00
|
|
5
5
|
* @LastEditors: zhangzhenfei
|
|
6
6
|
* @Description: 图片上传组件
|
|
7
7
|
* @FilePath: /piui-awesome/src/piui/components/pi-upload-img/index.vue
|
|
@@ -557,7 +557,7 @@ export default {
|
|
|
557
557
|
urls = this.imgField
|
|
558
558
|
? this.val.map(img => img[this.imgField])
|
|
559
559
|
: this.val
|
|
560
|
-
current =
|
|
560
|
+
current = img
|
|
561
561
|
}
|
|
562
562
|
|
|
563
563
|
// 过滤出图片类型的文件
|