mirror of https://github.com/ElemeFE/element
Input: simplify props
parent
af6324a936
commit
d3bf30b48c
|
@ -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 @@
|
||||||
: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>
|
||||||
|
|
Loading…
Reference in New Issue