fix input native props
@@ -22,10 +22,11 @@
:placeholder="placeholder"
:disabled="disabled"
:readonly="readonly"
- :number="number"
:maxlength="maxlength"
:minlength="minlength"
:autocomplete="autoComplete"
+ :autofocus="autofocus"
+ :form="form"
:value="value"
ref="input"
@input="handleInput"
@@ -49,6 +50,8 @@
:style="textareaStyle"
:rows="rows"
@focus="handleFocus"
@@ -67,38 +70,17 @@
props: {
value: [String, Number],
- placeholder: {
- type: String,
- default: ''
- },
- size: {
- readonly: {
- type: Boolean,
- default: false
- icon: {
- disabled: {
+ placeholder: String,
+ size: String,
+ readonly: Boolean,
+ autofocus: Boolean,
+ icon: String,
+ disabled: Boolean,
type: {
type: String,
default: 'text'
},
- name: {
- number: {
+ name: String,
autosize: {
type: [Boolean, Object],
default: false
@@ -111,13 +93,14 @@
default: 'off'
+ form: String,
maxlength: Number,
minlength: Number
methods: {
handleBlur(event) {
- this.$emit('onblur', this.currentValue);
+ this.$emit('blur', this.currentValue);
this.dispatch('form-item', 'el.form.blur', [this.currentValue]);
inputSelect() {