-
我用 mask + loading 写了一个组件 想对 dialog 的内容使用,组件写在 dialog 的 content 上,但是显示的时候会触发 dialog 的 onClose ,会把 dialog 关闭显示遮罩。 <Dialog
visible={wordDialogVisible}
closeOnAction
content={
<>
<div>12222</div>
<Mask visible={isLoading} />
</>
}
onClose={() => {
console.log('onClose');
}}
/> |
Beta Was this translation helpful? Give feedback.
Answered by
a145789
Mar 18, 2022
Replies: 1 comment
-
额,是因为 closeOnAction ,打扰了 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
a145789
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
额,是因为 closeOnAction ,打扰了