You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wanghanlin
431b1f2b1d
fix(client): 修复第三方接入 SDK 后 markdown 排版与标签样式缺失
根因:tdesign-web-components 的聊天/markdown 变量(--td-chat-*/--td-chat-md-*/--td-chat-input-*)
定义在 globalCSS 的 constructable stylesheet 中,选择器为 :root;但 adoptedStyleSheets 里的
:root 不匹配 shadow root,导致这些变量无法进入渲染 markdown 的 shadow DOM,标题/列表/引用/
代码块回退为初始值。t-tag 是 light DOM 组件,其 .t-tag 样式同样只在 globalCSS 中、进不了 light DOM。
改动:
- styles.ts 新增 tdChatVars(),将聊天/markdown/input 变量自包含声明在 .csk-root 上
- styles.ts 补注入 .csk-root .t-tag 系列 light DOM 样式
- 配合此前 tdThemeVars() 的主题变量,SDK 样式完全自包含,不再依赖宿主页面
|
5 days ago |
| .. |
|
wrapper
|
初始化spring boot项目,测试spring ai框架是否能正常调用ai大模型
|
1 year ago |