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

Input: simplify props

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