关于模拟文本域iview textarea文本域:autosize="{minRows: 3,maxRows: 7}"这个属性的好处

具体写法:<Input v-model="value" type="textarea" :autosize="{minRows: 3,maxRows: 7}" placeholder="请输入"></Input>

以前不用iview的时候,关于textarea文本域以及高度自适应是使用<div contenteditable="true"></div>,但是苹果手机调出来的键盘有盖住的麻烦(以前遇到过)。

iview的autosize属性解决了不好实现模拟的情况,

猜你喜欢

转载自blog.csdn.net/weixin_41869039/article/details/81202495