We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
大佬, 代码如下:
const Page: FC = () => { const html = ` <h2 style="color: red;">文章标题</h2> <main> <article>文章内容</article> <img src="https://storage.360buyimg.com/cjj-pub-images/taro-daily.jpeg" alt="图片" width="100%" height="auto" /> <p>这是很长一段文字</p> </main> ` const [htmlText, setHtmlText] = useState(html) const handleClick = () => { setHtmlText(html + `<footer>这里是页脚</footer>`) } return ( <View> <View>我的</View> <View> <wxParse nodes={htmlText} /> </View> <Button type='primary' onClick={handleClick}>改变html</Button> </View> ) } export default Page
当我点击按钮改变html的时候,图片一直会显示loading状态而不显示出图片来,麻烦看下这个bug呢?开源不易 ,万分感谢!
The text was updated successfully, but these errors were encountered:
大佬, 代码如下: const Page: FC = () => { const html = ` <h2 style="color: red;">文章标题</h2> <main> <article>文章内容</article> <img src="https://storage.360buyimg.com/cjj-pub-images/taro-daily.jpeg" alt="图片" width="100%" height="auto" /> <p>这是很长一段文字</p> </main> ` const [htmlText, setHtmlText] = useState(html) const handleClick = () => { setHtmlText(html + `<footer>这里是页脚</footer>`) } return ( <View> <View>我的</View> <View> <wxParse nodes={htmlText} /> </View> <Button type='primary' onClick={handleClick}>改变html</Button> </View> ) } export default Page 当我点击按钮改变html的时候,图片一直会显示loading状态而不显示出图片来,麻烦看下这个bug呢?开源不易 ,万分感谢!
@Vinsurs 控制台有报错吗
Sorry, something went wrong.
@csonchen 没报错信息哦, 就一直是loading状态,但是点击它预览的时候是有图片出来的
No branches or pull requests
大佬, 代码如下:
当我点击按钮改变html的时候,图片一直会显示loading状态而不显示出图片来,麻烦看下这个bug呢?开源不易 ,万分感谢!
The text was updated successfully, but these errors were encountered: