Skip to content

Commit

Permalink
Merge pull request zuiidea#975 from deepred5/master
Browse files Browse the repository at this point in the history
fix: 关闭弹窗时有动画效果
  • Loading branch information
superlbr authored May 28, 2019
2 parents 157a54b + 51a7ce0 commit 642ccb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/user/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class User extends PureComponent {
const modalProps = {
item: modalType === 'create' ? {} : currentItem,
visible: modalVisible,
destroyOnClose: true,
maskClosable: false,
confirmLoading: loading.effects[`user/${modalType}`],
title: `${
Expand Down Expand Up @@ -163,7 +164,7 @@ class User extends PureComponent {
</Row>
)}
<List {...listProps} />
{modalVisible && <Modal {...modalProps} />}
<Modal {...modalProps} />
</Page>
)
}
Expand Down

0 comments on commit 642ccb5

Please sign in to comment.