var confirmList = [
"1.第一行",
'2.第二行'
]
const newList = []
const xh = this.$createElement
for (const i in confirmList ) {
newList.push(xh("p", null, confirmList [i]))
}
this.$confirm({
title: '提示',
content: <div style="position: relative;right: 14px;">{xh('div', null, newList)}</div>,
cancelButtonProps: { style: { display: 'none' } }, // 隐藏取消按钮
showCancel: false,
icon: () => {
return <a-icon type="exclamation-circle" />
},
})
this.$confirm自定义内容进行转行
最新推荐文章于 2024-05-03 11:08:18 发布