1***@qq.com
1***@qq.com
  • 发布:2023-10-10 21:40
  • 更新:2023-10-11 08:15
  • 阅读:319

【报Bug】textarea 英文单词不换行

分类:uni-app

产品分类: uniapp/小程序/微信

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: Windows10 22H2

HBuilderX类型: 正式

HBuilderX版本号: 3.8.12

第三方开发者工具版本号: 1.06.2308310

基础库版本号: 3.0.2

项目创建方式: HBuilderX

示例代码:
<textarea  
                    v-if="!inputStatus"  
                    v-model="inputvalue"  
                    auto-height  
                    :show-confirm-bar="false"  
                    :maxlength="-1"  
                    :disable-default-padding="true"  
                    :cursor-spacing="20"  
                    :adjust-position="false"  
                    placeholder="有话你就问"  
                    @focus="inputFocus(false)"  
                    @blur="inputFocus(true)"  
                    @input="inputIput"  
                />
textarea {  
                width: 100%;  
                max-height: 180rpx;  
                font-size: 26rpx;  
                font-family: PingFangSCLight;  
                line-height: 26rpx;  
                word-wrap: break-word;  
            }

操作步骤:
<textarea  
                    v-if="!inputStatus"  
                    v-model="inputvalue"  
                    auto-height  
                    :show-confirm-bar="false"  
                    :maxlength="-1"  
                    :disable-default-padding="true"  
                    :cursor-spacing="20"  
                    :adjust-position="false"  
                    placeholder="有话你就问"  
                    @focus="inputFocus(false)"  
                    @blur="inputFocus(true)"  
                    @input="inputIput"  
                />
textarea {  
                width: 100%;  
                max-height: 180rpx;  
                font-size: 26rpx;  
                font-family: PingFangSCLight;  
                line-height: 26rpx;  
                word-wrap: break-word;  
            }

预期结果:

The digital communications tech giant Cisco is acquiring the cybersecurity software firm Splunk in a $28 billion deal meant to boost its software business with new AI-enabled security technology.The digital communications tech giant Cisco is acquiring the cybersecurity software firm Splunk in a $28 billion deal meant to boost its software business with new

实际结果:

The digital communications tech giant Cisco i
s acquiring the cybersecurity software firm Splunk in a $28 billion deal meant to boost its software business with new AI-enabled security technology.The digital communications tech giant Cisco is acquiring the cybersecurity software firm Splunk in a $28 billion deal meant to boost its software business with new

bug描述:

textarea 输入框输入纯英文,英文单词被从中间打断换行(如下图)

应为结果:The digital communications tech giant Cisco is acquiring

实际结果:The digital communications tech giant Cisco i (此处打断换行)s acquiring

2023-10-10 21:40 负责人:无 分享
已邀请:
套马杆的套子

套马杆的套子 - 没有解决不了的问题,只有解决不完的问题

设置css
word-break:break-all; word-wrap:break-word; 强制换行,以单词为分解
word-break:break-all; 强制换行 以最后一个单词,会强制拆分单词

  • 1***@qq.com

    这种试了不行,textarea在css中加或者在行内加,安卓手机上单词还是被从中间打断了,苹果就好着

    2023-10-11 10:39

要回复问题请先登录注册