TangoConfigJson 类型配置

interface ITangoConfigJson {
    dataSource?: Record<string, any>;
    designerConfig: {
        autoFormatCode: boolean;
        autoGenerateComponentId: boolean;
    };
    externalResources?: Record<string, any>;
    packages?: Record<string, any>;
    proxy?: Record<string, any>;
    sandbox?: {
        alias?: Record<string, string>;
        evaluateJavaScript?: string;
    };
}

Properties

dataSource?: Record<string, any>

数据源配置

designerConfig: {
    autoFormatCode: boolean;
    autoGenerateComponentId: boolean;
}

设计器配置

Type declaration

  • autoFormatCode: boolean

    每次代码生成后是否自动格式化

  • autoGenerateComponentId: boolean

    是否自动生成组件 ID,会自动在组件代码中增加 tid 属性

externalResources?: Record<string, any>

外部资源,例如 js, css 文件等

packages?: Record<string, any>

依赖包配置

proxy?: Record<string, any>

代理配置

sandbox?: {
    alias?: Record<string, string>;
    evaluateJavaScript?: string;
}

沙箱配置

Type declaration

  • Optionalalias?: Record<string, string>

    模块的别名

  • OptionalevaluateJavaScript?: string

    在沙箱中执行的脚本