标题全选问题解决

This commit is contained in:
“jonyshi” 2018-12-04 16:18:02 +08:00
parent aaa63aff05
commit 7d74213895
1 changed files with 2 additions and 1 deletions

View File

@ -63,6 +63,7 @@ export default function multiSelect(Table, Checkbox) {
*/
setChecked(data){
if(!this.isArray(data))return false;
if(data.length == 0)return false;
let count = 0;
data.forEach(da=>{
if(da._checked){
@ -181,7 +182,7 @@ export default function multiSelect(Table, Checkbox) {
checked={record._checked}
onClick={this.handleClick}
onChange={this.onCheckboxChange(text, record, index)}
></Checkbox>
/>
}
}]
return _defaultColumns.concat(columns);