@visactor/vtable 1.22.4-alpha.10 → 1.22.4-alpha.11
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 +5 -3
- package/cjs/core/BaseTable.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 -8
- package/dist/vtable.min.js +1 -1
- package/es/core/BaseTable.js +5 -3
- package/es/core/BaseTable.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 +2 -2
package/cjs/core/BaseTable.js
CHANGED
|
@@ -43,7 +43,7 @@ class BaseTable extends EventTarget_1.EventTarget {
|
|
|
43
43
|
}
|
|
44
44
|
constructor(container, options = {}) {
|
|
45
45
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
46
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.22.4-alpha.
|
|
46
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.22.4-alpha.11", this.id = `VTable${Date.now()}`,
|
|
47
47
|
this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = (0, util_1.throttle2)(this.render.bind(this), 200),
|
|
48
48
|
"node" === env_1.Env.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container,
|
|
49
49
|
container = container.container ? container.container : null), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
|
|
@@ -675,11 +675,13 @@ class BaseTable extends EventTarget_1.EventTarget {
|
|
|
675
675
|
this.colContentWidthsMap.put(col, width);
|
|
676
676
|
}
|
|
677
677
|
getAllRowsHeight() {
|
|
678
|
-
|
|
678
|
+
var _a;
|
|
679
|
+
if (!(null === (_a = this.internalProps) || void 0 === _a ? void 0 : _a.rowCount) || this.internalProps.rowCount <= 0) return 0;
|
|
679
680
|
return this.getRowsHeight(0, this.internalProps.rowCount - 1);
|
|
680
681
|
}
|
|
681
682
|
getAllColsWidth() {
|
|
682
|
-
|
|
683
|
+
var _a;
|
|
684
|
+
if (!(null === (_a = this.internalProps) || void 0 === _a ? void 0 : _a.colCount) || this.internalProps.colCount <= 0) return 0;
|
|
683
685
|
return this.getColsWidth(0, this.internalProps.colCount - 1);
|
|
684
686
|
}
|
|
685
687
|
getColsWidths() {
|