0
点赞
收藏
分享

微信扫一扫

Java-Vue提示弹窗(换行+样式)

王栩的文字 2024-10-11 阅读 19


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>

举报

相关推荐

0 条评论