优化表格组件,禁用行,点击全选控件不勾选

This commit is contained in:
Apple 2022-08-17 18:03:45 +08:00
parent e8d9b6312e
commit 2eeec7fe3e
1 changed files with 2 additions and 2 deletions

View File

@ -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