CSS显示点
.el-tree-node__label{
overflow: hidden;
word-break: keep-all;
white-space: nowrap;
text-overflow: ellipsis;
}
JS 鼠标移动上去显示全部文字
组件内添加方法
@mouseover.native="addTitle"
方法
addTitle(e) {
const target = e.target
if (target.title) return
target.title = target.innerText
},
显示全部文本另一种方式(不建议使用)
.demo:hover {height: auto; word-break:break-all; white-space: pre-wrap; text-decoration: none;}