Input add name props
This commit is contained in:
梁灏 2016-11-28 15:49:03 +08:00
parent d3dfdb2618
commit 731d69a29a
2 changed files with 7 additions and 2 deletions

View file

@ -10,6 +10,7 @@
:disabled="disabled"
:maxlength="maxlength"
:readonly="readonly"
:name="name"
v-model="value"
@keyup.enter="handleEnter"
@focus="handleFocus"
@ -26,6 +27,7 @@
:rows="rows"
:maxlength="maxlength"
:readonly="readonly"
:name="name"
v-model="value"
@keyup.enter="handleEnter"
@focus="handleFocus"
@ -80,6 +82,9 @@
readonly: {
type: Boolean,
default: false
},
name: {
type: String
}
},
data () {