Input: simplify props

This commit is contained in:
qingwei.li 2017-04-28 17:32:06 +08:00 committed by 杨奕
parent af6324a936
commit d3bf30b48c

View File

@ -28,19 +28,8 @@
<input
v-if="type !== 'textarea'"
class="el-input__inner"
:type="type"
:name="name"
:placeholder="placeholder"
:disabled="disabled"
:readonly="readonly"
:maxlength="maxlength"
:minlength="minlength"
v-bind="$props"
:autocomplete="autoComplete"
:autofocus="autofocus"
:min="min"
:max="max"
:step="step"
:form="form"
:value="currentValue"
ref="input"
@input="handleInput"
@ -59,16 +48,8 @@
:value="currentValue"
@input="handleInput"
ref="textarea"
:name="name"
:placeholder="placeholder"
:disabled="disabled"
v-bind="$props"
:style="textareaStyle"
:readonly="readonly"
:rows="rows"
:form="form"
:autofocus="autofocus"
:maxlength="maxlength"
:minlength="minlength"
@focus="handleFocus"
@blur="handleBlur">
</textarea>