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"
:type="type"
:disabled="inputDisabled"
:readonly="readonly"
:autocomplete="autoComplete"
:value="currentValue"
ref="input"
@ -85,6 +86,7 @@
ref="textarea"
v-bind="$attrs"
:disabled="inputDisabled"
:readonly="readonly"
:style="textareaStyle"
@focus="handleFocus"
@blur="handleBlur"
@ -138,6 +140,7 @@
resize: String,
form: String,
disabled: Boolean,
readonly: Boolean,
type: {
type: String,
default: 'text'