残影浅殇
残影浅殇
  • 发布:2025-11-20 20:33
  • 更新:2025-11-20 20:34
  • 阅读:8

vue3 nvue textarea 设置了 auto-height,高度不会自适应,直接显示textarea的默认高度

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: Windows11

HBuilderX类型: 正式

HBuilderX版本号: 4.85

手机系统: Android

手机系统版本号: Android 15

手机厂商: vivo

手机机型: vivo iqoo12

页面类型: nvue

vue版本: vue3

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

<textarea auto-height />

操作步骤:

<textarea auto-height />

预期结果:

高度自适应,只显示一行,类似input输入框

实际结果:

高度不自适应,直接显示textarea的默认高度,默认高度估计有150px

bug描述:

vue3 nvue textarea 设置了 auto-height,高度不会自适应,直接显示textarea的默认高度

2025-11-20 20:33 负责人:无 分享
已邀请:
残影浅殇

残影浅殇 (作者)

vue2 模式下运行是正常的

要回复问题请先登录注册