element this.$confirm确定框内容换行显示

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(() => { })


换行效果图

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容