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/lib/table/src/methods.js
CHANGED
|
@@ -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;
|