Bubble或者Bubble List组件,支持md文本内添加点击事件么 #453
Unanswered
mashupeng1
asked this question in
Q&A
Replies: 1 comment
-
根据我查到的信息,Bubble 组件支持自定义渲染内容的功能。你可以使用 具体来说,你可以通过 以下是一个简单的示例代码: <Bubble
content="这是一个示例内容"
messageRender={(content) => (
<MarkdownRenderer
source={content}
onLinkClick={(url) => {
// 处理点击事件
console.log(`Link clicked: ${url}`);
}}
/>
)}
/> 在这个示例中, 如果你有更多问题或需要进一步的帮助,请随时告诉我! 🪧 TipsFor further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
如果我的后端给我回答问题时,一个answer,还有一个引用数组,answer是markdown格式的字符串。Bubble渲染md字符串的同时,我如果像通义一样,把引用加入到段落中,这种怎么做啊?现在Bubble组件支持么?
Beta Was this translation helpful? Give feedback.
All reactions