vxe-table 3.17.0-beta.8 → 3.17.0-beta.9
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/cell.js +5 -5
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +7 -6
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/cell.js +5 -4
- package/lib/table/src/cell.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/cell.ts +5 -5
- /package/es/{iconfont.1753445505513.ttf → iconfont.1753497303145.ttf} +0 -0
- /package/es/{iconfont.1753445505513.woff → iconfont.1753497303145.woff} +0 -0
- /package/es/{iconfont.1753445505513.woff2 → iconfont.1753497303145.woff2} +0 -0
- /package/lib/{iconfont.1753445505513.ttf → iconfont.1753497303145.ttf} +0 -0
- /package/lib/{iconfont.1753445505513.woff → iconfont.1753497303145.woff} +0 -0
- /package/lib/{iconfont.1753445505513.woff2 → iconfont.1753497303145.woff2} +0 -0
package/es/table/src/cell.js
CHANGED
|
@@ -375,7 +375,7 @@ export const Cell = {
|
|
|
375
375
|
const { fullColumnFieldData } = tableInternalData;
|
|
376
376
|
const aggregateOpts = $table.computeAggregateOpts;
|
|
377
377
|
const { mode, showTotal, totalMethod, countFields, contentMethod, mapChildrenField } = aggregateOpts;
|
|
378
|
-
const
|
|
378
|
+
const aggCalcMethod = aggregateOpts.calcValuesMethod || aggregateOpts.countMethod || aggregateOpts.aggregateMethod;
|
|
379
379
|
const groupField = aggRow.groupField;
|
|
380
380
|
const groupContent = aggRow.groupContent;
|
|
381
381
|
const childList = mapChildrenField ? (aggRow[mapChildrenField] || []) : [];
|
|
@@ -409,9 +409,9 @@ export const Cell = {
|
|
|
409
409
|
cellValue = $table.getPivotTableAggregateCellAggValue(params);
|
|
410
410
|
}
|
|
411
411
|
else if (aggFunc === true || (countFields && countFields.includes(field))) {
|
|
412
|
-
if (
|
|
412
|
+
if (aggCalcMethod) {
|
|
413
413
|
ctParams.aggValue = childCount;
|
|
414
|
-
cellValue = `${
|
|
414
|
+
cellValue = `${aggCalcMethod(ctParams)}`;
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
}
|
|
@@ -461,14 +461,14 @@ export const Cell = {
|
|
|
461
461
|
const { rowGroupExpandedFlag } = tableReactData;
|
|
462
462
|
const { rowGroupExpandedMaps } = tableInternalData;
|
|
463
463
|
const aggregateOpts = $table.computeAggregateOpts;
|
|
464
|
-
const { padding, indent } = aggregateOpts;
|
|
464
|
+
const { mode, padding, indent } = aggregateOpts;
|
|
465
465
|
const rowid = getRowid($table, row);
|
|
466
466
|
const isExpand = !!rowGroupExpandedFlag && !!rowGroupExpandedMaps[rowid];
|
|
467
467
|
return h('div', {
|
|
468
468
|
class: ['vxe-row-group--tree-node', {
|
|
469
469
|
'is--expanded': isExpand
|
|
470
470
|
}],
|
|
471
|
-
style: padding && indent
|
|
471
|
+
style: mode !== 'column' && padding && indent
|
|
472
472
|
? {
|
|
473
473
|
paddingLeft: `${level * indent}px`
|
|
474
474
|
}
|
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.17.0-beta.
|
|
2005
|
+
const version = "3.17.0-beta.9";
|
|
2006
2006
|
core_.VxeUI.version = version;
|
|
2007
2007
|
core_.VxeUI.tableVersion = version;
|
|
2008
2008
|
core_.VxeUI.setConfig({
|
|
@@ -2667,7 +2667,7 @@ function isNodeElement(elem) {
|
|
|
2667
2667
|
const {
|
|
2668
2668
|
log: log_log
|
|
2669
2669
|
} = core_.VxeUI;
|
|
2670
|
-
const log_version = `table v${"3.17.0-beta.
|
|
2670
|
+
const log_version = `table v${"3.17.0-beta.9"}`;
|
|
2671
2671
|
const warnLog = log_log.create('warn', log_version);
|
|
2672
2672
|
const errLog = log_log.create('error', log_version);
|
|
2673
2673
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -3970,7 +3970,7 @@ const Cell = {
|
|
|
3970
3970
|
contentMethod,
|
|
3971
3971
|
mapChildrenField
|
|
3972
3972
|
} = aggregateOpts;
|
|
3973
|
-
const
|
|
3973
|
+
const aggCalcMethod = aggregateOpts.calcValuesMethod || aggregateOpts.countMethod || aggregateOpts.aggregateMethod;
|
|
3974
3974
|
const groupField = aggRow.groupField;
|
|
3975
3975
|
const groupContent = aggRow.groupContent;
|
|
3976
3976
|
const childList = mapChildrenField ? aggRow[mapChildrenField] || [] : [];
|
|
@@ -4002,9 +4002,9 @@ const Cell = {
|
|
|
4002
4002
|
} else if ($table.getPivotTableAggregateCellAggValue) {
|
|
4003
4003
|
cellValue = $table.getPivotTableAggregateCellAggValue(params);
|
|
4004
4004
|
} else if (aggFunc === true || countFields && countFields.includes(field)) {
|
|
4005
|
-
if (
|
|
4005
|
+
if (aggCalcMethod) {
|
|
4006
4006
|
ctParams.aggValue = childCount;
|
|
4007
|
-
cellValue = `${
|
|
4007
|
+
cellValue = `${aggCalcMethod(ctParams)}`;
|
|
4008
4008
|
}
|
|
4009
4009
|
}
|
|
4010
4010
|
} else {
|
|
@@ -4060,6 +4060,7 @@ const Cell = {
|
|
|
4060
4060
|
} = tableInternalData;
|
|
4061
4061
|
const aggregateOpts = $table.computeAggregateOpts;
|
|
4062
4062
|
const {
|
|
4063
|
+
mode,
|
|
4063
4064
|
padding,
|
|
4064
4065
|
indent
|
|
4065
4066
|
} = aggregateOpts;
|
|
@@ -4069,7 +4070,7 @@ const Cell = {
|
|
|
4069
4070
|
class: ['vxe-row-group--tree-node', {
|
|
4070
4071
|
'is--expanded': isExpand
|
|
4071
4072
|
}],
|
|
4072
|
-
style: padding && indent ? {
|
|
4073
|
+
style: mode !== 'column' && padding && indent ? {
|
|
4073
4074
|
paddingLeft: `${level * indent}px`
|
|
4074
4075
|
} : undefined
|
|
4075
4076
|
}, [row.isAggregate ? h('span', {
|