Dialog 的lazayRender 模式添加 spinner

This commit is contained in:
liaoxuezhi 2020-09-30 16:14:19 +08:00
parent 9fe6ea8d68
commit b097fe608c

View File

@ -520,7 +520,9 @@ export default class Dialog extends React.Component<DialogProps, DialogState> {
: null}
{!this.state.entered && lazyRender ? (
<div className={cx('Modal-body', bodyClassName)} />
<div className={cx('Modal-body', bodyClassName)}>
<Spinner overlay show size="lg" />
</div>
) : body ? (
<div className={cx('Modal-body', bodyClassName)}>
{this.renderBody(body, 'body')}