@visactor/vtable-sheet 1.22.10-alpha.1 → 1.22.10
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/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/vtable-sheet.js +4 -4
- package/dist/vtable-sheet.min.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +7 -7
package/cjs/index.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import VTableSheet from './components/vtable-sheet';
|
|
|
2
2
|
import type { ISheetDefine, IVTableSheetOptions } from './ts-types';
|
|
3
3
|
import * as TYPES from './ts-types';
|
|
4
4
|
import * as VTable from './vtable';
|
|
5
|
-
export declare const version = "1.22.10
|
|
5
|
+
export declare const version = "1.22.10";
|
|
6
6
|
export { VTableSheet, TYPES, VTable, ISheetDefine, IVTableSheetOptions };
|
package/cjs/index.js
CHANGED
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6EAAoD;AAW3C,sBAXF,sBAAW,CAWE;AATpB,kDAAoC;AASd,sBAAK;AAR3B,iDAAmC;AAQN,wBAAM;AAPnC,0DAAsD;AACzC,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6EAAoD;AAW3C,sBAXF,sBAAW,CAWE;AATpB,kDAAoC;AASd,sBAAK;AAR3B,iDAAmC;AAQN,wBAAM;AAPnC,0DAAsD;AACzC,QAAA,OAAO,GAAG,SAAS,CAAC;AAEjC,IAAA,4BAAY,GAAE,CAAC","file":"index.js","sourcesContent":["import VTableSheet from './components/vtable-sheet';\nimport type { ISheetDefine, IVTableSheetOptions } from './ts-types';\nimport * as TYPES from './ts-types';\nimport * as VTable from './vtable';\nimport { importStyles } from './styles/style-manager';\nexport const version = \"1.22.10\";\n// 导入样式\nimportStyles();\n/**\n * @namespace VTableSheet\n */\nexport { VTableSheet, TYPES, VTable, ISheetDefine, IVTableSheetOptions };\n"]}
|
package/dist/vtable-sheet.js
CHANGED
|
@@ -60017,7 +60017,7 @@
|
|
|
60017
60017
|
}
|
|
60018
60018
|
constructor(container, options = {}) {
|
|
60019
60019
|
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;
|
|
60020
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.22.10
|
|
60020
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.22.10", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env$1.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container, container = container.container ? container.container : null), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
|
|
60021
60021
|
this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
|
|
60022
60022
|
options: options,
|
|
60023
60023
|
container: container
|
|
@@ -65098,7 +65098,7 @@
|
|
|
65098
65098
|
if (lastSelectedCellEditor) return lastSelectedCellEditor;
|
|
65099
65099
|
Object.values(this.editorManager.cacheLastSelectedCellEditor).forEach(editor => {
|
|
65100
65100
|
var _a;
|
|
65101
|
-
return null === (_a = editor.onEnd) || void 0 === _a ? void 0 : _a.call(editor);
|
|
65101
|
+
return null === (_a = null == editor ? void 0 : editor.onEnd) || void 0 === _a ? void 0 : _a.call(editor);
|
|
65102
65102
|
}), this.editorManager.cacheLastSelectedCellEditor = {};
|
|
65103
65103
|
const define = this.getBodyColumnDefine(col, row);
|
|
65104
65104
|
let editor = this.isHeader(col, row) ? null !== (_a = null == define ? void 0 : define.headerEditor) && void 0 !== _a ? _a : this.options.headerEditor : null !== (_b = null == define ? void 0 : define.editor) && void 0 !== _b ? _b : this.options.editor;
|
|
@@ -65111,7 +65111,7 @@
|
|
|
65111
65111
|
table: this
|
|
65112
65112
|
});
|
|
65113
65113
|
}
|
|
65114
|
-
return "string" == typeof editor && (editor = get(editor)), this.editorManager.cacheLastSelectedCellEditor[`${col}-${row}`] = editor, editor;
|
|
65114
|
+
return "string" == typeof editor && (editor = get(editor)), editor && (this.editorManager.cacheLastSelectedCellEditor[`${col}-${row}`] = editor), editor;
|
|
65115
65115
|
}
|
|
65116
65116
|
isHasEditorDefine(col, row) {
|
|
65117
65117
|
var _a, _b;
|
|
@@ -91003,7 +91003,7 @@
|
|
|
91003
91003
|
importStyle();
|
|
91004
91004
|
}
|
|
91005
91005
|
|
|
91006
|
-
const version = "1.22.10
|
|
91006
|
+
const version = "1.22.10";
|
|
91007
91007
|
importStyles();
|
|
91008
91008
|
|
|
91009
91009
|
exports.TYPES = index;
|