具体写法:<Input v-model="value" type="textarea" :autosize="{minRows: 3,maxRows: 7}" placeholder="请输入"></Input>
以前不用iview的时候,关于textarea文本域以及高度自适应是使用<div contenteditable="true"></div>,但是苹果手机调出来的键盘有盖住的麻烦(以前遇到过)。
iview的autosize属性解决了不好实现模拟的情况,
具体写法:<Input v-model="value" type="textarea" :autosize="{minRows: 3,maxRows: 7}" placeholder="请输入"></Input>
以前不用iview的时候,关于textarea文本域以及高度自适应是使用<div contenteditable="true"></div>,但是苹果手机调出来的键盘有盖住的麻烦(以前遇到过)。
iview的autosize属性解决了不好实现模拟的情况,