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.
- package/es/style.css +1 -1
- package/es/table/src/methods.js +23 -0
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +36 -2
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/methods.js +34 -0
- package/lib/table/src/methods.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +1 -1
- package/packages/table/src/methods.ts +25 -0
- /package/es/{iconfont.1756974415046.ttf → iconfont.1757059014292.ttf} +0 -0
- /package/es/{iconfont.1756974415046.woff → iconfont.1757059014292.woff} +0 -0
- /package/es/{iconfont.1756974415046.woff2 → iconfont.1757059014292.woff2} +0 -0
- /package/lib/{iconfont.1756974415046.ttf → iconfont.1757059014292.ttf} +0 -0
- /package/lib/{iconfont.1756974415046.woff → iconfont.1757059014292.woff} +0 -0
- /package/lib/{iconfont.1756974415046.woff2 → iconfont.1757059014292.woff2} +0 -0
package/es/table/src/methods.js
CHANGED
|
@@ -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
package/es/ui/src/log.js
CHANGED
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.
|
|
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.
|
|
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;
|