diff --git a/src/core/components/form/OptionGroup.vue b/src/core/components/form/OptionGroup.vue index cfbd2232d9..e252830a9b 100644 --- a/src/core/components/form/OptionGroup.vue +++ b/src/core/components/form/OptionGroup.vue @@ -7,7 +7,7 @@ + :disable="disable" @update:model-value="udpate" /> @@ -32,6 +32,12 @@ export default { displayCaption: { type: Boolean, default: true }, disable: { type: Boolean, default: false }, }, + emits: ['update:value'], + methods: { + update (value) { + this.$emit('update:value', value); + }, + }, }; diff --git a/src/core/components/form/SearchAddress.vue b/src/core/components/form/SearchAddress.vue index ff50daa820..aa243d7f29 100644 --- a/src/core/components/form/SearchAddress.vue +++ b/src/core/components/form/SearchAddress.vue @@ -33,7 +33,7 @@ export default { disable: { type: Boolean, default: false }, color: { type: String, default: 'white' }, }, - emits: ['blur', 'focus', 'input'], + emits: ['blur', 'focus', 'update:value'], components: { 'ni-button': Button, }, @@ -70,10 +70,10 @@ export default { this.$emit('focus'); }, update (value) { - this.$emit('input', pick(value, ['fullAddress', 'street', 'city', 'zipCode', 'location'])); + this.$emit('update:value', pick(value, ['fullAddress', 'street', 'city', 'zipCode', 'location'])); }, resetValue () { - this.$emit('input', { street: '', zipCode: '', city: '', location: {}, fullAddress: '' }); + this.$emit('update:value', { street: '', zipCode: '', city: '', location: {}, fullAddress: '' }); }, }, }; diff --git a/src/core/components/form/Select.vue b/src/core/components/form/Select.vue index 8ce9a227c5..05b2211c8c 100644 --- a/src/core/components/form/Select.vue +++ b/src/core/components/form/Select.vue @@ -53,6 +53,7 @@ export default { optionSlot: { type: Boolean, default: false }, noBorder: { type: Boolean, default: false }, }, + emits: ['focus', 'blur', 'update:value'], components: { 'ni-button': Button, }, @@ -90,7 +91,7 @@ export default { this.$emit('blur'); }, onInput (val) { - this.$emit('input', val); + this.$emit('update:value', val); this.$refs.selectInput.blur(); }, formatStringForFiltering (str) { diff --git a/src/core/components/modal/Modal.vue b/src/core/components/modal/Modal.vue index 4467b42b31..e3c08fb30b 100644 --- a/src/core/components/modal/Modal.vue +++ b/src/core/components/modal/Modal.vue @@ -1,6 +1,6 @@