textarea 获取焦点上推后 输入框高度发生变化时 与键盘的距离会发生变化 导致出现空隙和遮挡
发布于 4 年前 作者 sulei 8035 次浏览 来自 官方Issues
<textarea
      hold-keyboard="{{true}}"
        value="{{textValue}}"
        fixed="{{true}}"
        placeholder="发表你的评论吧"
        bindfocus="bindTextAreaFocus"
        bindblur="bindTextAreaBlur"
        bindinput="bindTextAreaInput"
        auto-height="{{true}}"
        cursor-spacing="15"
      />
      <text bindtap="sendHandle">发送text>
1 回复

你好,text-area设置了 cursor-spacing=“15”,键盘与光标会存在距离。具体参考文档:https://developers.weixin.qq.com/miniprogram/dev/component/textarea.html

回到顶部