Commit 7a8a4e30 by qiuxia

修正CheckboxItem1组件

parent 53922b4e
......@@ -56,10 +56,9 @@ export class CheckboxItem1 extends Component{
{
const {InputProps,ItemProps,...res} = this.props
const help = (InputProps && InputProps.formBlur) || this.state.hadBlur ? InputProps.help :''
console.log(InputProps.value)
return (
<FormItem validateStatus={help?"error":null} help={help} {...ItemProps}>
<Checkbox {...InputProps} {...res} checked={InputProps.value=='0'?true:false} onBlur={this.setBlur}/>
<Checkbox {...InputProps} {...res} defaultChecked={InputProps.value=='0'?true:false} onBlur={this.setBlur}/>
</FormItem>
)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment