feat: remove usage of .sync and define explicitly emits (#10209)
References - https://v3-migration.vuejs.org/breaking-changes/v-model - https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html
This commit is contained in:
@@ -30,6 +30,7 @@ export default {
|
||||
default: '',
|
||||
},
|
||||
},
|
||||
emits: ['input'],
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -42,6 +42,7 @@ export default {
|
||||
default: '',
|
||||
},
|
||||
},
|
||||
emits: ['input'],
|
||||
methods: {
|
||||
onInput(e) {
|
||||
this.$emit('input', e.target.value);
|
||||
|
||||
@@ -3,6 +3,7 @@ export default {
|
||||
props: {
|
||||
value: { type: Boolean, default: false },
|
||||
},
|
||||
emits: ['input'],
|
||||
methods: {
|
||||
onClick() {
|
||||
this.$emit('input', !this.value);
|
||||
|
||||
@@ -46,6 +46,7 @@ export default {
|
||||
default: '',
|
||||
},
|
||||
},
|
||||
emits: ['input'],
|
||||
methods: {
|
||||
onInput(e) {
|
||||
this.$emit('input', e.target.value);
|
||||
|
||||
Reference in New Issue
Block a user