mirror of https://github.com/ElemeFE/element
Input: add missing readonly prop (#11967)
parent
f5a0a7e673
commit
5e32b4c772
|
@ -26,6 +26,7 @@
|
||||||
v-bind="$attrs"
|
v-bind="$attrs"
|
||||||
:type="type"
|
:type="type"
|
||||||
:disabled="inputDisabled"
|
:disabled="inputDisabled"
|
||||||
|
:readonly="readonly"
|
||||||
:autocomplete="autoComplete"
|
:autocomplete="autoComplete"
|
||||||
:value="currentValue"
|
:value="currentValue"
|
||||||
ref="input"
|
ref="input"
|
||||||
|
@ -85,6 +86,7 @@
|
||||||
ref="textarea"
|
ref="textarea"
|
||||||
v-bind="$attrs"
|
v-bind="$attrs"
|
||||||
:disabled="inputDisabled"
|
:disabled="inputDisabled"
|
||||||
|
:readonly="readonly"
|
||||||
:style="textareaStyle"
|
:style="textareaStyle"
|
||||||
@focus="handleFocus"
|
@focus="handleFocus"
|
||||||
@blur="handleBlur"
|
@blur="handleBlur"
|
||||||
|
@ -138,6 +140,7 @@
|
||||||
resize: String,
|
resize: String,
|
||||||
form: String,
|
form: String,
|
||||||
disabled: Boolean,
|
disabled: Boolean,
|
||||||
|
readonly: Boolean,
|
||||||
type: {
|
type: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'text'
|
default: 'text'
|
||||||
|
|
Loading…
Reference in New Issue