vxe-table 4.15.0-beta.8 → 4.15.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.1753445535983.ttf → iconfont.1753497319436.ttf} +0 -0
- /package/es/{iconfont.1753445535983.woff → iconfont.1753497319436.woff} +0 -0
- /package/es/{iconfont.1753445535983.woff2 → iconfont.1753497319436.woff2} +0 -0
- /package/lib/{iconfont.1753445535983.ttf → iconfont.1753497319436.ttf} +0 -0
- /package/lib/{iconfont.1753445535983.woff → iconfont.1753497319436.woff} +0 -0
- /package/lib/{iconfont.1753445535983.woff2 → iconfont.1753497319436.woff2} +0 -0
package/es/table/src/cell.js
CHANGED
|
@@ -389,7 +389,7 @@ export const Cell = {
|
|
|
389
389
|
const { computeAggregateOpts } = $table.getComputeMaps();
|
|
390
390
|
const aggregateOpts = computeAggregateOpts.value;
|
|
391
391
|
const { mode, showTotal, totalMethod, countFields, contentMethod, mapChildrenField } = aggregateOpts;
|
|
392
|
-
const
|
|
392
|
+
const aggCalcMethod = aggregateOpts.calcValuesMethod || aggregateOpts.countMethod || aggregateOpts.aggregateMethod;
|
|
393
393
|
const groupField = aggRow.groupField;
|
|
394
394
|
const groupContent = aggRow.groupContent;
|
|
395
395
|
const childList = mapChildrenField ? (aggRow[mapChildrenField] || []) : [];
|
|
@@ -423,9 +423,9 @@ export const Cell = {
|
|
|
423
423
|
cellValue = $table.getPivotTableAggregateCellAggValue(params);
|
|
424
424
|
}
|
|
425
425
|
else if (aggFunc === true || (countFields && countFields.includes(field))) {
|
|
426
|
-
if (
|
|
426
|
+
if (aggCalcMethod) {
|
|
427
427
|
ctParams.aggValue = childCount;
|
|
428
|
-
cellValue = `${
|
|
428
|
+
cellValue = `${aggCalcMethod(ctParams)}`;
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
}
|
|
@@ -478,14 +478,14 @@ export const Cell = {
|
|
|
478
478
|
const { rowGroupExpandedFlag } = tableReactData;
|
|
479
479
|
const { rowGroupExpandedMaps } = tableInternalData;
|
|
480
480
|
const aggregateOpts = computeAggregateOpts.value;
|
|
481
|
-
const { padding, indent } = aggregateOpts;
|
|
481
|
+
const { mode, padding, indent } = aggregateOpts;
|
|
482
482
|
const rowid = getRowid($table, row);
|
|
483
483
|
const isExpand = !!rowGroupExpandedFlag && !!rowGroupExpandedMaps[rowid];
|
|
484
484
|
return h('div', {
|
|
485
485
|
class: ['vxe-row-group--tree-node', {
|
|
486
486
|
'is--expanded': isExpand
|
|
487
487
|
}],
|
|
488
|
-
style: padding && indent
|
|
488
|
+
style: mode !== 'column' && padding && indent
|
|
489
489
|
? {
|
|
490
490
|
paddingLeft: `${level * indent}px`
|
|
491
491
|
}
|
package/es/ui/index.js
CHANGED
package/es/ui/src/log.js
CHANGED
package/lib/index.umd.js
CHANGED
|
@@ -3138,7 +3138,7 @@ function eqEmptyValue(cellValue) {
|
|
|
3138
3138
|
;// ./packages/ui/index.ts
|
|
3139
3139
|
|
|
3140
3140
|
|
|
3141
|
-
const version = "4.15.0-beta.
|
|
3141
|
+
const version = "4.15.0-beta.9";
|
|
3142
3142
|
core_.VxeUI.version = version;
|
|
3143
3143
|
core_.VxeUI.tableVersion = version;
|
|
3144
3144
|
core_.VxeUI.setConfig({
|
|
@@ -3628,7 +3628,7 @@ var esnext_iterator_some = __webpack_require__(7550);
|
|
|
3628
3628
|
const {
|
|
3629
3629
|
log: log_log
|
|
3630
3630
|
} = core_.VxeUI;
|
|
3631
|
-
const log_version = `table v${"4.15.0-beta.
|
|
3631
|
+
const log_version = `table v${"4.15.0-beta.9"}`;
|
|
3632
3632
|
const warnLog = log_log.create('warn', log_version);
|
|
3633
3633
|
const errLog = log_log.create('error', log_version);
|
|
3634
3634
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -5241,7 +5241,7 @@ const Cell = {
|
|
|
5241
5241
|
contentMethod,
|
|
5242
5242
|
mapChildrenField
|
|
5243
5243
|
} = aggregateOpts;
|
|
5244
|
-
const
|
|
5244
|
+
const aggCalcMethod = aggregateOpts.calcValuesMethod || aggregateOpts.countMethod || aggregateOpts.aggregateMethod;
|
|
5245
5245
|
const groupField = aggRow.groupField;
|
|
5246
5246
|
const groupContent = aggRow.groupContent;
|
|
5247
5247
|
const childList = mapChildrenField ? aggRow[mapChildrenField] || [] : [];
|
|
@@ -5273,9 +5273,9 @@ const Cell = {
|
|
|
5273
5273
|
} else if ($table.getPivotTableAggregateCellAggValue) {
|
|
5274
5274
|
cellValue = $table.getPivotTableAggregateCellAggValue(params);
|
|
5275
5275
|
} else if (aggFunc === true || countFields && countFields.includes(field)) {
|
|
5276
|
-
if (
|
|
5276
|
+
if (aggCalcMethod) {
|
|
5277
5277
|
ctParams.aggValue = childCount;
|
|
5278
|
-
cellValue = `${
|
|
5278
|
+
cellValue = `${aggCalcMethod(ctParams)}`;
|
|
5279
5279
|
}
|
|
5280
5280
|
}
|
|
5281
5281
|
} else {
|
|
@@ -5336,6 +5336,7 @@ const Cell = {
|
|
|
5336
5336
|
} = tableInternalData;
|
|
5337
5337
|
const aggregateOpts = computeAggregateOpts.value;
|
|
5338
5338
|
const {
|
|
5339
|
+
mode,
|
|
5339
5340
|
padding,
|
|
5340
5341
|
indent
|
|
5341
5342
|
} = aggregateOpts;
|
|
@@ -5345,7 +5346,7 @@ const Cell = {
|
|
|
5345
5346
|
class: ['vxe-row-group--tree-node', {
|
|
5346
5347
|
'is--expanded': isExpand
|
|
5347
5348
|
}],
|
|
5348
|
-
style: padding && indent ? {
|
|
5349
|
+
style: mode !== 'column' && padding && indent ? {
|
|
5349
5350
|
paddingLeft: `${level * indent}px`
|
|
5350
5351
|
} : undefined
|
|
5351
5352
|
}, [row.isAggregate ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|