chore: Add readonly attribute to woot-input component (#3119)
This commit is contained in:
parent
1083a24a26
commit
e6bcf24864
1 changed files with 5 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
||||||
:value="value"
|
:value="value"
|
||||||
:type="type"
|
:type="type"
|
||||||
:placeholder="placeholder"
|
:placeholder="placeholder"
|
||||||
|
:readonly="readonly"
|
||||||
@input="onChange"
|
@input="onChange"
|
||||||
@blur="onBlur"
|
@blur="onBlur"
|
||||||
/>
|
/>
|
||||||
|
@ -42,6 +43,10 @@ export default {
|
||||||
type: String,
|
type: String,
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
|
readonly: {
|
||||||
|
type: Boolean,
|
||||||
|
deafaut: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onChange(e) {
|
onChange(e) {
|
||||||
|
|
Loading…
Reference in a new issue