<Dialog
visible={riskVisible}
content='内容'
closeOnAction
onAction={({ key }) => {
if (key === 'isOk') {
// 点击确定按钮操作
} else if (key === 'onClose') {
// 点击关闭按钮的操作
}
}}
actions={[
{
key: 'isOk',
text: '确定',
},
{
key: 'onClose',
text: '关闭',
},
]}
/>
属性值
content={<div></div>}支持富文本
Ant Design Mobile Dialog对应官方连接:Dialog 对话框 - Ant Design Mobile