0
点赞
收藏
分享

微信扫一扫

Java-Vue提示弹窗(换行+字符缩进)

爱上流星雨 2024-10-10 阅读 14

Java-Vue提示弹窗(换行+字符缩进)

1.提示弹窗

message: h('div', [h('p', '航线:'+hx+';'+'船次:'+cc+';'+'到港时间:'+dgsj), h('p', '\u3000用箱统计:'), h('p', '\u3000\u3000总用箱量:大柜100 小柜500'), h('p', '\u3000\u3000已用箱量:大柜100 小柜500:'), h('p', '\u3000\u3000未回箱量:大柜100 小柜500:')]),

this.$confirm('提示', {
    title: '提示',
    message: h('div', [h('p', '航线:'+hx+';'+'船次:'+cc+';'+'到港时间:'+dgsj), h('p', '\u3000用箱统计:'), h('p', '\u3000\u3000总用箱量:大柜100 小柜500'), h('p', '\u3000\u3000已用箱量:大柜100 小柜500:'), h('p', '\u3000\u3000未回箱量:大柜100 小柜500:')]),
    confirmButtonText: '确定',
    cancelButtonText: '取消',
    type: 'warning',
    customClass: 'messageBox'
})
.then(() => {})
.catch(() => {});

2.提示弹窗样式

<style>
.messageBox {
    width: 550px;
}
</style>

举报

相关推荐

0 条评论