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

message类型为对象时,typing打字效果失效 #614

Open
xuchaoying opened this issue Mar 18, 2025 · 3 comments
Open

message类型为对象时,typing打字效果失效 #614

xuchaoying opened this issue Mar 18, 2025 · 3 comments
Labels
enhancement New feature or request

Comments

@xuchaoying
Copy link

重现步骤

在线示例链接:(必填)https://codesandbox.io/p/devbox/runtime-sound-z642hk

当前行为

如demo所示,content为对象时,typing失效了

还有一个ts类型问题:#568

预期行为

No response

上下文

No response

版本

1.0.5

您在哪些浏览器上遇到了这个问题?

No response

@xuchaoying xuchaoying added the bug Something isn't working label Mar 18, 2025
Copy link

在现有的 ant-design/x 仓库中,我找到了几个与 typing 效果相关的 Pull Request 和 Issue,但没有发现与您描述的问题完全相同的报告。以下是一些相关的条目:

  1. PR #19 - feat: New component Bubble
  2. PR #46 - ✨ feat: Sender / ChatInput components
  3. PR #125 - feat: useXAgent
  4. Issue #339 - 按useXChat演示代码,使用流式输出更新内容无效,还是一次性输出
  5. PR #378 - feat(bubble): add typing suffix support (#316)

这些条目可能与 typing 效果的实现有关,但并没有直接解决您提到的 message 类型为对象时的问题。

如果您希望我为您创建一个新的 Issue 来报告这个问题,请告诉我,我会为您处理。或者,您可以尝试在现有的 Issue 中查看是否有相关的解决方案。请让我知道您的决定。

@pokerface9830
Copy link
Contributor

因为目前设计的是content 为string,才可以产生打字机效果哈,可以看下具体文档

@xuchaoying
Copy link
Author

因为目前设计的是content 为string,才可以产生打字机效果哈,可以看下具体文档

这个设计是否合理?一般来说还有附件的需求,如果有文件、图片需要展示在聊天框,那content必不可能是string,这种情况有官方解法吗

@kimteayon kimteayon added invalid This doesn't seem right enhancement New feature or request and removed bug Something isn't working invalid This doesn't seem right labels Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants