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:
Shivam Mishra
2024-10-03 12:44:18 +05:30
committed by GitHub
parent edc1fe2363
commit b8d0252511
82 changed files with 224 additions and 221 deletions

View File

@@ -30,6 +30,7 @@ export default {
default: '',
},
},
emits: ['input'],
};
</script>

View File

@@ -42,6 +42,7 @@ export default {
default: '',
},
},
emits: ['input'],
methods: {
onInput(e) {
this.$emit('input', e.target.value);

View File

@@ -3,6 +3,7 @@ export default {
props: {
value: { type: Boolean, default: false },
},
emits: ['input'],
methods: {
onClick() {
this.$emit('input', !this.value);

View File

@@ -46,6 +46,7 @@ export default {
default: '',
},
},
emits: ['input'],
methods: {
onInput(e) {
this.$emit('input', e.target.value);