Skip to content

Commit 2b1bc0e

Browse files
committed
Input: add missing readonly prop
1 parent b0a80e0 commit 2b1bc0e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/input/src/input.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
v-bind="$attrs"
2727
:type="type"
2828
:disabled="inputDisabled"
29+
:readonly="readonly"
2930
:autocomplete="autoComplete"
3031
:value="currentValue"
3132
ref="input"
@@ -85,6 +86,7 @@
8586
ref="textarea"
8687
v-bind="$attrs"
8788
:disabled="inputDisabled"
89+
:readonly="readonly"
8890
:style="textareaStyle"
8991
@focus="handleFocus"
9092
@blur="handleBlur"
@@ -138,6 +140,7 @@
138140
resize: String,
139141
form: String,
140142
disabled: Boolean,
143+
readonly: Boolean,
141144
type: {
142145
type: String,
143146
default: 'text'

0 commit comments

Comments
 (0)