Refactor
parent
ff70ffe1fc
commit
418a53af41
|
@ -836,8 +836,11 @@ export default {
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
isRowGroupExpanded(rowData) {
|
isRowGroupExpanded(rowData) {
|
||||||
|
if (this.expandableRowGroups && this.expandedRowGroups) {
|
||||||
let groupFieldValue = ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
|
let groupFieldValue = ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
|
||||||
return this.expandableRowGroups && this.expandedRowGroups && this.expandedRowGroups.indexOf(groupFieldValue) > -1;
|
return this.expandedRowGroups.indexOf(groupFieldValue) > -1;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
},
|
},
|
||||||
getRowKey(rowData, index) {
|
getRowKey(rowData, index) {
|
||||||
return this.dataKey ? ObjectUtils.resolveFieldData(rowData, this.dataKey): index;
|
return this.dataKey ? ObjectUtils.resolveFieldData(rowData, this.dataKey): index;
|
||||||
|
|
Loading…
Reference in New Issue