Skip to content

Conversation

@LeonardoSya
Copy link
Collaborator

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

💡 需求背景和解决方案

reactify增加两处修复:

1. 修复部分prop不挂载slot的问题

问题描述:icon, header, footer 等prop,既不是webc组件在slotProps中显式声明的props,也不以"Slot"结尾。因此插槽内容为空

image

修复:对任意ReactElement prop,还会kebab-case后去shadow dom查找同名slot,有的话就挂载进去

2. render 只透传String/Numebr/Boolean,避免复杂对象被当作 attribute 导致传成 [object Object] 的问题

image

现在,复杂对象会被下放到update()中处理

image

📝 更新日志

  • 本条 PR 不需要纳入 Changelog

@tdesign-react/chat

  • fix(reactify): 修复部分prop不挂载slot的问题

  • fix(reactify): 修复复杂对象被当作 attribute 传递的问题

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

@LeonardoSya LeonardoSya requested a review from carolin913 January 6, 2026 12:58
@LeonardoSya LeonardoSya self-assigned this Jan 6, 2026
@LeonardoSya LeonardoSya added the 🐞 bug Something isn't working label Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants