Input判断内容是否溢出

const input = me.$refs.input.getInput(),
// 判断输入框文字内容是否超过输入框宽度
isTip = input.offsetWidth < input.scrollWidth;
// 标识是否显示tip
posted @ 2020-10-29 15:24  不服憋着  阅读(753)  评论(0编辑  收藏  举报