跳到主要内容

导出控件

exportWidget

interface ExportConfig {
decorators?: (Decorator | {
CoCo?: Decorator | null | undefined
CreationProject?: Decorator | null | undefined
})[] | null | undefined
CoCo?: {
decorators?: Decorator[] | null | undefined
} | null | undefined
CreationProject?: {
decorators?: Decorator[] | null | undefined
} | null | undefined
}

declare function exportWidget(
types: Types,
widget: Widget,
config?: ExportConfig | null | undefined
): void
参数说明
types类型定义
widget控件定义
config导出配置

导出配置

属性说明
decorators装饰器列表
CoCoCoCo 导出配置
CoCo.decoratorsCoCo 平台的装饰器列表
CreationProjectCreation Project 导出配置
CreationProject.decoratorsCreation Project 平台的装饰器列表

2.3 版本新增:

属性说明
decorators[number].CoCoCoCo 平台的装饰器
decorators[number].CreationProjectCreation Project 平台的装饰器