Commit 5e32b4c7 authored by Jikkai Xiao's avatar Jikkai Xiao Committed by hetech

Input: add missing readonly prop (#11967)

parent f5a0a7e6
...@@ -26,6 +26,7 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment