@visactor/vtable 1.14.4-alpha.1 → 1.14.4-alpha.2
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/ListTable.d.ts +4 -0
- package/cjs/ListTable.js +14 -3
- package/cjs/ListTable.js.map +1 -1
- package/cjs/PivotTable.d.ts +4 -0
- package/cjs/PivotTable.js +12 -2
- package/cjs/PivotTable.js.map +1 -1
- package/cjs/core/BaseTable.js +4 -5
- 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/layout/simple-header-layout.d.ts +4 -0
- package/cjs/layout/simple-header-layout.js +12 -0
- package/cjs/layout/simple-header-layout.js.map +1 -1
- package/cjs/scenegraph/layout/compute-col-width.js +1 -0
- package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
- package/cjs/ts-types/base-table.d.ts +14 -6
- package/cjs/ts-types/base-table.js.map +1 -1
- package/cjs/ts-types/list-table/define/basic-define.d.ts +1 -0
- package/cjs/ts-types/list-table/define/basic-define.js.map +1 -1
- package/cjs/ts-types/table-engine.d.ts +19 -4
- package/cjs/ts-types/table-engine.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +59 -21
- package/dist/vtable.min.js +1 -1
- package/es/ListTable.d.ts +4 -0
- package/es/ListTable.js +15 -3
- package/es/ListTable.js.map +1 -1
- package/es/PivotTable.d.ts +4 -0
- package/es/PivotTable.js +12 -2
- package/es/PivotTable.js.map +1 -1
- package/es/core/BaseTable.js +3 -6
- 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/layout/simple-header-layout.d.ts +4 -0
- package/es/layout/simple-header-layout.js +12 -0
- package/es/layout/simple-header-layout.js.map +1 -1
- package/es/scenegraph/layout/compute-col-width.js +1 -0
- package/es/scenegraph/layout/compute-col-width.js.map +1 -1
- package/es/ts-types/base-table.d.ts +14 -6
- package/es/ts-types/base-table.js.map +1 -1
- package/es/ts-types/list-table/define/basic-define.d.ts +1 -0
- package/es/ts-types/list-table/define/basic-define.js.map +1 -1
- package/es/ts-types/table-engine.d.ts +19 -4
- package/es/ts-types/table-engine.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +4 -4
- package/cjs/core/utils/get-custom-merge-cell-func.d.ts +0 -2
- package/cjs/core/utils/get-custom-merge-cell-func.js +0 -14
- package/cjs/core/utils/get-custom-merge-cell-func.js.map +0 -1
- package/es/core/utils/get-custom-merge-cell-func.d.ts +0 -2
- package/es/core/utils/get-custom-merge-cell-func.js +0 -6
- package/es/core/utils/get-custom-merge-cell-func.js.map +0 -1
package/es/core/BaseTable.js
CHANGED
|
@@ -76,8 +76,6 @@ import { checkCellInSelect } from "../state/common/check-in-select";
|
|
|
76
76
|
|
|
77
77
|
import { isCellDisableSelect } from "../state/select/is-cell-select-highlight";
|
|
78
78
|
|
|
79
|
-
import { getCustomMergeCellFunc } from "./utils/get-custom-merge-cell-func";
|
|
80
|
-
|
|
81
79
|
const {toBoxArray: toBoxArray} = utilStyle, {isTouchEvent: isTouchEvent} = event, rangeReg = /^\$(\d+)\$(\d+)$/;
|
|
82
80
|
|
|
83
81
|
importStyle();
|
|
@@ -88,7 +86,7 @@ export class BaseTable extends EventTarget {
|
|
|
88
86
|
}
|
|
89
87
|
constructor(container, options = {}) {
|
|
90
88
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
91
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.14.4-alpha.
|
|
89
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.14.4-alpha.2", this.id = `VTable${Date.now()}`,
|
|
92
90
|
this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200),
|
|
93
91
|
!container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
|
|
94
92
|
const {frozenColCount: frozenColCount = 0, frozenRowCount: frozenRowCount, defaultRowHeight: defaultRowHeight = 40, defaultHeaderRowHeight: defaultHeaderRowHeight, defaultColWidth: defaultColWidth = 80, defaultHeaderColWidth: defaultHeaderColWidth, widthMode: widthMode = "standard", heightMode: heightMode = "standard", autoFillWidth: autoFillWidth = !1, autoFillHeight: autoFillHeight = !1, widthAdaptiveMode: widthAdaptiveMode = "only-body", heightAdaptiveMode: heightAdaptiveMode = "only-body", keyboardOptions: keyboardOptions, eventOptions: eventOptions, rowSeriesNumber: rowSeriesNumber, columnResizeMode: columnResizeMode, rowResizeMode: rowResizeMode = "none", 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, limitMinHeight: limitMinHeight, clearDOM: clearDOM = !0} = options;
|
|
@@ -180,7 +178,7 @@ export class BaseTable extends EventTarget {
|
|
|
180
178
|
this.headerStyleCache = new Map, this.bodyStyleCache = new Map, this.bodyMergeTitleCache = new Map,
|
|
181
179
|
this.bodyBottomStyleCache = new Map, internalProps.stick = {
|
|
182
180
|
changedCells: new Map
|
|
183
|
-
}, internalProps.customMergeCell =
|
|
181
|
+
}, internalProps.customMergeCell = options.customMergeCell;
|
|
184
182
|
const CustomCellStylePlugin = Factory.getComponent("customCellStylePlugin");
|
|
185
183
|
CustomCellStylePlugin && (this.customCellStylePlugin = new CustomCellStylePlugin(this, null !== (_j = options.customCellStyle) && void 0 !== _j ? _j : [], null !== (_k = options.customCellStyleArrangement) && void 0 !== _k ? _k : []));
|
|
186
184
|
}
|
|
@@ -903,8 +901,7 @@ export class BaseTable extends EventTarget {
|
|
|
903
901
|
internalProps.menuHandler = new MenuHandler(this);
|
|
904
902
|
}
|
|
905
903
|
this.clearCellStyleCache(), this.clearColWidthCache(), this.clearRowHeightCache(),
|
|
906
|
-
internalProps.customMergeCell =
|
|
907
|
-
null === (_l = this.customCellStylePlugin) || void 0 === _l || _l.updateCustomCell(null !== (_m = options.customCellStyle) && void 0 !== _m ? _m : [], null !== (_o = options.customCellStyleArrangement) && void 0 !== _o ? _o : []);
|
|
904
|
+
internalProps.customMergeCell = options.customMergeCell, null === (_l = this.customCellStylePlugin) || void 0 === _l || _l.updateCustomCell(null !== (_m = options.customCellStyle) && void 0 !== _m ? _m : [], null !== (_o = options.customCellStyleArrangement) && void 0 !== _o ? _o : []);
|
|
908
905
|
}
|
|
909
906
|
renderWithRecreateCells() {
|
|
910
907
|
const oldHoverState = {
|