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.
@@ -9990,6 +9990,29 @@ const Methods = {
9990
9990
  }
9991
9991
  return $xeTable.$nextTick();
9992
9992
  },
9993
+ getRowGroups() {
9994
+ const $xeTable = this;
9995
+ const props = $xeTable;
9996
+ const reactData = $xeTable;
9997
+ const internalData = $xeTable;
9998
+ const { aggregateConfig, rowGroupConfig } = props;
9999
+ const { fullColumnFieldData } = internalData;
10000
+ if (aggregateConfig || rowGroupConfig) {
10001
+ const { rowGroupList } = reactData;
10002
+ return rowGroupList.map(({ field }) => {
10003
+ const colRet = fullColumnFieldData[field];
10004
+ if (colRet) {
10005
+ return colRet.column;
10006
+ }
10007
+ return { field };
10008
+ });
10009
+ }
10010
+ return [];
10011
+ },
10012
+ getRowGroupFields() {
10013
+ const $xeTable = this;
10014
+ return $xeTable.getRowGroups().map(item => item.field);
10015
+ },
9993
10016
  clearRowGroups() {
9994
10017
  const $xeTable = this;
9995
10018
  const props = $xeTable;
package/es/ui/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  import { getFuncText } from './src/utils';
3
- export const version = "3.18.6";
3
+ export const version = "3.18.7";
4
4
  VxeUI.version = version;
5
5
  VxeUI.tableVersion = version;
6
6
  VxeUI.setConfig({
package/es/ui/src/log.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  const { log } = VxeUI;
3
- const version = `table v${"3.18.6"}`;
3
+ const version = `table v${"3.18.7"}`;
4
4
  export const warnLog = log.create('warn', version);
5
5
  export const errLog = log.create('error', version);
package/lib/index.umd.js CHANGED
@@ -2002,7 +2002,7 @@ function getClass(property, params) {
2002
2002
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
2003
2003
 
2004
2004
 
2005
- const version = "3.18.6";
2005
+ const version = "3.18.7";
2006
2006
  core_.VxeUI.version = version;
2007
2007
  core_.VxeUI.tableVersion = version;
2008
2008
  core_.VxeUI.setConfig({
@@ -2678,7 +2678,7 @@ function isNodeElement(elem) {
2678
2678
  const {
2679
2679
  log: log_log
2680
2680
  } = core_.VxeUI;
2681
- const log_version = `table v${"3.18.6"}`;
2681
+ const log_version = `table v${"3.18.7"}`;
2682
2682
  const warnLog = log_log.create('warn', log_version);
2683
2683
  const errLog = log_log.create('error', log_version);
2684
2684
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -17509,6 +17509,40 @@ const Methods = {
17509
17509
  }
17510
17510
  return $xeTable.$nextTick();
17511
17511
  },
17512
+ getRowGroups() {
17513
+ const $xeTable = this;
17514
+ const props = $xeTable;
17515
+ const reactData = $xeTable;
17516
+ const internalData = $xeTable;
17517
+ const {
17518
+ aggregateConfig,
17519
+ rowGroupConfig
17520
+ } = props;
17521
+ const {
17522
+ fullColumnFieldData
17523
+ } = internalData;
17524
+ if (aggregateConfig || rowGroupConfig) {
17525
+ const {
17526
+ rowGroupList
17527
+ } = reactData;
17528
+ return rowGroupList.map(({
17529
+ field
17530
+ }) => {
17531
+ const colRet = fullColumnFieldData[field];
17532
+ if (colRet) {
17533
+ return colRet.column;
17534
+ }
17535
+ return {
17536
+ field
17537
+ };
17538
+ });
17539
+ }
17540
+ return [];
17541
+ },
17542
+ getRowGroupFields() {
17543
+ const $xeTable = this;
17544
+ return $xeTable.getRowGroups().map(item => item.field);
17545
+ },
17512
17546
  clearRowGroups() {
17513
17547
  const $xeTable = this;
17514
17548
  const props = $xeTable;