Input: add missing readonly prop (#11967)

pull/11977/head
Jikkai Xiao 2018-07-12 16:54:22 +08:00 committed by hetech
parent f5a0a7e673
commit 5e32b4c772
1 changed files with 3 additions and 0 deletions

View File

@ -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'