@visactor/vtable 1.22.9 → 1.22.10-alpha.1
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.js +6 -2
- package/cjs/ListTable.js.map +1 -1
- package/cjs/core/BaseTable.js +1 -1
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/edit/edit-manager.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/index.js +2 -1
- package/cjs/layout/layout-helper.js +1 -1
- package/cjs/layout/pivot-header-layout.js +1 -1
- package/cjs/layout/row-height-map.js +1 -1
- package/cjs/layout/simple-header-layout.js +1 -1
- package/cjs/layout/tree-helper.js +1 -1
- package/cjs/plugins/custom-cell-style.js +1 -2
- package/cjs/plugins/interface.js +1 -1
- package/cjs/plugins/invert-highlight.js +1 -1
- package/cjs/plugins/list-tree-stick-cell.js +1 -1
- package/cjs/plugins/plugin-manager.js +1 -1
- package/cjs/themes/ARCO.js +1 -1
- package/cjs/themes/BRIGHT.js +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +4 -3
- package/dist/vtable.min.js +1 -1
- package/es/ListTable.js +6 -2
- package/es/ListTable.js.map +1 -1
- package/es/core/BaseTable.js +1 -1
- package/es/core/BaseTable.js.map +1 -1
- package/es/edit/edit-manager.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/index.js +2 -1
- package/es/layout/layout-helper.js +1 -1
- package/es/layout/pivot-header-layout.js +1 -1
- package/es/layout/row-height-map.js +1 -1
- package/es/layout/simple-header-layout.js +1 -1
- package/es/layout/tree-helper.js +1 -1
- package/es/plugins/custom-cell-style.js +1 -2
- package/es/plugins/interface.js +1 -1
- package/es/plugins/invert-highlight.js +1 -1
- package/es/plugins/list-tree-stick-cell.js +1 -1
- package/es/plugins/plugin-manager.js +1 -1
- package/es/themes/ARCO.js +1 -1
- package/es/themes/BRIGHT.js +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +5 -5
package/cjs/ListTable.js
CHANGED
|
@@ -682,6 +682,10 @@ class ListTable extends core_1.BaseTable {
|
|
|
682
682
|
var _a, _b;
|
|
683
683
|
const lastSelectedCellEditor = this.editorManager.cacheLastSelectedCellEditor[`${col}-${row}`];
|
|
684
684
|
if (lastSelectedCellEditor) return lastSelectedCellEditor;
|
|
685
|
+
Object.values(this.editorManager.cacheLastSelectedCellEditor).forEach((editor => {
|
|
686
|
+
var _a;
|
|
687
|
+
return null === (_a = editor.onEnd) || void 0 === _a ? void 0 : _a.call(editor);
|
|
688
|
+
})), this.editorManager.cacheLastSelectedCellEditor = {};
|
|
685
689
|
const define = this.getBodyColumnDefine(col, row);
|
|
686
690
|
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;
|
|
687
691
|
if ("function" == typeof editor) {
|
|
@@ -693,8 +697,8 @@ class ListTable extends core_1.BaseTable {
|
|
|
693
697
|
table: this
|
|
694
698
|
});
|
|
695
699
|
}
|
|
696
|
-
return "string" == typeof editor && (editor = editors.get(editor)), this.editorManager.cacheLastSelectedCellEditor =
|
|
697
|
-
|
|
700
|
+
return "string" == typeof editor && (editor = editors.get(editor)), this.editorManager.cacheLastSelectedCellEditor[`${col}-${row}`] = editor,
|
|
701
|
+
editor;
|
|
698
702
|
}
|
|
699
703
|
isHasEditorDefine(col, row) {
|
|
700
704
|
var _a, _b;
|