Input 组件增加autofocus属性

This commit is contained in:
丁强 2017-04-25 16:52:51 +08:00
parent 05e2dda017
commit f15c216a51
4 changed files with 10 additions and 2 deletions

View file

@ -16,6 +16,7 @@
:name="name"
:value="currentValue"
:number="number"
:autofocus="autofocus"
@keyup.enter="handleEnter"
@focus="handleFocus"
@blur="handleBlur"
@ -98,6 +99,9 @@
number: {
type: Boolean,
default: false
},
autofocus: {
type: String
}
},
data () {