API
Component

Dialog ($UI/comp/antd/components/Dialog/Dialog)

使用范围:WX

Contents

component Dialog ($UI/comp/antd/components/Dialog/Dialog) extends Component

<b>使用场景</b>:对话框; <b>使用方法</b>:添加Dialog组件,在父页面打开对话框时可以传参,关闭对话框时可以把操作完的数据再传回父页面;

Constructor Top

  Dialog ()
  Dialog ( config)

Properties Top

string src

Attributes Top

string src

Methods Top

void open (JSON option)

Operations Top

void close ()
void open (object option)

Events Top

void onLoad ($UI/comp/antd/components/common/event#ViewEvent event)
void onOpen ($UI/comp/antd/components/common/event#ViewEvent event)
void onReceive (ReceiveEvent event)
void onReceived (ReceiveEvent event)
void onSend (SendEvent event)

Constructor details Top

public Dialog ()

<b>使用场景</b>:对话框; <b>使用方法</b>:添加Dialog组件,在父页面打开对话框时可以传参,关闭对话框时可以把操作完的数据再传回父页面;

public Dialog ( config)

构造函数

Inherited from Operational

Parameters

config

操作配置

Properties Detail Top

public string src

Attributes Detail Top

public string src

Methods Detail Top

public void open (JSON option)

打开对话框

Parameters

JSON option


结构如下:

{ "src" :.w的url "data" : 传入.w的数据部分 }

Return Value

void

Operations Detail Top

public void close ()

关闭window对话框

Return Value

void

public void open (object option)

打开window对话框

See Open

Parameters

object option


结构如下:

{ "src" :.w的url "data" : 传入.w的数据部分 }

Return Value

void

Events Detail Top

public void onLoad ($UI/comp/antd/components/common/event#ViewEvent event)

[回调型事件].w加载完成后

Parameters

$UI/comp/antd/components/common/event#ViewEvent event


结构如下:

{ "source" : 组件的js对象, "bindingContext" : 组件绑定的上下文,包含$model、$object等具体请参考bindingContext说明 }

Return Value

void

public void onOpen ($UI/comp/antd/components/common/event#ViewEvent event)

[回调型事件]打开事件

Parameters

$UI/comp/antd/components/common/event#ViewEvent event


结构如下:

{ "source" : 组件的js对象, "bindingContext" : 组件绑定的上下文,包含$model、$object等具体请参考bindingContext说明 }

Return Value

void

public void onReceive (ReceiveEvent event)

[回调型事件].w返回数据事件

Parameters

ReceiveEvent event


结构如下:

{ "source" : 组件的js对象, "bindingContext" : 组件绑定的上下文,包含$model、$object等具体请参考bindingContext说明 "data" : 返回的数据, }

Return Value

void

public void onReceived (ReceiveEvent event)

[回调型事件].w返回数据接收处理完成事件

Parameters

ReceiveEvent event


结构如下:

{ "source" : 组件的js对象, "bindingContext" : 组件绑定的上下文,包含$model、$object等具体请参考bindingContext说明 "data" : 返回的数据 }

Return Value

void

public void onSend (SendEvent event)

[回调型事件]向.w传递数据事件

Parameters

SendEvent event


结构如下:

{ "source" : 组件的js对象, "bindingContext" : 组件绑定的上下文,包含$model、$object等具体请参考bindingContext说明 "data" : 传递的数据 }

Return Value

void