Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
1b06219
feat(site): add AI Chat routing
anlyyao Sep 17, 2025
b2ab3f4
chore(demo): update demo
anlyyao Sep 17, 2025
e7f9e96
chore: update the directory structure again
anlyyao Oct 23, 2025
8abd59f
chore: update liveUrl for dev
anlyyao Oct 23, 2025
c451e1b
feat: update qrcode for page
anlyyao Oct 23, 2025
dcc7764
docs: update title
anlyyao Oct 23, 2025
1ffb476
feat(chat): 更新聊天组件及相关示例代码
zydemail Oct 24, 2025
e96a078
fix: 修改common路径
zydemail Oct 24, 2025
654db3e
fix: 修改代码引入路径
zydemail Oct 25, 2025
6ef105c
fix: attachments对齐pc端
zydemail Oct 25, 2025
8297414
fix: chat-loading样式问题修复
zydemail Oct 25, 2025
c26a5ac
feat(site): add AI Chat routing
anlyyao Sep 17, 2025
7ec1231
chore(demo): update demo
anlyyao Sep 17, 2025
a3f5697
chore: update the directory structure again
anlyyao Oct 23, 2025
2073c3e
chore: update liveUrl for dev
anlyyao Oct 23, 2025
d948257
feat: update qrcode for page
anlyyao Oct 23, 2025
5725e25
docs: update title
anlyyao Oct 23, 2025
a98c83d
feat(chat): 更新聊天组件及相关示例代码
zydemail Oct 24, 2025
4748399
fix: 修改common路径
zydemail Oct 24, 2025
df07b52
fix: 修改代码引入路径
zydemail Oct 25, 2025
8455204
fix: attachments对齐pc端
zydemail Oct 25, 2025
013664a
fix: chat-loading样式问题修复
zydemail Oct 25, 2025
baac217
style: fixed multiple style errors
anlyyao Oct 27, 2025
f79d667
fix(site): fix page path error
anlyyao Oct 27, 2025
3c509c4
style(demo): fix style
anlyyao Oct 27, 2025
9d2991f
fix: 修复chatContentProps的使用问题
zydemail Oct 27, 2025
ac11411
fix: 解决冲突
zydemail Oct 27, 2025
698df61
chore: fixed multiple errors in multiple components
anlyyao Oct 28, 2025
0b2dafa
feat: 文案调整
mimaoxiao Oct 28, 2025
b856b54
feat: chat图片示例调整
mimaoxiao Oct 28, 2025
ac6261a
style(ChatMarkdown): use css token
anlyyao Oct 28, 2025
5961564
fix(ChatActionbar): update demo
anlyyao Oct 28, 2025
988ab8f
chore: styleIsolation configuration is migrated from options to json
anlyyao Oct 28, 2025
52ddda2
fix: chat示例样式调整;chatSender示例增加背景色;chatSender组件输入框的最大最小高度按照按照rpx传值
goldjunkrat Oct 30, 2025
3868e07
feat(ChatActionBar): update icon
anlyyao Oct 30, 2025
4af5be3
feat(ChatLoading): change circle to dots type
anlyyao Oct 30, 2025
bb37680
Merge branch 'feature/chat' of https://github.com/Tencent/tdesign-min…
zydemail Oct 30, 2025
11cfc70
chore(ChatActionbar): named according to BEM
anlyyao Oct 30, 2025
7a72b94
chore(ChatLoading): named according to BEM
anlyyao Oct 30, 2025
09040d6
chore(ChatThinking): named according to BEM
anlyyao Oct 30, 2025
6ffd0ab
chore(ChatContent): named according to BEM
anlyyao Oct 30, 2025
c76baf2
refactor(ChatList): remove old chat example files and add new chat li…
zydemail Oct 31, 2025
01859bf
Merge branch 'feature/chat' of https://github.com/Tencent/tdesign-min…
zydemail Oct 31, 2025
b0f05c8
feat: 补充遗漏样式
mimaoxiao Oct 31, 2025
2126827
chore(Attachments): named according to BEM
anlyyao Oct 31, 2025
585dcfe
chore(ChatMessage): named according to BEM
anlyyao Oct 31, 2025
056e6b8
chore: update app.json
anlyyao Oct 31, 2025
8dcc83e
chore(ChatMarkdown): named according to BEM
anlyyao Oct 31, 2025
e598c01
chore(ChatSender): named according to BEM
anlyyao Oct 31, 2025
cf05942
chore(ChatList): named according to BEM
anlyyao Oct 31, 2025
7dec377
chore: format
anlyyao Oct 31, 2025
40de2e2
feat: 更改为tdesign-miniprogram引入chat组件
zydemail Nov 3, 2025
6e40d6b
Merge branch 'feature/chat' of https://github.com/Tencent/tdesign-min…
zydemail Nov 3, 2025
9bfdbe1
feat(ChatList): add scrollToBottom method demo
zydemail Nov 3, 2025
39e9c65
fix: 修复多个组件示例源码展示问题
zydemail Nov 3, 2025
a12b753
docs: update README
zydemail Nov 3, 2025
dcf9d84
docs: update getting-started
waiterxiaoyy Nov 3, 2025
a4732a8
feat: 完善文档
zydemail Nov 3, 2025
be39c9e
Merge branch 'feature/chat' of https://github.com/Tencent/tdesign-min…
zydemail Nov 3, 2025
b799c27
feat: 新增错误状态
zydemail Nov 4, 2025
3789dc8
fix: remove isMarkdown property
zydemail Nov 4, 2025
06814e6
refactor: rename event from handleAction to actions in ChatActionbar …
zydemail Nov 4, 2025
581382b
refactor: rename event from expandChange to collapsedChange in ChatTh…
zydemail Nov 4, 2025
6a9ec45
fix: 修复思考过程内容首行换行问题
zydemail Nov 4, 2025
1041120
feat: refactor: 移除 imageProps 属性,新增 FileItem 尺寸及模式属性
zydemail Nov 4, 2025
af6cca2
docs: update README to clarify items property description in attachments
zydemail Nov 4, 2025
f53f3b9
docs: 移除 chat-sender 组件 update:visible 事件说明
zydemail Nov 4, 2025
03c3bba
fix(demo): fixed multiple style issues
anlyyao Nov 4, 2025
1b06549
fix(demo): fixed multiple style issues
anlyyao Nov 4, 2025
338b85c
feat(ChatSender): 修改文档描述
goldjunkrat Nov 5, 2025
e1a777c
Merge branch 'feature/chat' of https://github.com/Tencent/tdesign-min…
goldjunkrat Nov 5, 2025
a1725af
feat(Attachments): use the multiply icon instead
anlyyao Nov 5, 2025
1c3cfd6
Merge branch 'feature/chat' of https://github.com/Tencent/tdesign-min…
zydemail Nov 5, 2025
a9b4b15
fix(ChatLoading): fix text spacing error
anlyyao Nov 5, 2025
7813d15
Merge branch 'feature/chat' of https://github.com/Tencent/tdesign-min…
zydemail Nov 5, 2025
d020a17
refactor(ChatSender): remove type property from upload configuration …
zydemail Nov 5, 2025
0376d98
chore(site): update site.config.mjs file
anlyyao Nov 5, 2025
f45535a
Merge branch 'feature/chat' of https://github.com/Tencent/tdesign-min…
zydemail Nov 5, 2025
26bb36c
chore(ChatMessage): setting max-width
anlyyao Nov 5, 2025
e46324e
fix(Attachments): fix file margin-top erro
anlyyao Nov 6, 2025
2e63f5e
feat: 更新聊天内容类型及界面插槽名称
zydemail Nov 6, 2025
011e031
Merge branch 'feature/chat' of https://github.com/Tencent/tdesign-min…
zydemail Nov 6, 2025
6c7a35c
refactor: 移除未使用样式及更新注释描述
zydemail Nov 7, 2025
2befe4d
style: 移除 chat-actionbar 组件未使用样式代码
zydemail Nov 7, 2025
51ba96e
docs(Chat): update api docs (#4038)
anlyyao Nov 7, 2025
8b8880d
feat: 新增动画与状态属性,优化消息结构及性能
zydemail Nov 7, 2025
7b5d36b
fix: 修复chat-list内置消息列表问题
zydemail Nov 7, 2025
723ebb7
refactor: update submodule
zydemail Nov 7, 2025
f300efc
fix(chat-list): 修复控制台告警
zydemail Nov 7, 2025
cdbe85c
docs: add code snippet link (#4041)
anlyyao Nov 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
**/*.wxs
miniprogram_dist
node_modules

# special files
echarts.js
2 changes: 1 addition & 1 deletion .github/workflows/typos-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ nd = "nd"
loosing = "loosing"

[files]
extend-exclude = ["CHANGELOG*.md", "changelog.json"]
extend-exclude = ["CHANGELOG*.md", "changelog.json", "echarts.js"]
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"build:assets": "cross-env NODE_ENV=production gulp assets:build --gulpfile script/gulpfile.dist.js --cwd ./",
"update:icons": "pnpm -C packages/tdesign-miniprogram/site update:icons",
"update:css": "pnpm -C packages/tdesign-miniprogram/site update:css",
"lintfix": "eslint '{packages/components,packages/tdesign-miniprogram/example}/**/*.{js,ts}' --fix",
"lint": "eslint '{packages/components,packages/tdesign-miniprogram/example}/**/*.{js,ts}'",
"format": "prettier {packages/components,packages/tdesign-miniprogram/example,script}/**/*.{js,ts,wxss,less,wxml,html,json,md,wxs} --write",
"lintfix": "eslint '{packages/components,packages/pro-components,packages/tdesign-miniprogram/example}/**/*.{js,ts}' --fix",
"lint": "eslint '{packages/components,packages/pro-components,packages/tdesign-miniprogram/example}/**/*.{js,ts}'",
"format": "prettier {packages/components,packages/pro-components,packages/tdesign-miniprogram/example,script}/**/*.{js,ts,wxss,less,wxml,html,json,md,wxs} --write",
"site": "pnpm -C packages/tdesign-miniprogram/site site",
"site:dev": "pnpm -C packages/tdesign-miniprogram/site site:dev",
"site:prerender": "pnpm -C packages/tdesign-miniprogram/site site:prerender",
Expand Down Expand Up @@ -119,4 +119,4 @@
"eslint --fix"
]
}
}
}
2 changes: 1 addition & 1 deletion packages/common
Submodule common updated 487 files
6 changes: 3 additions & 3 deletions packages/components/common/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ export interface Styles {

export type ImageEvent = any;

/**
* 通用全局类型
* */
export type PlainObject = { [key: string]: any };

export type OptionData = {
Expand All @@ -28,6 +25,9 @@ export type TreeOptionData<T = string | number> = {
content?: string;
} & PlainObject;

/**
* 通用全局类型
* */
export type SizeEnum = 'small' | 'medium' | 'large';

export type ShapeEnum = 'circle' | 'round';
Expand Down
2 changes: 2 additions & 0 deletions packages/components/common/style/theme/_dark.less
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@
--td-bg-color-secondarycontainer-active: var(--td-gray-color-11); // 色彩 - 次级容器 - active
--td-bg-color-component-active: var(--td-gray-color-10); // 色彩 - 组件 - active
--td-bg-color-component-disabled: var(--td-gray-color-12); // 色彩 - 组件 - disabled
--td-bg-color-secondarycomponent: var(--td-gray-color-10); // 色彩 - 次级组件
--td-bg-color-secondarycomponent-active: var(--td-gray-color-8); // 色彩 - 次级组件 - active

// 特殊组件背景色,目前只用于 button、input 组件多主题场景,浅色主题下固定为白色,深色主题下为 transparent 适配背景颜色
--td-bg-color-specialcomponent: transparent;
Expand Down
7 changes: 0 additions & 7 deletions packages/components/form-item/form-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ import { validate, ValidateStatus } from './form-model';
import config from '../common/config';
import { SuperComponent, wxComponent, RelationsOptions } from '../common/src/index';


const { prefix } = config;
const name = `${prefix}-form-item`;

@wxComponent()
export default class FormItem extends SuperComponent {
externalClasses = [

`${prefix}-class`,
`${prefix}-class-label`,
`${prefix}-class-controls`,
Expand All @@ -21,7 +19,6 @@ export default class FormItem extends SuperComponent {
properties = props as any;

data = {

prefix,
classPrefix: name,
errorList: [],
Expand All @@ -36,7 +33,6 @@ export default class FormItem extends SuperComponent {
};

relations: RelationsOptions = {

'../form/form': {
type: 'parent',
linked(target) {
Expand Down Expand Up @@ -78,7 +74,6 @@ export default class FormItem extends SuperComponent {
};

lifetimes = {

ready() {
this.initFormItem();
},
Expand All @@ -90,7 +85,6 @@ export default class FormItem extends SuperComponent {
};

methods = {

// 处理描述信息链接点击事件
handlePreviewImage(e) {
const { url } = e.currentTarget.dataset;
Expand Down Expand Up @@ -272,4 +266,3 @@ export default class FormItem extends SuperComponent {
},
};
}

2 changes: 0 additions & 2 deletions packages/components/form-item/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const props: TdFormItemProps = {
/** 表单项说明内容 */
help: {
type: String,

},
/** 字段标签名称 */
label: {
Expand Down Expand Up @@ -52,7 +51,6 @@ const props: TdFormItemProps = {
showErrorMessage: {
type: null,
value: undefined,

},
};

Expand Down
4 changes: 2 additions & 2 deletions packages/components/form/_example/horizontal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ Component({
},

onRemove(e) {
const {index} = e.detail;
const {photo} = this.data.formData;
const { index } = e.detail;
const { photo } = this.data.formData;
photo.splice(index, 1);
this.setData({
'formData.photo': photo,
Expand Down
4 changes: 2 additions & 2 deletions packages/components/form/_example/vertical/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ Component({
},

onRemove(e) {
const {index} = e.detail;
const {photo} = this.data.formData;
const { index } = e.detail;
const { photo } = this.data.formData;
photo.splice(index, 1);
this.setData({
'formData.photo': photo,
Expand Down
2 changes: 1 addition & 1 deletion packages/components/tab-panel/tab-panel.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<view
wx:if="{{!lazy || hasActivated}}"
class="class {{prefix}}-class {{classPrefix}} {{active ? classPrefix + '--active': classPrefix + '--inactive'}}"
style="{{_._style([style, customStyle, (hide ? 'display: none' : '')])}}"
style="{{_._style([style, customStyle, (hide ? 'display: none;' : '')])}}"
id="{{id}}"
aria-role="tabpanel"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/components/tabs/tabs.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@tabs: ~'@{prefix}-tabs';
@item: ~'@{tabs}__item';

@tab-font-size: var(--td-tab-font-size, 28rpx);
@tab-font-size: var(--td-tab-font-size, @font-size-base);
@tab-nav-bg-color: var(--td-tab-nav-bg-color, @bg-color-container);

@tab-item-height: var(--td-tab-item-height, 96rpx);
Expand Down
70 changes: 0 additions & 70 deletions packages/pro-components/chat-actionbar/README.md

This file was deleted.

61 changes: 0 additions & 61 deletions packages/pro-components/chat-actionbar/_example/action/index.js

This file was deleted.

This file was deleted.

This file was deleted.

33 changes: 0 additions & 33 deletions packages/pro-components/chat-actionbar/_example/base/index.js

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading