Skip to content

fix: glass-easel 框架下真机换行异常#607

Merged
jin-yufeng merged 1 commit intojin-yufeng:masterfrom
PaperStrike:glass-easel-br
Dec 1, 2024
Merged

fix: glass-easel 框架下真机换行异常#607
jin-yufeng merged 1 commit intojin-yufeng:masterfrom
PaperStrike:glass-easel-br

Conversation

@PaperStrike
Copy link
Contributor

对于问题:小程序真机预览换行符\n失效,但模拟器是正常的,请问是什么情况? | 微信开放社区,官方回复:

当开发者配置了 "componentFramework": "glass-easel" 就会有这个问题,是符合预期的。参考这里的变更点适配 1 https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/glass-easel/migration.html#JSON-%E9%85%8D%E7%BD%AE

试试用绑定把换行写进数据绑定里

实测将 \n 换为 {{'\n'}} 可以解决 WebView glass-easel 下真机(基础库 3.5.3,WebView 配置 glass-easel)的换行问题。其他模式未测。

@jin-yufeng jin-yufeng merged commit 963d13d into jin-yufeng:master Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants