@visactor/vtable 1.7.7 → 1.7.8-alpha.0
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/cjs/core/BaseTable.js +1 -1
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/dataset/dataset.js +6 -2
- package/cjs/dataset/dataset.js.map +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +8 -2
- package/dist/vtable.min.js +1 -1
- package/es/core/BaseTable.js +1 -1
- package/es/core/BaseTable.js.map +1 -1
- package/es/dataset/dataset.js +6 -2
- package/es/dataset/dataset.js.map +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +5 -5
package/cjs/dataset/dataset.js
CHANGED
|
@@ -533,9 +533,13 @@ class Dataset {
|
|
|
533
533
|
colCompute(flatRowKey, flatColKey);
|
|
534
534
|
}));
|
|
535
535
|
})), rowTotalKeys.forEach((flatRowKey => {
|
|
536
|
-
|
|
536
|
+
var _a, _b;
|
|
537
|
+
if (Object.keys(that.tree[flatRowKey]).forEach((flatColKey => {
|
|
537
538
|
colCompute(flatRowKey, flatColKey);
|
|
538
|
-
}))
|
|
539
|
+
})), (null === (_b = null === (_a = that.totals) || void 0 === _a ? void 0 : _a.column) || void 0 === _b ? void 0 : _b.showGrandTotals) || 0 === this.rows.length) {
|
|
540
|
+
const flatColTotalKey = that.colGrandTotalLabel;
|
|
541
|
+
this.tree[flatRowKey][flatColTotalKey] || colCompute(flatRowKey, flatColTotalKey);
|
|
542
|
+
}
|
|
539
543
|
}));
|
|
540
544
|
}
|
|
541
545
|
}
|