这是表头标题。。。。。。。。
打不到我吧,哈哈哈哈哈哈
export default {
data() {
return {
isShowTooltip: false
}
},
methods: {
onMouseOver(refName){
let parentWidth = this.$refs[refName][0].parentNode.offsetWidth;
let contentWidth = this.$refs[refName][0].offsetWidth;
// 判断是否开启tooltip功能
if (contentWidth>parentWidth) {
this.isShowTooltip = false;
} else {
this.isShowTooltip = true;
}
}
}
.long_title{
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}