Commit e7bcd38124c11884c5b4bfc3044e3881467ae603
1 parent
75abb3bb
实现Inputnumber在focus时选中已有值。
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/components/input-number/input-number.vue
| ... | ... | @@ -250,9 +250,9 @@ |
| 250 | 250 | this.dispatch('FormItem', 'on-form-change', val); |
| 251 | 251 | }); |
| 252 | 252 | }, |
| 253 | - focus () { | |
| 253 | + focus (event) { | |
| 254 | 254 | this.focused = true; |
| 255 | - this.$emit('on-focus'); | |
| 255 | + this.$emit('on-focus', event); | |
| 256 | 256 | }, |
| 257 | 257 | blur () { |
| 258 | 258 | this.focused = false; | ... | ... |