From f9a26e654d111ed5d6d31a781e8d121ace03cb1c Mon Sep 17 00:00:00 2001 From: tjz <415800467@qq.com> Date: Sat, 5 May 2018 17:42:33 +0800 Subject: [PATCH] fix: checkbox target bug --- components/checkbox/Checkbox.jsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/checkbox/Checkbox.jsx b/components/checkbox/Checkbox.jsx index d206518dc..623428528 100644 --- a/components/checkbox/Checkbox.jsx +++ b/components/checkbox/Checkbox.jsx @@ -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', {