Skip to content

Commit

Permalink
Update index.vue
Browse files Browse the repository at this point in the history
temporarily fixed the issue (refer to  airyland#2122)
  • Loading branch information
jwolfcn committed Oct 25, 2017
1 parent c897d42 commit 1d6189a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/checklist/index.vue
Expand Up @@ -82,7 +82,7 @@ export default {
this.currentValue = [this.currentValue[length - 1]]
}
const val = pure(this.currentValue)
this.tempValue = val.length ? val[0] : ''
this.tempValue = this.isRadio ? this.value[0] : this.value
}
},
created () {
Expand Down Expand Up @@ -166,7 +166,7 @@ export default {
},
watch: {
tempValue (val) {
const _val = val ? [val] : []
const _val = Array.isArray(val) ? val : [val]
this.$emit('input', _val)
this.$emit('on-change', _val, getLabels(this.options, _val))
},
Expand Down

0 comments on commit 1d6189a

Please sign in to comment.