Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
186 commits
Select commit Hold shift + click to select a range
d78f739
feat(chat): 接入webc组件
May 12, 2025
bf14eed
fix(chat): 处理attachments接入空白问题 (#5439)
LzhengH May 12, 2025
31f2ecf
fix(attachments): 升级omi-vueify版本支持t-
May 19, 2025
bb7a608
feat(chat): 封装webc组件
May 19, 2025
80afba9
update submodule
May 19, 2025
aa69b4e
chat-action 组件 isGood/isBad 参数合并为 comment 参数 (#5503)
zhangjiaoalice May 26, 2025
9370318
feat(chat): 封装webc的思考过程组件
May 26, 2025
e73d1d3
Merge branch 'feature/attachments' of https://github.com/Tencent/tdes…
May 26, 2025
05c2263
revert(chat): 恢复基础文件代码
May 26, 2025
0267545
fix: tmp (#5515)
waiterxiaoyy May 28, 2025
e2e6140
feat(chat): 同步develop最新代码
May 28, 2025
eeed50e
feat(chat): update submodule
May 28, 2025
0202c92
Feature/alice filecard (#5523)
zhangjiaoalice May 29, 2025
49b6b9e
feat(chat): 升级tdesign-web-components依赖版本
May 29, 2025
6b2dea5
feat: 迁移chatbot组件 (#5527)
goldjunkrat May 29, 2025
b69a396
Feature/attachments (#5531)
goldjunkrat May 30, 2025
2a6cc47
将fork仓库同步到原本的仓库 (#5550)
goldjunkrat Jun 3, 2025
590e882
Merge branch 'feature/attachments' of https://github.com/Tencent/tdes…
Jun 3, 2025
7f50af7
Feature/alice reasoning (#5562)
zhangjiaoalice Jun 4, 2025
c151568
Merge branch 'feature/attachments' of https://github.com/Tencent/tdes…
Jun 4, 2025
d617aeb
feat(chat): 对齐react目录结构
Jun 9, 2025
dbc29e7
feat(chat): 新增思考过程目录
Jun 9, 2025
dc8ffe0
feat(chat): 调整chat结构
Jun 9, 2025
0d15efa
feat(chat): 修复think示例未显示问题
Jun 9, 2025
4943b71
feat(chat): chatmessage组件优化
Jun 9, 2025
98c0581
feat(chat): chatmessage示例问题修复
Jun 9, 2025
42a844e
feat(chat): update submodule
Jun 9, 2025
7d3bb2e
feat(chat): 同步webc的loading组件
Jun 10, 2025
490df0f
feat(chat): 调整action的引入
Jun 10, 2025
8eb8814
fix(chat): wc组件按自定义引入无效问题修复
Jun 10, 2025
b8e92d9
feat: chat-action 组件新增 分享按钮 (#5586)
zhangjiaoalice Jun 10, 2025
7d257a7
feat: chat-thinking 组件 demos 添加和完善 (#5589)
zhangjiaoalice Jun 10, 2025
7ebecbc
feat(sender): sender组件内置附件
Jun 10, 2025
f9c794b
feat(chat): 同步示例代码
Jun 10, 2025
4a9d945
feat(chat): action分享按钮国际化配置
Jun 11, 2025
76bf785
update submodule
Jun 11, 2025
a89a123
feat(sender): update submodule
zydemail Jun 16, 2025
5729d43
feat(chat): 同步develop最新代码
zydemail Jun 17, 2025
dbe66fe
feat(chat): 提交chatmessage的livedemo
zydemail Jun 17, 2025
1b345d0
feat(chat): chatmessage引入tvision
zydemail Jun 17, 2025
6ae7563
feat(chat): sender内置附件
zydemail Jun 18, 2025
f9bfcfd
feat(sender): 附件内置到inner-header插槽
zydemail Jun 19, 2025
b7bcb26
feat(sender): sender组件监听附件上传调整
zydemail Jun 23, 2025
2bd3064
feat(test): 新增chat组件的单测
zydemail Jul 2, 2025
b415e83
feat(test): chat组件迁移到chat仓库待补充单测环境
zydemail Jul 2, 2025
2dc7f9d
feat(chat): update submodule
zydemail Jul 3, 2025
2df63cd
feat(chat): 同步develop最新代码
zydemail Jul 3, 2025
bbe0907
feat(sender): prefix替换为footer-prefix
zydemail Jul 3, 2025
54c9365
feat(sender): 新增input-prefix
zydemail Jul 3, 2025
a1083c1
Feature/chat thinking livedemo (#5702)
zhangjiaoalice Jul 4, 2025
2a130c5
feat: 添加chatbot组件示例;添加attachments组件livedemo;将chatsender组件的loading属性和d…
goldjunkrat Jul 7, 2025
52600f7
feat: 升级wc组件;修复image doc custom示例 (#5718)
LzhengH Jul 9, 2025
6c3b291
fix(chat): 修复chatmessage示例显示问题,修复thinking的livedemo问题
Jul 13, 2025
0ec0bfc
feat(chat): 重构chat结构,内置chatmessage支持多种消息类型
Jul 13, 2025
6d6227a
feat(chatbot): 引入chatbot的type
zydemail Jul 14, 2025
e707468
feat: 修改chatSearchContent、chatSuggestionContent、chatList的定义位置;删除部分类型声…
goldjunkrat Jul 14, 2025
3725bb7
feat: 升级webc为1.1.7;修正示例中chat-thinking组件使用;修改onChatSent事件为onChatAfterS…
goldjunkrat Jul 15, 2025
df37a1d
feat(chat): animation与数据有关
zydemail Jul 17, 2025
04e9a29
Merge branch 'feature/attachments' of https://github.com/Tencent/tdes…
zydemail Jul 17, 2025
1b47f62
chore: 更新 common 子模块提交引用
zydemail Jul 17, 2025
94a1587
fix: 删除无用文件
zydemail Aug 1, 2025
48d5865
修改了构建配置,将指定的CSS文件排除在最终打包文件之外
zydemail Aug 1, 2025
faeb539
feat: 遍历chatMessage提供插槽渲染
zydemail Aug 1, 2025
df71a79
chore: update common
uyarn Aug 12, 2025
907b81c
chore: rebase develop
uyarn Aug 12, 2025
74fc5d6
chore: fix type build
uyarn Aug 12, 2025
e61973f
chore: upgrade vue to 3.5
uyarn Aug 12, 2025
21e1ac9
chore: fix type build
uyarn Aug 13, 2025
f939cc0
chore: fix build
uyarn Aug 13, 2025
a8b02a1
build(deps): 新增 tvision-charts-vue-next 等图形及数据处理依赖
zydemail Aug 15, 2025
89d4767
chore: update common
uyarn Aug 15, 2025
7ac946a
feat: chat内置chatmessage,chat的content字段支持object类型
zydemail Aug 18, 2025
ad40de0
Merge branch 'feature/attachments' of https://github.com/Tencent/tdes…
zydemail Aug 18, 2025
fc00d5d
fix: 修复类型报错
zydemail Aug 18, 2025
4ca343c
chore: fix common id
uyarn Aug 18, 2025
e498510
fix: 兼容旧版角色处理,支持content字段为对象类型
zydemail Aug 18, 2025
86bd7b9
Merge branch 'feature/attachments' of https://github.com/Tencent/tdes…
zydemail Aug 18, 2025
e19a364
chore: fix build
uyarn Aug 18, 2025
5371d1f
feat: 新增思考过程展示组件,调整消息结构与推理逻辑
zydemail Aug 19, 2025
ab0aea2
Merge branch 'feature/attachments' of https://github.com/Tencent/tdes…
zydemail Aug 19, 2025
a57d46d
chore: 0.5.0-alpha.3
uyarn Aug 19, 2025
560a365
feat: 将Chatbot的hookComponent示例中mockData直接写在demo中,解决stackblitz中缺少./moc…
goldjunkrat Aug 20, 2025
81631c2
feat: 提交chat-message的demo
zydemail Aug 21, 2025
032b82f
fix: 解决冲突
zydemail Aug 21, 2025
25df313
feat: 更新omi-vueify版本
zydemail Aug 23, 2025
e5c7943
chore: 更新omi-vueify版本
zydemail Sep 2, 2025
7afc729
refactor: actions插槽待废弃,替换为actionbar
zydemail Sep 2, 2025
d13b2e4
refactor: deprecate operationBtn, operation
zydemail Sep 2, 2025
992ddc7
refactor: replace isGood and isBad with comment prop
zydemail Sep 2, 2025
8ea3642
chore: update submodule
zydemail Sep 2, 2025
04fbade
feat: chat使用方式增加嵌套chat-message
zydemail Sep 2, 2025
72ae1f2
feat: 补充placement逻辑
zydemail Sep 2, 2025
899034f
feat: update submodule
zydemail Sep 2, 2025
392f15a
feat: chat示例优化
zydemail Sep 3, 2025
0227f0f
fix: 重新封装chat-message来适配webc的slot语法
zydemail Sep 3, 2025
6791e02
feat: 新增 chat-message-props
zydemail Sep 3, 2025
22e4af1
chore: 更新tdesign-web-components版本
zydemail Sep 11, 2025
3eb65e2
Fix/walkthrough bug fix (#6023)
zhangjiaoalice Sep 26, 2025
2476deb
feat: 新增附件配置与 markdown 组件,升级依赖并调整导入路径
zydemail Sep 27, 2025
1719683
feat: 新增 ChatMarkdown 组件及相关示例与文档,修复替换方法问题
zydemail Sep 28, 2025
f3e2225
feat: git忽略codebuddy
zydemail Sep 28, 2025
e6537a2
fix: 回滚transforms
zydemail Sep 28, 2025
6c1268c
chore: fix transform
uyarn Sep 28, 2025
2210753
chore: 升级依赖,改导出名,加TS脚本及自定义元素查找函数
zydemail Sep 28, 2025
b594339
Merge branch 'feature/attachments' of https://github.com/Tencent/tdes…
zydemail Sep 28, 2025
04dcad0
feat: 提交chat-markdown打字效果
zydemail Sep 28, 2025
6a1f697
style: 调整聊天消息与图表组件容器宽度
zydemail Sep 28, 2025
1684b50
feat: 同步官网文档(部分内容如ag-ui待完善) (#6032)
waiterxiaoyy Sep 28, 2025
c7e6ff8
feat: 新增 markdownProps 属性,优化消息组件内容绑定与角色属性
zydemail Sep 28, 2025
35c8b6a
Merge branch 'feature/attachments' of https://github.com/Tencent/tdes…
zydemail Sep 28, 2025
7ea2a69
chore: 调整图表宽、移除ref导入、更新子模块及新增组件导入导出
zydemail Sep 29, 2025
facae2e
feat: chat-action重名为chat-actionbar
zydemail Sep 29, 2025
223eecf
refactor: 多文件将 t-chat-action 组件替换为 t-chat-actionbar 组件
zydemail Sep 29, 2025
7660bbf
fix: 插槽名替换actionbar
zydemail Sep 29, 2025
9d18a0d
chore: 升级依赖,调整字段规则与默认值,新增错误消息内容
zydemail Sep 29, 2025
5707724
feat(pro-components): 移除chat-content无效role选项并新增status属性
zydemail Oct 7, 2025
fd80225
feat: 为聊天消息项新增status属性显示加载状态
zydemail Oct 9, 2025
ded45a8
feat: 扩展 markdownProps 类型,新增 options 参数
zydemail Oct 9, 2025
d1137d0
fix: 修复视觉走查问题 (#6049)
waiterxiaoyy Oct 9, 2025
f2eca9b
feat: 优化聊天界面交互,动态绑定数据并完善思考状态显示
zydemail Oct 9, 2025
3b40b23
Merge branch 'feature/attachments' of https://github.com/Tencent/tdes…
zydemail Oct 9, 2025
f7df863
feat: 新增自动滚动属性及逻辑,更新组件与示例内容
zydemail Oct 13, 2025
955199f
feat: 新增 autoScroll 属性,调整 reverse 默认正序及兼容倒序逻辑
zydemail Oct 13, 2025
81489a0
feat: 调整聊天组件顺序、示例及输入交互逻辑
zydemail Oct 13, 2025
e26ae1d
refactor: 调整聊天组件渲染顺序为正序并更新相关逻辑与数据
zydemail Oct 13, 2025
1878824
refactor: 调整聊天与推理组件,统一正序渲染并优化逻辑
zydemail Oct 13, 2025
2b9784f
refactor: 移除 is-stream-load 属性绑定并调整聊天相关逻辑
zydemail Oct 13, 2025
4a13b93
chore: update
uyarn Oct 14, 2025
6fdd95a
chore: 更新vite配置及common子模块引用
zydemail Oct 14, 2025
3b1a0b2
chore: update dependencies
uyarn Oct 15, 2025
59af465
Merge branch 'feature/attachments' of https://github.com/Tencent/tdes…
zydemail Oct 16, 2025
e3b1d33
Merge branch 'feature/auto-scroll' of https://github.com/Tencent/tdes…
zydemail Oct 16, 2025
0a40296
feat: chatBot的Demo新增agui应用场景 (#6069)
goldjunkrat Oct 16, 2025
d1f3ed3
Merge branch 'feature/attachments' of https://github.com/Tencent/tdes…
zydemail Oct 16, 2025
6353294
feat: 聊天消息添加附件分隔线,调整状态动画及样式
zydemail Oct 17, 2025
47da8ec
feat: 新增mermaid示例
zydemail Oct 17, 2025
a085309
chore: 调整打字机效果延迟时间为30ms
zydemail Oct 17, 2025
b03ed61
chore: update
uyarn Oct 17, 2025
fd36ac6
Merge branch 'feature/attachments' of github.com:Tencent/tdesign-vue-…
uyarn Oct 17, 2025
72a3eeb
feat: chat内置回到底部按钮及自定义消息内容控制
zydemail Oct 17, 2025
bca7740
feat: 新增 showScrollButton 属性控制滚动按钮显示
zydemail Oct 17, 2025
27e2bd8
refactor: chat替换chatlist组件并移除回到底部按钮及相关逻辑
zydemail Oct 17, 2025
eecf0a5
feat: 新增 showScrollButton 属性,优化 scrollToBottom 参数
zydemail Oct 17, 2025
2ca8046
feat: 扩展 chat-loading 组件 animation 属性可选值
zydemail Oct 17, 2025
a319f9b
feat: 扩展 chat-loading 组件 animation 属性可选值
zydemail Oct 17, 2025
47a9812
Merge branch 'feature/attachments' of github.com:Tencent/tdesign-vue-…
uyarn Oct 17, 2025
c812542
docs: 优化文档
zydemail Oct 18, 2025
cab5b78
chore: update demo
uyarn Oct 20, 2025
5bf145c
Merge branch 'feature/attachments' of github.com:Tencent/tdesign-vue-…
uyarn Oct 20, 2025
e036a9a
chore: update demo
uyarn Oct 22, 2025
4cc155c
chore: fix style and demo
uyarn Oct 23, 2025
3cec788
Merge branch 'feature/attachments' of https://github.com/Tencent/tdes…
zydemail Oct 27, 2025
78ee0f6
chore: optimize
uyarn Oct 29, 2025
e2ad0b5
Merge branch 'feature/attachments' of https://github.com/Tencent/tdes…
zydemail Nov 3, 2025
35a6752
fix: 完善文档
Nov 3, 2025
1e13453
Merge branch 'feature/attachments' of https://github.com/Tencent/tdes…
zydemail Nov 4, 2025
1c6ddcd
fix: 适配error状态
zydemail Nov 4, 2025
98a606b
fix: fix chatbot style
uyarn Nov 4, 2025
9900638
chore: update demo
uyarn Nov 5, 2025
6b39649
chore: update demo
uyarn Nov 5, 2025
784239b
chore: update demo
uyarn Nov 5, 2025
3e68680
chore: update demo
uyarn Nov 5, 2025
1adf886
chore: update
uyarn Nov 5, 2025
9a4a822
Merge branch 'feature/attachments' of https://github.com/Tencent/tdes…
zydemail Nov 7, 2025
f7b82dc
fix: 修复stackbiz示例运行报错问题
zydemail Nov 7, 2025
bcf9d73
fix: 同步animation的dots动效
zydemail Nov 7, 2025
6acf044
chore: update dots
uyarn Nov 11, 2025
15005e1
Merge branch 'feature/attachments' of github.com:Tencent/tdesign-vue-…
uyarn Nov 11, 2025
d6a0028
chore: add previous version link
uyarn Nov 12, 2025
22c5ca0
chore: remove files
uyarn Nov 12, 2025
c9c89c3
chore: add CHANGELOG
uyarn Nov 12, 2025
db1929a
chore: update docs
uyarn Nov 12, 2025
abf661d
chore: update docs
uyarn Nov 12, 2025
b69fa46
chore: update docs
uyarn Nov 12, 2025
38ddd98
chore: update common
uyarn Nov 12, 2025
de896b7
chore: update site components
uyarn Nov 13, 2025
735c050
chore: attachments 组件导出不需要chat 前缀
liweijie0812 Nov 13, 2025
361b9e9
chore: resolve conflict
uyarn Nov 17, 2025
0356286
chore: resolve conflict
uyarn Nov 18, 2025
83dc5c0
chore: update docs
uyarn Nov 18, 2025
e790d1b
chore: update docs
uyarn Nov 18, 2025
6a88e32
chore: update docs
uyarn Nov 18, 2025
8d344cf
chore: update docs
uyarn Nov 18, 2025
b467675
chore: fix lint
uyarn Nov 18, 2025
7c21ffb
chore: update volar config
liweijie0812 Nov 20, 2025
729ece0
chore: update volar config
liweijie0812 Nov 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ Dockerfile
robotMsg.json
.gitlogmap
.eslintcache
.codebuddy
.tico
12 changes: 10 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"eslint.format.enable": true,
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact", "vue"],
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue"
],
"[vue]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
Expand Down Expand Up @@ -42,6 +48,8 @@
"tmenu",
"tnode",
"vnode",
"wechat"
"wechat",
"Actionbar",
"vueify"
]
}
14 changes: 12 additions & 2 deletions internal/builds/vue-next-chat/build-components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,11 @@ export const buildEs = async () => {
input: [...inputList, `!${joinProComponentsChatRoot('index-lib.ts')}`],
// 为了保留 style/css.js
treeshake: false,
external: esExternal,
external: [
...esExternal,
/\.css$/, // 排除所有 CSS 文件
/tdesign-web-components.*\.css$/, // 排除 tdesign-web-components 的 CSS 文件
],
plugins: [multiInput({ relative: joinProComponentsChatRoot() }), ...getPlugins({ cssBuildType: 'multi' })],
});
bundle.write({
Expand All @@ -203,7 +207,13 @@ export const buildEs = async () => {
export const buildEsm = async () => {
const bundle = await rollup({
input: [...inputList, `!${joinProComponentsChatRoot('index-lib.ts')}`],
external: [...externalDeps, ...externalPeerDeps, /@tdesign\/common-style/],
external: [
...externalDeps,
...externalPeerDeps,
/@tdesign\/common-style/,
/\.css$/, // 排除所有 CSS 文件
/tdesign-web-components.*\.css$/, // 排除 tdesign-web-components 的 CSS 文件
],
plugins: [multiInput({ relative: joinProComponentsChatRoot() }), ...getPlugins({ cssBuildType: 'source' })],
});
await bundle.write({
Expand Down
20 changes: 8 additions & 12 deletions internal/builds/vue-next-chat/build-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const generateSourceTypes = async () => {
const typesRoot = joinWorkspaceRoot(typesTempDir);

// 2. 删除 style 目录
const styleDirPaths = await glob(`${joinPosix(typesRoot, 'packages/**/style')}`);
const styleDirPaths = await glob(`${joinPosix(typesRoot, 'packages/pro-components/chat/**/style')}`);
await Promise.all(
styleDirPaths.map(async (styleDirPath) => {
await remove(styleDirPath);
Expand All @@ -27,20 +27,17 @@ const generateTargetTypes = async (target: 'es' | 'esm' | 'lib' | 'cjs') => {

// 1. 复制 packages/pro-components/chat 到 packages/tdesign-vue-next-chat/target 下
const targetDir = joinTdesignVueNextChatRoot(`${target}`);
// TODO
// temp delete 'dist/types/packages/pro-components/chat/_example'

// should be use correct tsconfig.json to generate correct types
await remove(joinPosix(typesRoot, `packages/pro-components/chat/_example`));
await copy(joinPosix(typesRoot, `packages/pro-components/chat`), targetDir);

// 2. 替换 @tdesign/common-js 为 tdesign-vue-next/common/js
// TODO: check if this is needed, NOW chat does not use common-js
// const dtsPaths = await glob(`${joinPosix(targetDir, '**/*.d.ts')}`);
// const rewrite = dtsPaths.map(async (filePath) => {
// const content = await readFile(filePath, 'utf8');
// await writeFile(filePath, content.replace(/@tdesign\/common-js/g, `tdesign-vue-next/${target}/common/js`), 'utf8');
// });
// await Promise.all(rewrite);
const dtsPaths = await glob(`${joinPosix(targetDir, '**/*.d.ts')}`);
const rewrite = dtsPaths.map(async (filePath) => {
const content = await readFile(filePath, 'utf8');
await writeFile(filePath, content.replace(/@tdesign\/common-js/g, `tdesign-vue-next/${target}/common/js`), 'utf8');
});
await Promise.all(rewrite);
};

const removeSourceTypes = async () => {
Expand All @@ -52,7 +49,6 @@ export const buildTypes = async () => {
try {
await removeSourceTypes();
await generateSourceTypes();
// const targets = ['es', 'esm', 'lib', 'cjs'] as const;
const targets = ['es', 'esm'] as const;
await Promise.all(
targets.map(async (target) => {
Expand Down
2 changes: 1 addition & 1 deletion internal/utils/src/catalogs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const catalogs = {
sortablejs: '^1.15.0',
tinycolor2: '^1.6.0',
validator: '^13.9.0',
vue: '^3.3.9',
vue: '^3.5.0',
'vue-router': '^4.2.4',
},
docs: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@
"eslint --fix --cache"
]
}
}
}
2 changes: 1 addition & 1 deletion packages/components/affix/affix.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default defineComponent({
const COMPONENT_NAME = usePrefixClass('affix');
const renderContent = useContent();

const affixWrapRef = ref<HTMLElement>(null);
const affixWrapRef = ref(null);
const affixRef = ref<HTMLElement>(null);
const placeholderEL = ref(document?.createElement('div')); // 占位节点
const ticking = ref(false);
Expand Down
4 changes: 2 additions & 2 deletions packages/components/alert/alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ export default defineComponent({

const renderIconTNode = useIcon();
// alert的dom引用
const alertRef = ref<HTMLElement | null>(null);
const alertRef = ref<HTMLElement>();
// description的dom引用
const descriptionRef = ref<HTMLElement | null>(null);
const descriptionRef = ref<HTMLElement>();
// desc高度
const descHeight = ref(0);
// 是否可见,关闭后置为false
Expand Down
1 change: 1 addition & 0 deletions packages/components/anchor/anchor-target.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default defineComponent({
const className = [`${COMPONENT_NAME.value}__target`];
const iconClassName = `${classPrefix.value}-copy`;
return (
// @ts-expect-error
<TAG id={id} class={className}>
{children && children(null)}
<Popup content={globalConfig.value.copyText} placement="top" showArrow class={iconClassName}>
Expand Down
2 changes: 1 addition & 1 deletion packages/components/anchor/anchor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default defineComponent({
const anchorRef = ref<HTMLElement | null>(null);
const links = ref<string[]>([]);
const active = ref('');
const scrollContainer = ref<ANCHOR_CONTAINER>(null);
const scrollContainer = ref<ANCHOR_CONTAINER>();
const handleScrollLock = ref<boolean>(false);
const activeLineStyle = reactive({});
const COMPONENT_NAME = usePrefixClass('anchor');
Expand Down
1 change: 1 addition & 0 deletions packages/components/avatar/__tests__/avatar.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ describe('Avatar', () => {
describe('props', () => {
let wrapper: VueWrapper<InstanceType<typeof Avatar>> | null = null;
beforeEach(() => {
// @ts-ignore TODO
wrapper = mount(<Avatar>Avatar</Avatar>) as VueWrapper<InstanceType<typeof Avatar>>;
});

Expand Down
1 change: 1 addition & 0 deletions packages/components/breadcrumb/breadcrumb-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export default defineComponent({
});

const handleClick = () => {
// @ts-ignore
const router = props.router || proxy.$router;

if (props.to && router) {
Expand Down
1 change: 0 additions & 1 deletion packages/components/calendar/calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ export default defineComponent({
<div class={cls.controlSectionCell.value}>
<TCheckTag
class={cls.controlTag.value}
theme={state.isShowWeekend ? 'default' : 'primary'}
size="large"
{...weekendBtn.vBind.value}
disabled={weekendBtn.isDisabled.value}
Expand Down
4 changes: 1 addition & 3 deletions packages/components/cascader/cascader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,11 @@ export default defineComponent({
return renderTNodeJSX('suffixIcon');
}

const { visible, disabled } = cascaderContext.value;
const { visible } = cascaderContext.value;
return (
<FakeArrow
overlayClassName={getFakeArrowIconClass(classPrefix.value, STATUS.value, cascaderContext.value)}
isActive={visible}
disabled={disabled}
/>
);
};
Expand Down Expand Up @@ -189,7 +188,6 @@ export default defineComponent({
option={props.option}
options={props.options}
empty={props.empty}
visible={visible}
trigger={props.trigger}
loading={props.loading}
loadingText={props.loadingText}
Expand Down
2 changes: 1 addition & 1 deletion packages/components/color-picker/color-picker-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ export default defineComponent({
setup(props, { attrs }) {
const newProps = computed(() => pickBy({ ...props, ...attrs }, (v) => v !== undefined));
const prefix = usePrefixClass();
return () => <ColorPanel {...newProps.value} popupProps={null} class={`${prefix.value}-is-inline`} />;
return () => <ColorPanel {...newProps.value} class={`${prefix.value}-is-inline`} />;
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default defineComponent({
props: baseProps,
setup(props) {
const baseClassName = useBaseClassName();
const refPanel = ref<HTMLElement>(null);
const refPanel = ref<HTMLElement>();
const refThumb = ref<HTMLElement>(null);
const dragInstance = ref<Draggable>(null);
const panelRect = reactive({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default defineComponent({
},
setup(props) {
const baseClassName = useBaseClassName();
const refPanel = ref<HTMLElement>(null);
const refPanel = ref<HTMLElement>();
const refThumb = ref<HTMLElement>(null);
const dragInstance = ref<Draggable>(null);
const panelRect = reactive({
Expand Down
5 changes: 5 additions & 0 deletions packages/components/config-provider/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,11 @@ export interface ChatConfig {
* @default ''
*/
dislikeTipText?: string;
/**
* 语言配置,“分享”占位描述文本
* @default ''
*/
shareTipText?: string;
/**
* 语言配置,“复制代码”占位描述文本
* @default ''
Expand Down
1 change: 0 additions & 1 deletion packages/components/date-picker/DatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,6 @@ export default defineComponent({
}
popupVisible={!isReadOnly.value && popupVisible.value}
valueDisplay={() => renderTNodeJSX('valueDisplay', { params: valueDisplayParams.value })}
needConfirm={props.needConfirm}
{...(props.selectInputProps as TdDatePickerProps['selectInputProps'])}
panel={() => <TSinglePanel {...panelProps.value} />}
tagInputProps={{
Expand Down
4 changes: 2 additions & 2 deletions packages/components/empty/empty.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useConfig, useTNodeJSX, usePrefixClass, useCommonClassName } from '@tde

import props from './props';
import type { TdEmptyProps } from './type';
import Image from '../image';
import Image, { ImageProps } from '../image';
import MaintenanceSvg from './components/MaintenanceSvg';
import NetworkErrorSvg from './components/NetworkErrorSvg';
import EmptySvg from './components/EmptySvg';
Expand Down Expand Up @@ -82,7 +82,7 @@ export default defineComponent({
} else if (data && Reflect.has(data, 'setup')) {
result = h(data as unknown);
} else if (isPlainObject(data)) {
result = <Image {...data} />;
result = <Image {...(data as ImageProps)} />;
}

return data ? result : null;
Expand Down
22 changes: 11 additions & 11 deletions packages/components/form/__tests__/form-item.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('FormItem', () => {
const wrapper = mount(
<Form>
<FormItem label="label" name="name" for="name">
<Input id="name" />
<Input />
</FormItem>
</Form>,
);
Expand All @@ -22,7 +22,7 @@ describe('FormItem', () => {
const wrapper = mount(
<Form>
<FormItem label="label" name="name" help="help text">
<Input id="name" />
<Input />
</FormItem>
</Form>,
);
Expand All @@ -33,7 +33,7 @@ describe('FormItem', () => {
const wrapperSlot = mount(
<Form>
<FormItem label="label" name="name" v-slots={{ help: () => 'help text' }}>
<Input id="name" />
<Input />
</FormItem>
</Form>,
);
Expand All @@ -43,7 +43,7 @@ describe('FormItem', () => {
const wrapperFunction = mount(
<Form>
<FormItem label="label" name="name" help={renderHelp}>
<Input id="name" />
<Input />
</FormItem>
</Form>,
);
Expand All @@ -54,7 +54,7 @@ describe('FormItem', () => {
const wrapper = mount(
<Form>
<FormItem label="label" name="name">
<Input id="name" />
<Input />
</FormItem>
</Form>,
);
Expand All @@ -65,7 +65,7 @@ describe('FormItem', () => {
const wrapperSlot = mount(
<Form>
<FormItem name="name" v-slots={{ label: () => 'label' }}>
<Input id="name" />
<Input />
</FormItem>
</Form>,
);
Expand All @@ -75,7 +75,7 @@ describe('FormItem', () => {
const wrapperFunction = mount(
<Form>
<FormItem name="name" label={renderHelp}>
<Input id="name" />
<Input />
</FormItem>
</Form>,
);
Expand All @@ -85,7 +85,7 @@ describe('FormItem', () => {
it('labelAlign[string]', () => {
const formItemWrapper = mount(
<FormItem label="label" name="name">
<Input id="name" />
<Input />
</FormItem>,
);

Expand All @@ -99,7 +99,7 @@ describe('FormItem', () => {
mount(
<Form label-align="right">
<FormItem label="label" name="name" labelAlign={align}>
<Input id="name" />
<Input />
</FormItem>
</Form>,
);
Expand All @@ -114,7 +114,7 @@ describe('FormItem', () => {
mount(
<Form label-width="100px">
<FormItem label="label" name="name" labelWidth={labelWidth}>
<Input id="name" />
<Input />
</FormItem>
</Form>,
);
Expand All @@ -134,7 +134,7 @@ describe('FormItem', () => {
return () => (
<Form rules={rules}>
<FormItem label="label" name="name">
<Input id="name" />
<Input />
</FormItem>
</Form>
);
Expand Down
4 changes: 4 additions & 0 deletions packages/components/form/__tests__/form.hooks.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ describe('Form hooks', () => {
const wrapper = mount(TestComponent, {
props: { disabled: true },
});
// @ts-ignore: TODO
expect(wrapper.vm.disabledState).toBe(true);
});

Expand All @@ -32,6 +33,7 @@ describe('Form hooks', () => {
},
},
});
// @ts-ignore: TODO
expect(wrapper.vm.disabledState).toBe(true);
});

Expand All @@ -49,6 +51,7 @@ describe('Form hooks', () => {
return { disabledState };
},
});
// @ts-ignore: TODO
expect(wrapper.vm.disabledState).toBe(true);
});

Expand All @@ -66,6 +69,7 @@ describe('Form hooks', () => {
return { disabledState };
},
});
// @ts-ignore: TODO
expect(wrapper.vm.disabledState).toBe(false);
});
});
Expand Down
Loading
Loading