求助:使用taro开发微信小程序,在使用RichText富文本组件的时候,如何监听富文本内容已经渲染完成? #17515
Unanswered
jiajiaxing1
asked this question in
Q & A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
taro版本3.5.0
react版本17+
求助:使用taro开发微信小程序,在使用RichText富文本组件的时候,如何监听富文本内容已经渲染完成?
有想过替换成 <View dangerouslySetInnerHTML={{ __html: parseMarkdownNew(action || content) }}>的方式
发现img图片没有自适应宽高导致图片没有正确渲染
优先-》如果RichText组件能够监听内容已经渲染完成,如何实现?
如果RichText组件不支持监听已经渲染完成,只能使用dangerouslySetInnerHTML={{ __html: parseMarkdownNew(action || content) }}的方式的话,怎么无缝衔接过来呢?
Beta Was this translation helpful? Give feedback.
All reactions