Input判断内容是否溢出

const input = me.$refs.input.getInput(),
// 判断输入框文字内容是否超过输入框宽度
isTip = input.offsetWidth < input.scrollWidth;
// 标识是否显示tip
原文地址:https://www.cnblogs.com/cs122/p/13896961.html