Skip to content

Commit

Permalink
[fix] radio and checkbox currentValue sync with value which from pare…
Browse files Browse the repository at this point in the history
…nt component
  • Loading branch information
buting2014 committed Jun 26, 2017
1 parent 15db091 commit 2db9fad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/CheckboxGroup/src/CheckboxGroup.vue
Expand Up @@ -42,6 +42,9 @@ export default {
}
},
watch: {
value(val){
this.currentCheck = val
},
currentCheck(val){
this.$emit('input', val)
}
Expand Down
3 changes: 3 additions & 0 deletions packages/RadioGroup/src/RadioGroup.vue
Expand Up @@ -55,6 +55,9 @@ export default {
}
},
watch: {
value(val){
this.currentValue = val
},
currentValue(val){
this.$emit('input', val)
}
Expand Down

0 comments on commit 2db9fad

Please sign in to comment.