跳到主要内容

导出控件

exportWidget

type Platforms =
"CoCo" |
"CreationProject" |
"Node" |
"CoCo|CreationProject" |
"CoCo|NodeJS" |
"CreationProject|NodeJS" |
"CoCo|CreationProject|NodeJS"

export interface ExportConfig {
decorators?: (
Decorator |
Partial<Record<Platforms, Decorator | 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 平台的装饰器

2.5 版本新增:

属性说明
decorators[number].CoCoCoCo 平台的装饰器列表
decorators[number].CreationProjectCreation Project 平台的装饰器列表
decorators[number].NodeJSNode.js 平台的装饰器或其列表
decorators[number]["CoCo|CreationProject" | ...]多个平台的装饰器或其列表