Skip to content

Commit 5ff38c4

Browse files
committed
added input:model-value event to the component
1 parent a35d347 commit 5ff38c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/component.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export default {
7171
directives: {
7272
number: directive,
7373
},
74-
emits: ['update:model-value'],
74+
emits: ['update:model-value', 'input:model-value'],
7575
data() {
7676
return {
7777
maskedValue: this.modelValue,
@@ -82,6 +82,7 @@ export default {
8282
input({ target }) {
8383
this.maskedValue = target.value
8484
this.unmaskedValue = target.unmaskedValue
85+
this.$emit('input:model-value', this.emittedValue)
8586
},
8687
change() {
8788
this.$emit('update:model-value', this.emittedValue)

0 commit comments

Comments
 (0)