wx.showToast, title 改为动态参数传入,当长度大于一行, 文字就会整体换行?

小程序 文章 2022-02-18 14:00 1800 0 全屏看文

AI助手支持GPT4.0

wx.showToast, title 改为动态参数传入,当长度大于一行, 文字就会整体换行?wx.showToast, the title is changed to a dynamic parameter and passed in, when the length is greater than one line, the text will wrap as a whole?

wx.showToast, title 改为动态参数传入,当长度大于一行, 文字就会整体换行?

wx.showToast 组件

问题描述:(只有ios 存在该问题)

当把icon设为 none 的时候 title 改为动态参数传入 当该参数长度大于一行的时候 他会直接整体换行, 导致显示不完全

代码如下

截图如下

安卓是好的, 截图如下

wx. Problem description of showtoast component: (only IOS has the problem) when icon is set to none, the title is changed to a dynamic parameter. When the parameter length is greater than one line, it will directly wrap the whole line, resulting in incomplete display of the code. The screenshot is as follows. Android is good, and the screenshot is as follows

回答:

风禾:

自定义一个吧,嫌麻烦可以直接github上扒一下vant的toast组件全局引用一下

许先森:

这是手机系统的原因吧

brave:

有个图挂了,重新贴下

🌟任权:重新贴了一下

-EOF-

AI助手支持GPT4.0