1.提示弹窗
dangerouslyUseHTMLString: true,
var num = 1;
var msg += '箱号'+num+':<span style="color: red;font-weight: bold;">'+item.boxNo+'</span> 箱主'+num+':'+item.cusNo+' 尺寸箱型'+num+':'+item.cc+item.xx+' 提单号'+num+':'+item.remtd+'<br>';
this.$confirm(msg,"提示",{
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
dangerouslyUseHTMLString: true,
customClass:'el-message-box',
}
).then(() => {})
.catch(() => {});
2.提示弹窗样式
<style>
.el-message-box {
width: 600px;
}
</style>