diff --git a/packages/vtable-editors/src/input-editor.ts b/packages/vtable-editors/src/input-editor.ts index 4f7eafb6d..44e745c6a 100644 --- a/packages/vtable-editors/src/input-editor.ts +++ b/packages/vtable-editors/src/input-editor.ts @@ -15,7 +15,7 @@ export class InputEditor implements IEditor { col?: number; row?: number; // 存储事件处理器,用于在移除元素前解绑 - private eventHandlers: Array<{ type: string; handler: EventListener }> = []; + protected eventHandlers: Array<{ type: string; handler: EventListener }> = []; constructor(editorConfig?: InputEditorConfig) { this.editorConfig = editorConfig; } diff --git a/packages/vtable-sheet/src/formula/formula-editor.ts b/packages/vtable-sheet/src/formula/formula-editor.ts index 7a123d42b..0fafea4d4 100644 --- a/packages/vtable-sheet/src/formula/formula-editor.ts +++ b/packages/vtable-sheet/src/formula/formula-editor.ts @@ -7,8 +7,6 @@ import { detectFunctionParameterPosition } from './formula-helper'; export class FormulaInputEditor extends VTable_editors.InputEditor { private formulaAutocomplete: FormulaAutocomplete | null = null; private sheet: VTableSheet | null = null; - // 定义存储事件处理函数的数组 - private eventHandlers: Array<{ type: string; handler: EventListener }> = []; /** * 设置 Sheet 实例 */