mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-30 11:17:38 +08:00
Input: simplify props
This commit is contained in:
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
Block a user