Merge pull request #3395 from angela-1/dev-inputnumber
实现InputNumber获取焦点时选中已有值,增加on-focus的返回值event。
This commit is contained in:
commit
07e122c682
2 changed files with 8 additions and 2 deletions
|
@ -26,6 +26,7 @@
|
|||
@blur="blur"
|
||||
@keydown.stop="keyDown"
|
||||
@input="change"
|
||||
@mouseup="preventDefault"
|
||||
@change="change"
|
||||
:readonly="readonly || !editable"
|
||||
:name="name"
|
||||
|
@ -250,9 +251,9 @@
|
|||
this.dispatch('FormItem', 'on-form-change', val);
|
||||
});
|
||||
},
|
||||
focus () {
|
||||
focus (event) {
|
||||
this.focused = true;
|
||||
this.$emit('on-focus');
|
||||
this.$emit('on-focus', event);
|
||||
},
|
||||
blur () {
|
||||
this.focused = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue