mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 11:58:10 +08:00
change event name
This commit is contained in:
parent
4ccce197d1
commit
659ab3d9c7
@ -26,7 +26,7 @@ window.addEventListener('message', e => {
|
||||
|
||||
```json
|
||||
{
|
||||
"type": "amis:load", // 当前事件类型
|
||||
"type": "amis:init", // 当前事件类型
|
||||
"data": {
|
||||
//... 当前数据域数据
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ export default class IFrame extends React.Component<IFrameProps, object> {
|
||||
@autobind
|
||||
onLoad() {
|
||||
const {src, data} = this.props;
|
||||
src && this.postMessage('load', data);
|
||||
src && this.postMessage('init', data);
|
||||
}
|
||||
|
||||
// 当别的组件通知 iframe reload 的时候执行。
|
||||
|
Loading…
Reference in New Issue
Block a user