test corregir error undefined
This commit is contained in:
parent
6f4e0dcada
commit
d18996f82b
@ -384,8 +384,10 @@ function makeRenderer() {
|
|||||||
'tbody',
|
'tbody',
|
||||||
null,
|
null,
|
||||||
rowKeysSub.map(function (rowKey, i) {
|
rowKeysSub.map(function (rowKey, i) {
|
||||||
var totalAggregator = pivotData.getAggregator(rowKey, []);
|
|
||||||
var isSubTotal = rowKey.includes('[:sub-total:]');
|
var isSubTotal = rowKey.includes('[:sub-total:]');
|
||||||
|
var totalAggregator = isSubTotal ? { value: function value() {
|
||||||
|
return 0;
|
||||||
|
} } : pivotData.getAggregator(rowKey, []);
|
||||||
return _react2.default.createElement(
|
return _react2.default.createElement(
|
||||||
'tr',
|
'tr',
|
||||||
{ key: 'rowKeyRow' + i },
|
{ key: 'rowKeyRow' + i },
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "v-react-pivottable",
|
"name": "v-react-pivottable",
|
||||||
"version": "0.11.49",
|
"version": "0.11.50",
|
||||||
"description": "A React-based pivot table",
|
"description": "A React-based pivot table",
|
||||||
"main": "PivotTableUI.js",
|
"main": "PivotTableUI.js",
|
||||||
"files": [
|
"files": [
|
||||||
|
Loading…
Reference in New Issue
Block a user