We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a35d347 commit 5ff38c4Copy full SHA for 5ff38c4
src/component.vue
@@ -71,7 +71,7 @@ export default {
71
directives: {
72
number: directive,
73
},
74
- emits: ['update:model-value'],
+ emits: ['update:model-value', 'input:model-value'],
75
data() {
76
return {
77
maskedValue: this.modelValue,
@@ -82,6 +82,7 @@ export default {
82
input({ target }) {
83
this.maskedValue = target.value
84
this.unmaskedValue = target.unmaskedValue
85
+ this.$emit('input:model-value', this.emittedValue)
86
87
change() {
88
this.$emit('update:model-value', this.emittedValue)
0 commit comments