div多出文字变成...

.span-content-name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 118px;
display: inline-block;
}

let info = this.isAsync == true ? '正在导入,请到上传下载--结果页面查看导入结果' : '上传成功' let message = this.$message({ dangerouslyUseHTMLString: true, message: `<span>${info}</span>` }) message.$el.querySelector('span').onclick = () => { this.$router.push('/result') }
posted @ 2020-12-03 20:11  山河已无恙  阅读(187)  评论(0编辑  收藏  举报