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