@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/es/core/BaseTable.js
CHANGED
|
@@ -74,7 +74,7 @@ export class BaseTable extends EventTarget {
|
|
|
74
74
|
}
|
|
75
75
|
constructor(container, options = {}) {
|
|
76
76
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
77
|
-
if (super(), this.showFrozenIcon = !0, this.showSort = !0, this.version = "0.17.3-alpha.
|
|
77
|
+
if (super(), this.showFrozenIcon = !0, this.showSort = !0, this.version = "0.17.3-alpha.4",
|
|
78
78
|
this.id = `VTable${Date.now()}`, this.isReleased = !1, this.throttleInvalidate = throttle2(this.render.bind(this), 200),
|
|
79
79
|
!container && "node" !== options.mode) throw new Error("vtable's container is undefined");
|
|
80
80
|
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 = defaultPixelRatio, renderChartAsync: renderChartAsync, renderChartAsyncBatchCount: renderChartAsyncBatchCount, mode: mode, modeParams: modeParams, canvasWidth: canvasWidth, canvasHeight: canvasHeight, overscrollBehavior: overscrollBehavior, limitMinWidth: limitMinWidth} = options;
|
|
@@ -1145,10 +1145,11 @@ export class BaseTable extends EventTarget {
|
|
|
1145
1145
|
}
|
|
1146
1146
|
}
|
|
1147
1147
|
_hasField(field, col, row) {
|
|
1148
|
+
var _a;
|
|
1148
1149
|
if (null == field) return !1;
|
|
1149
1150
|
if (this.internalProps.layoutMap.isHeader(col, row)) return !1;
|
|
1150
1151
|
const index = this.getRecordShowIndexByCell(col, row);
|
|
1151
|
-
return this.internalProps.dataSource.hasField(index, field);
|
|
1152
|
+
return null === (_a = this.internalProps.dataSource) || void 0 === _a ? void 0 : _a.hasField(index, field);
|
|
1152
1153
|
}
|
|
1153
1154
|
_getCellStyle(col, row) {
|
|
1154
1155
|
var _a, _b, _c, _d;
|