element 确定框
// 把写的提示信心需要换行的地方分成数组 confirmText
const confirmText = ['是否将基金产品从我的自选中移出?', '注意:此操作将从我的自选中的所有分组中移除该产品。']
const newDatas = []
const h = this.$createElement
for (const i in confirmText) {
newDatas.push(h('p', null, confirmText[i]))
}
this.$confirm(
'提示',
{
title: '提示',
message: h('div', null, newDatas),
showCancelButton: true,
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
} ).then(() => { })
换行效果图
网友评论