mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:48:55 +08:00
Merge pull request #9058 from igrowp/fix-editor-dialog-show
fix(editor): 修改dialog组件show默认值修改后部分弹窗打不开的问题
This commit is contained in:
commit
f1798d4da5
@ -614,6 +614,7 @@ export class NavSourceControl extends React.Component<
|
|||||||
modalParent,
|
modalParent,
|
||||||
modalUrl,
|
modalUrl,
|
||||||
modalTarget,
|
modalTarget,
|
||||||
|
showDialog,
|
||||||
isEdit
|
isEdit
|
||||||
} = this.state;
|
} = this.state;
|
||||||
const treeData = cloneDeep(links);
|
const treeData = cloneDeep(links);
|
||||||
@ -739,6 +740,7 @@ export class NavSourceControl extends React.Component<
|
|||||||
modalUrl,
|
modalUrl,
|
||||||
modalTarget
|
modalTarget
|
||||||
},
|
},
|
||||||
|
show: showDialog,
|
||||||
onClose: this.closeModal,
|
onClose: this.closeModal,
|
||||||
onConfirm: this.handleSubmit
|
onConfirm: this.handleSubmit
|
||||||
}
|
}
|
||||||
@ -771,7 +773,7 @@ export class NavSourceControl extends React.Component<
|
|||||||
this.renderApiPanel()
|
this.renderApiPanel()
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{showDialog && this.renderDialog()}
|
{this.renderDialog()}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -1255,8 +1255,7 @@ export class EventControl extends React.Component<
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</ul>
|
</ul>
|
||||||
{showEventDialog
|
{amisRender(
|
||||||
? amisRender(
|
|
||||||
{
|
{
|
||||||
type: 'dialog',
|
type: 'dialog',
|
||||||
title: `${eventDialogData?.eventLabel}-事件配置`,
|
title: `${eventDialogData?.eventLabel}-事件配置`,
|
||||||
@ -1344,10 +1343,10 @@ export class EventControl extends React.Component<
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
data: eventDialogData
|
data: eventDialogData,
|
||||||
|
show: showEventDialog
|
||||||
}
|
}
|
||||||
)
|
)}
|
||||||
: null}
|
|
||||||
<ActionDialog
|
<ActionDialog
|
||||||
show={showAcionDialog}
|
show={showAcionDialog}
|
||||||
type={type}
|
type={type}
|
||||||
|
Loading…
Reference in New Issue
Block a user