mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 20:18:03 +08:00
Dialog 的lazayRender 模式添加 spinner
This commit is contained in:
parent
9fe6ea8d68
commit
b097fe608c
@ -520,7 +520,9 @@ export default class Dialog extends React.Component<DialogProps, DialogState> {
|
|||||||
: null}
|
: null}
|
||||||
|
|
||||||
{!this.state.entered && lazyRender ? (
|
{!this.state.entered && lazyRender ? (
|
||||||
<div className={cx('Modal-body', bodyClassName)} />
|
<div className={cx('Modal-body', bodyClassName)}>
|
||||||
|
<Spinner overlay show size="lg" />
|
||||||
|
</div>
|
||||||
) : body ? (
|
) : body ? (
|
||||||
<div className={cx('Modal-body', bodyClassName)}>
|
<div className={cx('Modal-body', bodyClassName)}>
|
||||||
{this.renderBody(body, 'body')}
|
{this.renderBody(body, 'body')}
|
||||||
|
Loading…
Reference in New Issue
Block a user