You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Tabulator构建自定义模块失败问题求助

在TypeScript中开发Tabulator 5.5.4自定义模块时遇到的错误

我在TypeScript应用中使用Tabulator 5.5.4版本,计划开发自定义模块,严格遵循Tabulator官方文档的步骤操作,但在自定义模块创建过程中出现错误,错误截图如下:

错误截图1
错误截图2

custom-Module.ts

import * as Tabulator from "tabulator-tables";
class CustomModule extends Tabulator.Module{
    constructor(table){
        super(table);

        //register table options
        //register column options
        //register table functions
        //register component functions
    }

    initialize(){
        //subscribe to internal events
        //register data handlers
    }
}

CustomModule.moduleName = "custom";

table.ts

import * as Tabulator from "tabulator-tables";
Tabulator.Tabulator.registerModule(CustomModule );

环境配置

  • @types/tabulator-tables 5.5.7
  • tabulator-tables 5.5.4
  • tsconfig.json
    • target: es5
    • module: amd

内容的提问来源于stack exchange,提问作者Ashok Ananthan

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.01 09:32:05