vue-element this.$confirm中提示的文字
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: 'success'
}
).then(() => {
}).catch(() => {
})
本文标题:vue-element this.$confirm中提示的文字
本文链接:https://www.haomeiwen.com/subject/glvjbktx.html
网友评论