update Table
update Table
This commit is contained in:
parent
741b987a33
commit
d3dfdb2618
4 changed files with 76 additions and 91 deletions
|
@ -33,7 +33,7 @@
|
|||
prefixCls: String,
|
||||
style: Object,
|
||||
columns: Array,
|
||||
cloneData: Array,
|
||||
objData: Object,
|
||||
fixed: Boolean
|
||||
},
|
||||
data () {
|
||||
|
@ -43,7 +43,12 @@
|
|||
},
|
||||
computed: {
|
||||
isSelectAll () {
|
||||
return !this.cloneData.some(data => !data._isChecked);
|
||||
let isSelectAll = true;
|
||||
for (let i in this.objData) {
|
||||
if (!this.objData[i]._isChecked) isSelectAll = false;
|
||||
}
|
||||
|
||||
return isSelectAll;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue