element-ui Notification 通知文字换行

转载于:https://blog.csdn.net/chenXiaosCode/article/details/90692004

let data = ['导入成功条数:' + response.data.successNum + '条;',
            '导入失败条数:' + response.data.failNum + '条;',
            '导入失败原因:'+response.data.failMsg];
let newDatas = [];
const h = this.$createElement;
for (let i in data) {
    newDatas.push(h('p', null, data[i]));
}
this.$notify({
    title: '导入',
    message: h('div', null, newDatas),
    type: 'success',
    position: 'bottom-right'
});

猜你喜欢

转载自blog.csdn.net/xiaoma19941027/article/details/107769723