Skip to content

feat: Chat 高阶组件独立拆分及脚本适配 - #970

Merged
liweijie0812 merged 4 commits into
mainfrom
feat/chat-pipeline
Aug 11, 2026
Merged

feat: Chat 高阶组件独立拆分及脚本适配#970
liweijie0812 merged 4 commits into
mainfrom
feat/chat-pipeline

Conversation

@liweijie0812

@liweijie0812 liweijie0812 commented Aug 7, 2026

Copy link
Copy Markdown
Member
  • 新增 CHAT_COMPONENT_MAP(PascalCase key → 组件列表),Chat 组件从 COMPONENT_API_MD_MAP 中独立
  • 新增 CHAT_FRAMEWORK_CONFIG(与 FRAMEWORK_MAP 并列),管理各框架 Chat 包名/路径
  • 15 个 consumer 文件统一合并 CHAT_COMPONENT_MAP 到生成管线
  • docs: combineApi 支持 chat 组件合并输出
  • types: combineTsFile 合并 chat 类型定义
  • props: vue-props / react-default-props / configurable-props 支持 chat 目录路由
  • helper: 拆分 chat/non-chat volar,chat volar 使用独立包名
  • helper: 新增 UniApp 支持(.vue 文件格式 + .default)
  • utils: getComponentBasePath 从 CHAT_FRAMEWORK_CONFIG 获取路径,兼容本地/URL
  • common: 新增 resolveComponentMergeList / getChatReverseMap 辅助函数
  • common: isComponent 增加空值守卫
  • 更正 UniApp FRAMEWORK_MAP 的 name/volarPath
  • 清理 MINIPROGRAM maps 中 stale Chat:[] 引用

移动端已适配完成,pc 等webc 改造完成再继续适配

- 新增 CHAT_COMPONENT_MAP(PascalCase key → 组件列表),Chat 组件从 COMPONENT_API_MD_MAP 中独立
- 新增 CHAT_FRAMEWORK_CONFIG(与 FRAMEWORK_MAP 并列),管理各框架 Chat 包名/路径
- 15 个 consumer 文件统一合并 CHAT_COMPONENT_MAP 到生成管线
- docs: combineApi 支持 chat 组件合并输出
- types: combineTsFile 合并 chat 类型定义
- props: vue-props / react-default-props / configurable-props 支持 chat 目录路由
- helper: 拆分 chat/non-chat volar,chat volar 使用独立包名
- helper: 新增 UniApp 支持(.vue 文件格式 + .default)
- utils: getComponentBasePath 从 CHAT_FRAMEWORK_CONFIG 获取路径,兼容本地/URL
- common: 新增 resolveComponentMergeList / getChatReverseMap 辅助函数
- common: isComponent 增加空值守卫
- 更正 UniApp FRAMEWORK_MAP 的 name/volarPath
- 清理 MINIPROGRAM maps 中 stale Chat:[] 引用
- 新增 CHAT_COMPONENT_MAP(PascalCase key → 组件列表),Chat 组件从 COMPONENT_API_MD_MAP 中独立
- 新增 CHAT_FRAMEWORK_CONFIG(与 FRAMEWORK_MAP 并列),管理各框架 Chat 包名/路径
- 15 个 consumer 文件统一合并 CHAT_COMPONENT_MAP 到生成管线
- docs: combineApi 支持 chat 组件合并输出
- types: combineTsFile 合并 chat 类型定义
- props: vue-props / react-default-props / configurable-props 支持 chat 目录路由
- helper: 拆分 chat/non-chat volar,chat volar 使用独立包名
- helper: 新增 UniApp 支持(.vue 文件格式 + .default)
- utils: getComponentBasePath 从 CHAT_FRAMEWORK_CONFIG 获取路径,兼容本地/URL
- common: 新增 resolveComponentMergeList / getChatReverseMap 辅助函数
- common: isComponent 增加空值守卫
- 更正 UniApp FRAMEWORK_MAP 的 name/volarPath
- 清理 MINIPROGRAM maps 中 stale Chat:[] 引用
- 新增 CHAT_FRAMEWORKS(VueNext(PC)/React(PC)/Miniprogram/UniApp),仅这些框架走
  CHAT_COMPONENT_MAP 独立拆分;其余框架 Chat 组件按常规组件输出到各自框架目录
- COMPONENT_API_MD_MAP 恢复 Vue(PC) 的合并 Chat 入口,保证 tdesign-vue 的 Chat
  系列仍合并输出到主包
- CHAT_FRAMEWORK_CONFIG 抽离到 config/chat-config.js,解除 utils -> config/index
  的循环依赖(TDZ 风险)
- isChatComponentPath 增加 framework 参数,Vue(PC)/Vue(Mobile) 下不再命中 chat 路径
- helper writeVolar 对 chatConfig 判空,避免 Vue(PC) 生成 chat volar 时崩溃
- 删除死代码 getChatReverseMap,简化 resolveComponentMergeList
@liweijie0812 liweijie0812 changed the title feat: Chat 高阶组件独立拆分及全管线适配 feat: Chat 高阶组件独立拆分及脚本适配 Aug 10, 2026
@liweijie0812 liweijie0812 changed the title feat: Chat 高阶组件独立拆分及脚本适配 feat: Chat 高阶组件独立拆分及脚本适配(移动端已适配完成,pc 等webc 改造完成再继续适配) Aug 11, 2026
@liweijie0812 liweijie0812 changed the title feat: Chat 高阶组件独立拆分及脚本适配(移动端已适配完成,pc 等webc 改造完成再继续适配) feat: Chat 高阶组件独立拆分及脚本适配 Aug 11, 2026
@liweijie0812
liweijie0812 merged commit e1e37b8 into main Aug 11, 2026
9 checks passed
@liweijie0812
liweijie0812 deleted the feat/chat-pipeline branch August 11, 2026 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant