uview input框textarea模式,输入区域没有高度问题记录。
问题
使用uview的输入框textarea,设置高度后,点击红框下的区域无法获取到输入焦点,如下图
解决方案
auto-height设置为false,默认为true 是自动增加输入高度 ,不会和height属性设置的高度同步(下图2)
auto-height设置为false就可以了
<u-input v-model="presentation" type="textarea" border height="300" :auto-height="false" />
...
原创
2021-07-14 12:00:54 ·
6466 阅读 ·
0 评论