如下图所示:

 在网上搜了好多方法都无效,所以翻文档发现一个方法,亲测有效

把input组件换成textarea组件,因为textarea组件有个fixed属性

 

<textarea placeholder-class="placeholder-class" auto-height fixed class="input" placeholder="请填写"></textarea>

 这样就完美解决了~

文档:textarea | 微信开放文档

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐