chore: Add readonly attribute to woot-input component (#3119)

This commit is contained in:
Siddharth Ramesh 2021-09-30 22:07:20 +05:30 committed by GitHub
parent 1083a24a26
commit e6bcf24864
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {