Skip to content

Commit aa1fba0

Browse files
authored
Merge pull request euvl#20 from ouraios/master
V-model binding
2 parents 834b702 + e83e367 commit aa1fba0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Button.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ export default {
147147
methods: {
148148
toggle (event) {
149149
this.toggled = !this.toggled
150+
this.$emit('input', this.toggled)
150151
this.$emit('change', { value: this.toggled, srcEvent: event })
151152
}
152153
}

0 commit comments

Comments
 (0)