sadais-piui 1.2.7-beta107 → 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)
|