标题全选问题解决
This commit is contained in:
parent
aaa63aff05
commit
7d74213895
|
@ -63,6 +63,7 @@ export default function multiSelect(Table, Checkbox) {
|
||||||
*/
|
*/
|
||||||
setChecked(data){
|
setChecked(data){
|
||||||
if(!this.isArray(data))return false;
|
if(!this.isArray(data))return false;
|
||||||
|
if(data.length == 0)return false;
|
||||||
let count = 0;
|
let count = 0;
|
||||||
data.forEach(da=>{
|
data.forEach(da=>{
|
||||||
if(da._checked){
|
if(da._checked){
|
||||||
|
@ -181,7 +182,7 @@ export default function multiSelect(Table, Checkbox) {
|
||||||
checked={record._checked}
|
checked={record._checked}
|
||||||
onClick={this.handleClick}
|
onClick={this.handleClick}
|
||||||
onChange={this.onCheckboxChange(text, record, index)}
|
onChange={this.onCheckboxChange(text, record, index)}
|
||||||
></Checkbox>
|
/>
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
return _defaultColumns.concat(columns);
|
return _defaultColumns.concat(columns);
|
||||||
|
|
Loading…
Reference in New Issue