trim363
trim363
  • 发布:2021-07-01 14:57
  • 更新:2022-08-21 21:02
  • 阅读:1660

uni-easyinput中autoHeight的点击区域

分类:uni-app

在H5使用

<uni-easyinput type="textarea" v-model="content" autoHeight :maxlength="-1"></uni-easyinput>

结果点击区域,"uni-textarea-wrapper"的高度为"height: 21px;"。在".uni-easyinput__content-textarea"上有最小高度80px,结果就是大部分区域无反应。

最后使用样式:

.uni-easyinput /deep/ .uni-textarea-wrapper{  
        min-height:80px;  
    }

希望以后,可以自定义多行文本的初始高度,谢谢

2021-07-01 14:57 负责人:无 分享
已邀请:
a***@126.com

a***@126.com

.uni-easyinput /deep/ .uni-textarea-wrapper{
min-height:80px;
}
/各位小伙伴注意了,使用这一句话,需要设置控件的
autoHeight :maxlength="-1" 这个属性,不加上就无效了
/

该问题目前已经被锁定, 无法添加新回复