X Tutup
Skip to content

Latest commit

 

History

History
76 lines (46 loc) · 1.36 KB

File metadata and controls

76 lines (46 loc) · 1.36 KB
title Window
sidebar_position 12

@experimental
@types IPublicModelWindow
@since v1.1.0

基本介绍

低代码设计器窗口模型

属性

id

窗口唯一 id

@type {string}

title

窗口标题

@type {string}

icon

@type {ReactElement}

resource

窗口对应资源

@type {IPublicModelResource}

关联模型 IPublicModelResource

方法

importSchema

当前窗口导入 schema, 会调用当前窗口对应资源的 import 钩子

function importSchema(schema: IPublicTypeNodeSchema): void

相关类型:IPublicTypeNodeSchema

changeViewType

修改当前窗口视图类型

function changeViewType(viewName: string): void

save

当前窗口的保存方法,会调用当前窗口对应资源的 save 钩子

function save(): Promise(void)

事件

onChangeViewType

窗口视图变更事件

onChangeViewType(fn: (viewName: string) => void): IPublicTypeDisposable;

相关类型:IPublicTypeDisposable

X Tutup