mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-02 04:08:10 +08:00
Input: bind native attrs to input and textarea element (#10382)
This commit is contained in:
parent
d6b4cf3f13
commit
af4b13d911
@ -23,7 +23,7 @@
|
|||||||
:tabindex="tabindex"
|
:tabindex="tabindex"
|
||||||
v-if="type !== 'textarea'"
|
v-if="type !== 'textarea'"
|
||||||
class="el-input__inner"
|
class="el-input__inner"
|
||||||
v-bind="$props"
|
v-bind="$attrs"
|
||||||
:disabled="inputDisabled"
|
:disabled="inputDisabled"
|
||||||
:autocomplete="autoComplete"
|
:autocomplete="autoComplete"
|
||||||
:value="currentValue"
|
:value="currentValue"
|
||||||
@ -77,7 +77,7 @@
|
|||||||
:value="currentValue"
|
:value="currentValue"
|
||||||
@input="handleInput"
|
@input="handleInput"
|
||||||
ref="textarea"
|
ref="textarea"
|
||||||
v-bind="$props"
|
v-bind="$attrs"
|
||||||
:disabled="inputDisabled"
|
:disabled="inputDisabled"
|
||||||
:style="textareaStyle"
|
:style="textareaStyle"
|
||||||
@focus="handleFocus"
|
@focus="handleFocus"
|
||||||
@ -123,16 +123,9 @@
|
|||||||
|
|
||||||
props: {
|
props: {
|
||||||
value: [String, Number],
|
value: [String, Number],
|
||||||
placeholder: String,
|
|
||||||
size: String,
|
size: String,
|
||||||
resize: String,
|
resize: String,
|
||||||
name: String,
|
|
||||||
form: String,
|
form: String,
|
||||||
id: String,
|
|
||||||
maxlength: Number,
|
|
||||||
minlength: Number,
|
|
||||||
readonly: Boolean,
|
|
||||||
autofocus: Boolean,
|
|
||||||
disabled: Boolean,
|
disabled: Boolean,
|
||||||
type: {
|
type: {
|
||||||
type: String,
|
type: String,
|
||||||
@ -142,17 +135,10 @@
|
|||||||
type: [Boolean, Object],
|
type: [Boolean, Object],
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
rows: {
|
|
||||||
type: Number,
|
|
||||||
default: 2
|
|
||||||
},
|
|
||||||
autoComplete: {
|
autoComplete: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'off'
|
default: 'off'
|
||||||
},
|
},
|
||||||
max: {},
|
|
||||||
min: {},
|
|
||||||
step: {},
|
|
||||||
validateEvent: {
|
validateEvent: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true
|
default: true
|
||||||
|
Loading…
Reference in New Issue
Block a user