优化表格组件,禁用行,点击全选控件不勾选
This commit is contained in:
parent
e8d9b6312e
commit
2eeec7fe3e
|
@ -178,7 +178,7 @@ export default class menu extends React.Component {
|
|||
})
|
||||
|
||||
let tableData = _.map(this.state.tableData, (item) => {
|
||||
return (item.checked = e.target.checked)
|
||||
return (item.checked = e.target.checked&&!item.disabled)
|
||||
})
|
||||
this.setState({
|
||||
tableData: this.state.tableData
|
||||
|
|
Loading…
Reference in New Issue