vxe-table 3.18.6 → 3.18.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11671,6 +11671,40 @@ const Methods = {
11671
11671
  }
11672
11672
  return $xeTable.$nextTick();
11673
11673
  },
11674
+ getRowGroups() {
11675
+ const $xeTable = this;
11676
+ const props = $xeTable;
11677
+ const reactData = $xeTable;
11678
+ const internalData = $xeTable;
11679
+ const {
11680
+ aggregateConfig,
11681
+ rowGroupConfig
11682
+ } = props;
11683
+ const {
11684
+ fullColumnFieldData
11685
+ } = internalData;
11686
+ if (aggregateConfig || rowGroupConfig) {
11687
+ const {
11688
+ rowGroupList
11689
+ } = reactData;
11690
+ return rowGroupList.map(({
11691
+ field
11692
+ }) => {
11693
+ const colRet = fullColumnFieldData[field];
11694
+ if (colRet) {
11695
+ return colRet.column;
11696
+ }
11697
+ return {
11698
+ field
11699
+ };
11700
+ });
11701
+ }
11702
+ return [];
11703
+ },
11704
+ getRowGroupFields() {
11705
+ const $xeTable = this;
11706
+ return $xeTable.getRowGroups().map(item => item.field);
11707
+ },
11674
11708
  clearRowGroups() {
11675
11709
  const $xeTable = this;
11676
11710
  const props = $xeTable;