Skip to content

Commit

Permalink
chore(#117): add value watch model set
Browse files Browse the repository at this point in the history
  • Loading branch information
Decipher committed Nov 2, 2023
1 parent 9fdfed0 commit 089e865
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/Checkbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ export default {
watch: {
model() {
this.$emit('input', this.model)
},
value() {
this.model = this.value
}
}
}
Expand Down

0 comments on commit 089e865

Please sign in to comment.