-
-
Notifications
You must be signed in to change notification settings - Fork 238
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
Bubble 组件使用自定义渲染时(markdown-it),设置的 typing.suffix 会被换行。 #486
Comments
This comment has been minimized.
This comment has been minimized.
这个是因为使用 另外,对于添加一个配置项去做这个需求,我暂时不打算去做。 |
This comment has been minimized.
This comment has been minimized.
看下来这个问题不太好解决...有别的方式能在 markdown 渲染的时候支持 suffix 吗? |
非常感谢~@1040461247 @ztkuaikuai 我们之前实现过这个功能在一个内部的组件库。有一些痛点:
这是我不太想将这个功能做重的原因。如果有其他思路可以提供出来我们一起讨论下~ |
@YumoImer 是的,抱歉我之前理解错了,在该 issue 的情况下 @1040461247 我觉得这种场景可以直接在 |
感谢!看了一下这个 demo 可以支持 string 类型的 suffix,但如果对 suffix 有动画需求需要传递一个 ReactNode 还会存在一些问题。 |
是这样,这种方式不支持传递 |
重现步骤
在线示例链接:(必填)https://codesandbox.io/p/sandbox/vibrant-glitter-ljwstm
步骤:
2.为 typing 添加参数
{ step: 1, interval: 50, suffix: <>💗</> }
当前行为
suffix 被挤到下一行,不在当前打字效果后方
预期行为
suffix 应当在打字位置
上下文
No response
版本
1.0.5
您在哪些浏览器上遇到了这个问题?
Chrome
The text was updated successfully, but these errors were encountered: