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

uni-popup 组件配合 rich-text组件自定义内联样式导致页面卡死 #776

Open
zerobin opened this issue Jun 20, 2023 · 1 comment

Comments

@zerobin
Copy link

zerobin commented Jun 20, 2023

复现代码:
<uni-popup ref="hint" type="center"> <rich-text :nodes="'测试'" style="text-align: center;"></rich-text> </uni-popup>
环境配置:
node: 16.14.2
npm:8.5.0
vite: 4.0.3
@dcloudio 版本:3.0.0-alpha-3080520230616001(当前最新的版本, 老版本:3.0.0-alpha-3040220220310005没有这个问题)

问题描述:在h5生产构建打包后
rich-text组件里面自定义style样式,导致出现弹窗就卡死页面,浏览器上面未报错
去掉style="text-align: center;" 后正常
本地开发环境没有这个问题,
目前解决方案是采用class,或者直接把样式定义到父级上面

期望:生产环境打包后rich-text 组件能自定义style样式

@18148764734
Copy link
Contributor

能否提供一下更加完整的代码demo(zip压缩包)

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

No branches or pull requests

2 participants