|
|
@ -54,13 +54,12 @@ export default {
|
|
|
|
handleChange (event) {
|
|
|
|
handleChange (event) {
|
|
|
|
const targetChecked = event.target.checked
|
|
|
|
const targetChecked = event.target.checked
|
|
|
|
this.$emit('input', targetChecked)
|
|
|
|
this.$emit('input', targetChecked)
|
|
|
|
const { name, value, checked, checkboxGroupContext } = this
|
|
|
|
const { checked, checkboxGroupContext } = this
|
|
|
|
if ((checked === undefined && !checkboxGroupContext) || (checkboxGroupContext && checkboxGroupContext.sValue === undefined)) {
|
|
|
|
if ((checked === undefined && !checkboxGroupContext) || (checkboxGroupContext && checkboxGroupContext.sValue === undefined)) {
|
|
|
|
this.sChecked = targetChecked
|
|
|
|
this.sChecked = targetChecked
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const target = {
|
|
|
|
const target = {
|
|
|
|
name,
|
|
|
|
...this.$props,
|
|
|
|
value,
|
|
|
|
|
|
|
|
checked: targetChecked,
|
|
|
|
checked: targetChecked,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.$emit('change', {
|
|
|
|
this.$emit('change', {
|
|
|
|