Modal onOk
时间: 2023-10-15 21:23:39 浏览: 102
Modal组件的onOk属性是一个回调函数,用于处理在Modal中点击确定按钮时的操作。在引用中的代码中,onOk属性被设置为handleSubmit函数,这个函数在点击确定按钮时被调用。在handleSubmit函数中,我们可以执行一些处理逻辑,比如获取表单的值并进行相应的操作。在这个例子中,handleSubmit函数通过获取form的值,并打印到控制台上,然后将Modal隐藏起来。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [antd modal的onOk提交form表单](https://blog.csdn.net/feifeichongtian/article/details/108059212)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [MFC多窗口例程](https://download.csdn.net/download/yubiao86/4828648)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文