Replies: 2 comments 1 reply
-
当然也适用非表单的场景,无视 onConfirm 或 onConfirm 的参数即可 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
使用方式如下:
点“确认”(或者“驳回”,可选)首先校验表单,其次 await onConfirm(values) 并自动维护按钮的 loading(驳回对应 onDeny),可以在这里面请求接口,Promise resolve 后关闭弹窗,reject 不关闭。
无需维护 modalVisible、confirmLoading 等,这在弹窗多的时候非常有用,比 ModalForm 要方便的多。
Beta Was this translation helpful? Give feedback.
All reactions