feat: update checkbox
parent
1a61d1fa32
commit
4c17169436
|
@ -95,6 +95,7 @@ export default {
|
||||||
checkboxProps.props.name = checkboxGroup.name;
|
checkboxProps.props.name = checkboxGroup.name;
|
||||||
checkboxProps.props.checked = checkboxGroup.sValue.indexOf(props.value) !== -1;
|
checkboxProps.props.checked = checkboxGroup.sValue.indexOf(props.value) !== -1;
|
||||||
checkboxProps.props.disabled = props.disabled || checkboxGroup.disabled;
|
checkboxProps.props.disabled = props.disabled || checkboxGroup.disabled;
|
||||||
|
checkboxProps.props.indeterminate = indeterminate;
|
||||||
} else {
|
} else {
|
||||||
checkboxProps.on.change = this.handleChange;
|
checkboxProps.on.change = this.handleChange;
|
||||||
}
|
}
|
||||||
|
|
|
@ -99,6 +99,7 @@ export default {
|
||||||
prefixCls={prefixCls}
|
prefixCls={prefixCls}
|
||||||
key={option.value.toString()}
|
key={option.value.toString()}
|
||||||
disabled={'disabled' in option ? option.disabled : props.disabled}
|
disabled={'disabled' in option ? option.disabled : props.disabled}
|
||||||
|
indeterminate={option.indeterminate}
|
||||||
value={option.value}
|
value={option.value}
|
||||||
checked={state.sValue.indexOf(option.value) !== -1}
|
checked={state.sValue.indexOf(option.value) !== -1}
|
||||||
onChange={option.onChange || noop}
|
onChange={option.onChange || noop}
|
||||||
|
|
Loading…
Reference in New Issue