mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-11-30 02:57:50 +08:00
fix: checkbox target bug
This commit is contained in:
parent
87216c5527
commit
f9a26e654d
@ -54,13 +54,12 @@ export default {
|
||||
handleChange (event) {
|
||||
const targetChecked = event.target.checked
|
||||
this.$emit('input', targetChecked)
|
||||
const { name, value, checked, checkboxGroupContext } = this
|
||||
const { checked, checkboxGroupContext } = this
|
||||
if ((checked === undefined && !checkboxGroupContext) || (checkboxGroupContext && checkboxGroupContext.sValue === undefined)) {
|
||||
this.sChecked = targetChecked
|
||||
}
|
||||
const target = {
|
||||
name,
|
||||
value,
|
||||
...this.$props,
|
||||
checked: targetChecked,
|
||||
}
|
||||
this.$emit('change', {
|
||||
|
Loading…
Reference in New Issue
Block a user