@visactor/vtable 0.17.3-alpha.2 → 0.17.3-alpha.4
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/PivotTable.d.ts +1 -0
- package/cjs/PivotTable.js +28 -0
- package/cjs/PivotTable.js.map +1 -1
- package/cjs/body-helper/body-helper.js +2 -1
- package/cjs/body-helper/body-helper.js.map +1 -1
- package/cjs/components/tooltip/TooltipHandler.js +1 -3
- package/cjs/components/tooltip/TooltipHandler.js.map +1 -1
- package/cjs/core/BaseTable.js +3 -2
- 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/render/layout/text.d.ts +3 -3
- package/cjs/render/layout/text.js +1 -1
- package/cjs/render/layout/text.js.map +1 -1
- package/cjs/themes/ARCO.js +6 -0
- package/cjs/themes/ARCO.js.map +1 -1
- package/cjs/themes/BRIGHT.js +6 -0
- package/cjs/themes/BRIGHT.js.map +1 -1
- package/cjs/themes/DARK.js +6 -0
- package/cjs/themes/DARK.js.map +1 -1
- package/cjs/themes/DEFAULT.js +6 -0
- package/cjs/themes/DEFAULT.js.map +1 -1
- package/cjs/themes/SIMPLIFY.js +6 -0
- package/cjs/themes/SIMPLIFY.js.map +1 -1
- package/dist/vtable.js +74 -7
- package/dist/vtable.min.js +2 -2
- package/es/PivotTable.d.ts +1 -0
- package/es/PivotTable.js +28 -0
- package/es/PivotTable.js.map +1 -1
- package/es/body-helper/body-helper.js +2 -1
- package/es/body-helper/body-helper.js.map +1 -1
- package/es/components/tooltip/TooltipHandler.js +1 -3
- package/es/components/tooltip/TooltipHandler.js.map +1 -1
- package/es/core/BaseTable.js +3 -2
- 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/render/layout/text.d.ts +3 -3
- package/es/render/layout/text.js +2 -2
- package/es/render/layout/text.js.map +1 -1
- package/es/themes/ARCO.js +6 -0
- package/es/themes/ARCO.js.map +1 -1
- package/es/themes/BRIGHT.js +6 -0
- package/es/themes/BRIGHT.js.map +1 -1
- package/es/themes/DARK.js +6 -0
- package/es/themes/DARK.js.map +1 -1
- package/es/themes/DEFAULT.js +6 -0
- package/es/themes/DEFAULT.js.map +1 -1
- package/es/themes/SIMPLIFY.js +6 -0
- package/es/themes/SIMPLIFY.js.map +1 -1
- package/package.json +2 -2
package/cjs/core/BaseTable.js
CHANGED
|
@@ -45,7 +45,7 @@ class BaseTable extends EventTarget_1.EventTarget {
|
|
|
45
45
|
}
|
|
46
46
|
constructor(container, options = {}) {
|
|
47
47
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
48
|
-
if (super(), this.showFrozenIcon = !0, this.showSort = !0, this.version = "0.17.3-alpha.
|
|
48
|
+
if (super(), this.showFrozenIcon = !0, this.showSort = !0, this.version = "0.17.3-alpha.4",
|
|
49
49
|
this.id = `VTable${Date.now()}`, this.isReleased = !1, this.throttleInvalidate = (0,
|
|
50
50
|
util_1.throttle2)(this.render.bind(this), 200), !container && "node" !== options.mode) throw new Error("vtable's container is undefined");
|
|
51
51
|
const {frozenColCount: frozenColCount = 0, defaultRowHeight: defaultRowHeight = 40, defaultHeaderRowHeight: defaultHeaderRowHeight, defaultColWidth: defaultColWidth = 80, defaultHeaderColWidth: defaultHeaderColWidth, widthMode: widthMode = "standard", heightMode: heightMode = "standard", autoFillWidth: autoFillWidth = !1, autoFillHeight: autoFillHeight = !1, keyboardOptions: keyboardOptions, columnResizeMode: columnResizeMode, dragHeaderMode: dragHeaderMode, showFrozenIcon: showFrozenIcon, allowFrozenColCount: allowFrozenColCount, padding: padding, hover: hover, menu: menu, select: click, customRender: customRender, pixelRatio: pixelRatio = pixel_ratio_1.defaultPixelRatio, renderChartAsync: renderChartAsync, renderChartAsyncBatchCount: renderChartAsyncBatchCount, mode: mode, modeParams: modeParams, canvasWidth: canvasWidth, canvasHeight: canvasHeight, overscrollBehavior: overscrollBehavior, limitMinWidth: limitMinWidth} = options;
|
|
@@ -1126,10 +1126,11 @@ class BaseTable extends EventTarget_1.EventTarget {
|
|
|
1126
1126
|
}
|
|
1127
1127
|
}
|
|
1128
1128
|
_hasField(field, col, row) {
|
|
1129
|
+
var _a;
|
|
1129
1130
|
if (null == field) return !1;
|
|
1130
1131
|
if (this.internalProps.layoutMap.isHeader(col, row)) return !1;
|
|
1131
1132
|
const index = this.getRecordShowIndexByCell(col, row);
|
|
1132
|
-
return this.internalProps.dataSource.hasField(index, field);
|
|
1133
|
+
return null === (_a = this.internalProps.dataSource) || void 0 === _a ? void 0 : _a.hasField(index, field);
|
|
1133
1134
|
}
|
|
1134
1135
|
_getCellStyle(col, row) {
|
|
1135
1136
|
var _a, _b, _c, _d;
|