ant design confirm的使用说明

this.$confirm({
		title: '提示',
		class: 'deltip',
        width: '400px',
		content: <div style="position: relative;right: 14px;">内容</div>,
		cancelButtonProps: { style: { display: 'none' } }, // 隐藏取消按钮
		okText: '确认', 
       cancelText: '取消', 
        type: 'warning', 
		showCancel: false,
		icon: () => {
		  return <a-icon type="exclamation-circle" />
		},
		onOk () {},
        onCancel () {}
 })

说明:
title: 标题
class: 样式名称
width: 弹窗宽度
content: 展示的内容 如果想添加样式,可添加<div style="color:red;">内容</div>进行样式的控制。
cancelButtonProps: 隐藏取消按钮
showCancel: 是否显示右上角关闭按钮
okText:确认按钮文字更换
cancelText:取消按钮文字更换
type:提示类型 success/info/warning/error
icon: 展示的提示图片

onOk: 点击确定操作
onCancel 点击取消操作