element输入框文本超出悬浮提示
作者:互联网
<el-tooltip :content="info" placement="top" :disabled="isshowtip">
<el-input style="width:50px" v-model="info" @mouseover.native="inputOnMouseOver($event)"></el-input>
</el-tooltip>
inputOnMouseOver(event){
const target=event.target
if(target.offsetWidth<target.scrollWidth){
this.isshowtip=false
}else{
this.isshowtip=true
}
}
标签:const,target,悬浮,inputOnMouseOver,element,输入框,event 来源: https://www.cnblogs.com/772330747wh/p/16164193.html