Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nvue uniapp编译模式,仅 iOS下,textarea 设置auto-height,传入初始值,textarea 高度没有自适应而是还是只显示一行 #992

Closed
atlaseye opened this issue Nov 14, 2019 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@atlaseye
Copy link

问题描述
nvue uniapp编译模式,仅 iOS下,textarea 设置auto-height,传入初始值,textarea 高度没有自适应而是还是只显示一行;这里,初始化的文字肯定是多于一行的。

同样代码,nvue 安卓下没问题,H5下没问题,但 nvue iOS 下有这个问题。

复现步骤

<textarea v-if="line.lineType.substring(0,4)==='text'" :id="line.lineId" :style="[textareaStyle(line)]" :auto-height="true" :value="isReady? line.content : ''" :maxlength="800000" :show-confirm-bar="false" :focus="lines.length>1 && index===lines.length-1" @input="input" @Focus="focus" @blur="blur" ></textarea>

预期结果
预期结果,显示出来的 textarea 应该是多行,因为line.content是一个超过 40 个字的字符串,一行显示不下。

实际结果
安卓 nvue,显示多行。
H5,显示多行。
iOS,显示 1 行。需要手动在 textarea 里敲一个字后,就显示正确了。

系统信息:

  • 发行平台: [如 微信小程序、H5平台、5+ App等]
  • 操作系统
    iOS12, iOS13, android
  • HBuilderX版本 最新版
  • uni-app版本
    2.3.7
  • 设备信息 [如 iPhone8 Plus]
    iPhone6, iPhone XS Max真机
    iPhone 11Pro 模拟器,均有这个问题

补充信息
[可选]
[根据你的分析,出现这个问题的原因可能在哪里?]
仅猜测,textarea自适应高度的逻辑,有需要平台特殊处理的点吧可能。

@Wangyaqi
Copy link
Contributor

nvue下不支持auto-height,目前编写nvue需要对照weex文档

@dcloudhdx
Copy link
Contributor

Bug已确认

@dcloudhdx dcloudhdx added the bug Something isn't working label Jul 16, 2020
@hblz
Copy link

hblz commented Jul 21, 2020

这个问题啥时候可以修复

@xiaohuapunk
Copy link
Collaborator

xiaohuapunk commented Jul 21, 2020

这个问题啥时候可以修复

下次发版就会带上了

@dcloudhdx
Copy link
Contributor

HBuilderX 2.8.2+ alpha 已修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants