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
- let value = e.detail.value
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.$emit('blur', e.detail.value)
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sadais-piui",
3
- "version": "1.2.7-beta107",
3
+ "version": "1.2.7-beta108",
4
4
  "description": "piui组件库",
5
5
  "main": "index.js",
6
6
  "scripts": {