antd modalconfrim如何显示右上角的关闭按钮
在Ant Design的Modal组件中,可以通过设置closable属性来显示右上角的关闭按钮。默认情况下,closable属性为true,即显示关闭按钮。
示例代码如下:
import { Modal } from 'antd';
Modal.confirm({
closable: true, // 设置为true显示关闭按钮,默认为true
// 其他配置项...
});
在上述代码中,closable属性被设置为true,因此在确认框中会显示右上角的关闭按钮。
原文地址: http://www.cveoy.top/t/topic/ilgr 著作权归作者所有。请勿转载和采集!