Commit d3bf30b4 authored by qingwei.li's avatar qingwei.li Committed by 杨奕

Input: simplify props

parent af6324a9
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment