From 4c17169436c2e633445fdc206e36614ce56a5306 Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Wed, 18 Mar 2020 11:08:39 +0800 Subject: [PATCH] feat: update checkbox --- components/checkbox/Checkbox.jsx | 1 + components/checkbox/Group.jsx | 1 + 2 files changed, 2 insertions(+) diff --git a/components/checkbox/Checkbox.jsx b/components/checkbox/Checkbox.jsx index 6929e08c2..3334f7cbb 100644 --- a/components/checkbox/Checkbox.jsx +++ b/components/checkbox/Checkbox.jsx @@ -95,6 +95,7 @@ export default { checkboxProps.props.name = checkboxGroup.name; checkboxProps.props.checked = checkboxGroup.sValue.indexOf(props.value) !== -1; checkboxProps.props.disabled = props.disabled || checkboxGroup.disabled; + checkboxProps.props.indeterminate = indeterminate; } else { checkboxProps.on.change = this.handleChange; } diff --git a/components/checkbox/Group.jsx b/components/checkbox/Group.jsx index 626f79deb..da4d63886 100644 --- a/components/checkbox/Group.jsx +++ b/components/checkbox/Group.jsx @@ -99,6 +99,7 @@ export default { prefixCls={prefixCls} key={option.value.toString()} disabled={'disabled' in option ? option.disabled : props.disabled} + indeterminate={option.indeterminate} value={option.value} checked={state.sValue.indexOf(option.value) !== -1} onChange={option.onChange || noop}