diff --git a/db/TDesign.db b/db/TDesign.db index 4ec57c4b..4cd1772a 100644 Binary files a/db/TDesign.db and b/db/TDesign.db differ diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/attachments/README.en-US.md b/packages/products/tdesign-miniprogram/packages/pro-components/chat/attachments/README.en-US.md new file mode 100644 index 00000000..8b0ca3b3 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/attachments/README.en-US.md @@ -0,0 +1,22 @@ +:: BASE_DOC :: + +## API + +### Attachments Props + +name | type | default | description | required +-- | -- | -- | -- | -- +style | Object | - | CSS(Cascading Style Sheets) | N +custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N +addable | Boolean | true | \- | N +image-viewer | Boolean | true | \- | N +items | Array | [] | Typescript: `FileItem[]` `interface FileItem { fileType: 'image'\|'video'\|'audio'\|'pdf'\|'doc'\|'ppt'\|'txt'; name: string; url: string; size: number; status?: 'success'\|'fail'\|'pending'\|'error'; progress?: number; errorMessage?: string; fileIcon?: string; width?: number; height?: number; mode?: 'aspectFit' \| 'aspectFill' \| 'widthFix' \| 'heightFix' \| 'scaleToFill'}`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/attachments/type.ts) | N +removable | Boolean | true | \- | N + +### Attachments Events + +name | params | description +-- | -- | -- +add | \- | \- +file-click | `(item: FileItem)` | \- +remove | `(item: FileItem, index: number)` | \- diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/attachments/README.md b/packages/products/tdesign-miniprogram/packages/pro-components/chat/attachments/README.md new file mode 100644 index 00000000..98f8e643 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/attachments/README.md @@ -0,0 +1,22 @@ +:: BASE_DOC :: + +## API + +### Attachments Props + +名称 | 类型 | 默认值 | 描述 | 必传 +-- | -- | -- | -- | -- +style | Object | - | 样式 | N +custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N +addable | Boolean | true | 【讨论中】是否显示添加按钮 | N +image-viewer | Boolean | true | 是否启用图片预览功能 | N +items | Array | [] | 【实验】附件列表。TS 类型:`FileItem[]` `interface FileItem { fileType: 'image'\|'video'\|'audio'\|'pdf'\|'doc'\|'ppt'\|'txt'; name: string; url: string; size: number; status?: 'success'\|'fail'\|'pending'\|'error'; progress?: number; errorMessage?: string; fileIcon?: string; width?: number; height?: number; mode?: 'aspectFit' \| 'aspectFill' \| 'widthFix' \| 'heightFix' \| 'scaleToFill'}`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/attachments/type.ts) | N +removable | Boolean | true | 是否显示删除按钮 | N + +### Attachments Events + +名称 | 参数 | 描述 +-- | -- | -- +add | \- | 点击添加按钮时触发 +file-click | `(item: FileItem)` | 点击文件时触发 +remove | `(item: FileItem, index: number)` | 点击删除按钮时触发 diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/attachments/props.ts b/packages/products/tdesign-miniprogram/packages/pro-components/chat/attachments/props.ts new file mode 100644 index 00000000..cf20edca --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/attachments/props.ts @@ -0,0 +1,31 @@ +/* eslint-disable */ + +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * */ + +import { TdAttachmentsProps } from './type'; +const props: TdAttachmentsProps = { + /** 【讨论中】是否显示添加按钮 */ + addable: { + type: Boolean, + value: true, + }, + /** 是否启用图片预览功能 */ + imageViewer: { + type: Boolean, + value: true, + }, + /** 【实验】附件列表 */ + items: { + type: Array, + value: [], + }, + /** 是否显示删除按钮 */ + removable: { + type: Boolean, + value: true, + }, +}; + +export default props; diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/attachments/type.ts b/packages/products/tdesign-miniprogram/packages/pro-components/chat/attachments/type.ts new file mode 100644 index 00000000..2cff0566 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/attachments/type.ts @@ -0,0 +1,54 @@ +/* eslint-disable */ + +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * */ + +export interface TdAttachmentsProps { + /** + * 【讨论中】是否显示添加按钮 + * @default true + */ + addable?: { + type: BooleanConstructor; + value?: boolean; + }; + /** + * 是否启用图片预览功能 + * @default true + */ + imageViewer?: { + type: BooleanConstructor; + value?: boolean; + }; + /** + * 【实验】附件列表 + * @default [] + */ + items?: { + type: ArrayConstructor; + value?: FileItem[]; + }; + /** + * 是否显示删除按钮 + * @default true + */ + removable?: { + type: BooleanConstructor; + value?: boolean; + }; +} + +export interface FileItem { + fileType: 'image' | 'video' | 'audio' | 'pdf' | 'doc' | 'ppt' | 'txt'; + name: string; + url: string; + size: number; + status?: 'success' | 'fail' | 'pending' | 'error'; + progress?: number; + errorMessage?: string; + fileIcon?: string; + width?: number; + height?: number; + mode?: 'aspectFit' | 'aspectFill' | 'widthFix' | 'heightFix' | 'scaleToFill'; +} diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-actionbar/README.en-US.md b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-actionbar/README.en-US.md new file mode 100644 index 00000000..53f6cbda --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-actionbar/README.en-US.md @@ -0,0 +1,23 @@ +:: BASE_DOC :: + +## API + +### ChatActionbar Props + +name | type | default | description | required +-- | -- | -- | -- | -- +style | Object | - | CSS(Cascading Style Sheets) | N +custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N +action-bar | Array | ['replay', 'copy', 'good', 'bad', 'share'] | Typescript: `Array<'replay'\|'copy'\|'good'\|'bad'\|'share'>` | N +chat-id | String | - | \- | N +comment | String | - | \- | N +content | String | - | \- | N +copy-mode | String | markdown | options: markdown/text | N +disabled | Boolean | false | \- | N +placement | String | start | options: start/end/space-around/space-between | N + +### ChatActionbar Events + +name | params | description +-- | -- | -- +actions | `(detail: {name: string, active: boolean})` | \- diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-actionbar/README.md b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-actionbar/README.md new file mode 100644 index 00000000..76805145 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-actionbar/README.md @@ -0,0 +1,23 @@ +:: BASE_DOC :: + +## API + +### ChatActionbar Props + +名称 | 类型 | 默认值 | 描述 | 必传 +-- | -- | -- | -- | -- +style | Object | - | 样式 | N +custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N +action-bar | Array | ['replay', 'copy', 'good', 'bad', 'share'] | 操作栏配置。TS 类型:`Array<'replay'\|'copy'\|'good'\|'bad'\|'share'>` | N +chat-id | String | - | 【实验】聊天消息的唯一标识 | N +comment | String | - | 评价内容 | N +content | String | - | 被复制的内容 | N +copy-mode | String | markdown | 【实验】复制内容的模式,可选 'markdown'(复制markdown原文)或 'text'(复制纯文本)。可选项:markdown/text | N +disabled | Boolean | false | 【讨论中】操作按钮是否可点击 | N +placement | String | start | 【实验】操作栏位置。可选项:start/end/space-around/space-between | N + +### ChatActionbar Events + +名称 | 参数 | 描述 +-- | -- | -- +actions | `(detail: {name: string, active: boolean})` | 点击点赞,点踩,复制,分享,重新生成按钮时触发发 diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-actionbar/props.ts b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-actionbar/props.ts new file mode 100644 index 00000000..f75f6219 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-actionbar/props.ts @@ -0,0 +1,46 @@ +/* eslint-disable */ + +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * */ + +import { TdChatActionbarProps } from './type'; +const props: TdChatActionbarProps = { + /** 操作栏配置 */ + actionBar: { + type: Array, + value: ['replay', 'copy', 'good', 'bad', 'share'], + }, + /** 【实验】聊天消息的唯一标识 */ + chatId: { + type: String, + value: '', + }, + /** 评价内容 */ + comment: { + type: String, + value: '', + }, + /** 被复制的内容 */ + content: { + type: String, + value: '', + }, + /** 【实验】复制内容的模式,可选 'markdown'(复制markdown原文)或 'text'(复制纯文本) */ + copyMode: { + type: String, + value: 'markdown', + }, + /** 【讨论中】操作按钮是否可点击 */ + disabled: { + type: Boolean, + value: false, + }, + /** 【实验】操作栏位置 */ + placement: { + type: String, + value: 'start', + }, +}; + +export default props; diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-actionbar/type.ts b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-actionbar/type.ts new file mode 100644 index 00000000..f600f0d5 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-actionbar/type.ts @@ -0,0 +1,64 @@ +/* eslint-disable */ + +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * */ + +export interface TdChatActionbarProps { + /** + * 操作栏配置 + * @default ['replay', 'copy', 'good', 'bad', 'share'] + */ + actionBar?: { + type: ArrayConstructor; + value?: Array<'replay' | 'copy' | 'good' | 'bad' | 'share'>; + }; + /** + * 【实验】聊天消息的唯一标识 + * @default '' + */ + chatId?: { + type: StringConstructor; + value?: string; + }; + /** + * 评价内容 + * @default '' + */ + comment?: { + type: StringConstructor; + value?: string; + }; + /** + * 被复制的内容 + * @default '' + */ + content?: { + type: StringConstructor; + value?: string; + }; + /** + * 【实验】复制内容的模式,可选 'markdown'(复制markdown原文)或 'text'(复制纯文本) + * @default markdown + */ + copyMode?: { + type: StringConstructor; + value?: 'markdown' | 'text'; + }; + /** + * 【讨论中】操作按钮是否可点击 + * @default false + */ + disabled?: { + type: BooleanConstructor; + value?: boolean; + }; + /** + * 【实验】操作栏位置 + * @default start + */ + placement?: { + type: StringConstructor; + value?: 'start' | 'end' | 'space-around' | 'space-between'; + }; +} diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-content/README.en-US.md b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-content/README.en-US.md new file mode 100644 index 00000000..51a1bbb2 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-content/README.en-US.md @@ -0,0 +1,14 @@ +:: BASE_DOC :: + +## API + +### ChatContent Props + +name | type | default | description | required +-- | -- | -- | -- | -- +style | Object | - | CSS(Cascading Style Sheets) | N +custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N +content | Object | - | required。Typescript: `TdChatContentType ` `interface TdChatContentType { type: 'text' \| 'markdown'; data: string; }`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/chat-content/type.ts) | Y +markdown-props | Object | - | Typescript: `ChatMarkdownProps`,[ChatMarkdown API Documents](./chat-markdown?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/chat-content/type.ts) | N +role | String | - | required。options: user/assistant/system | Y +status | String | - | options: error / '' | N diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-content/README.md b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-content/README.md new file mode 100644 index 00000000..044e420c --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-content/README.md @@ -0,0 +1,14 @@ +:: BASE_DOC :: + +## API + +### ChatContent Props + +名称 | 类型 | 默认值 | 描述 | 必传 +-- | -- | -- | -- | -- +style | Object | - | 样式 | N +custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N +content | Object | - | 必需。聊天内容对象。TS 类型:`TdChatContentType ` `interface TdChatContentType { type: 'text' \| 'markdown'; data: string; }`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/chat-content/type.ts) | Y +markdown-props | Object | - | marked 解析器的配置选项。TS 类型:`ChatMarkdownProps`,[ChatMarkdown API Documents](./chat-markdown?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/chat-content/type.ts) | N +role | String | - | 必需。消息角色,用于区分用户和助手的消息样式 。可选项:user/assistant/system | Y +status | String | - | 正文状态。可选项:error / '' | N diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-content/props.ts b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-content/props.ts new file mode 100644 index 00000000..b1eb3e58 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-content/props.ts @@ -0,0 +1,29 @@ +/* eslint-disable */ + +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * */ + +import { TdChatContentProps } from './type'; +const props: TdChatContentProps = { + /** 聊天内容对象 */ + content: { + type: Object, + required: true, + }, + /** marked 解析器的配置选项 */ + markdownProps: { + type: Object, + }, + /** 消息角色,用于区分用户和助手的消息样式 */ + role: { + type: String, + required: true, + }, + /** 正文状态 */ + status: { + type: String, + }, +}; + +export default props; diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-content/type.ts b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-content/type.ts new file mode 100644 index 00000000..3f80842f --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-content/type.ts @@ -0,0 +1,45 @@ +/* eslint-disable */ + +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * */ + +import { ChatMarkdownProps } from '../chat-markdown/index'; + +export interface TdChatContentProps { + /** + * 聊天内容对象 + */ + content: { + type: ObjectConstructor; + value?: TdChatContentType; + required?: boolean; + }; + /** + * marked 解析器的配置选项 + */ + markdownProps?: { + type: ObjectConstructor; + value?: ChatMarkdownProps; + }; + /** + * 消息角色,用于区分用户和助手的消息样式 + */ + role: { + type: StringConstructor; + value?: 'user' | 'assistant' | 'system'; + required?: boolean; + }; + /** + * 正文状态 + */ + status?: { + type: StringConstructor; + value?: 'error' | ''; + }; +} + +export interface TdChatContentType { + type: 'text' | 'markdown'; + data: string; +} diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-list/README.en-US.md b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-list/README.en-US.md new file mode 100644 index 00000000..45282f15 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-list/README.en-US.md @@ -0,0 +1,26 @@ +:: BASE_DOC :: + +## API + +### ChatList Props + +name | type | default | description | required +-- | -- | -- | -- | -- +style | Object | - | CSS(Cascading Style Sheets) | N +custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N +animation | String | skeleton | options: skeleton/moving/gradient | N +data | Array | - | Typescript: `Array` ` interface TdChatItemMeta { avatar?: string; name?:string; role?:string; datetime?: string; content?: string; reasoning?: string }`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/chat-list/type.ts) | N +layout | String | both | options: both/single | N +reverse | Boolean | true | \- | N + +### ChatList Events + +name | params | description +-- | -- | -- +scroll | `(detail: {scrollLeft, scrollTop, scrollHeight, scrollWidth, deltaX, deltaY})` | \- + +### ChatList Slots + +name | Description +-- | -- +actionbar | \- diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-list/README.md b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-list/README.md new file mode 100644 index 00000000..89dbc837 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-list/README.md @@ -0,0 +1,26 @@ +:: BASE_DOC :: + +## API + +### ChatList Props + +名称 | 类型 | 默认值 | 描述 | 必传 +-- | -- | -- | -- | -- +style | Object | - | 样式 | N +custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N +animation | String | skeleton | 动画效果,支持「渐变加载动画」,「闪烁加载动画」, 「骨架屏」三种。可选项:skeleton/moving/gradient | N +data | Array | - | 对话列表的数据。TS 类型:`Array` ` interface TdChatItemMeta { avatar?: string; name?:string; role?:string; datetime?: string; content?: string; reasoning?: string }`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/chat-list/type.ts) | N +layout | String | both | 对话布局形式,支持两侧对齐与左对齐。使用插槽自定义对话内容时不生效,得用`t-chat-message`的`placement`属性。。可选项:both/single | N +reverse | Boolean | true | 是否表现为倒序 | N + +### ChatList Events + +名称 | 参数 | 描述 +-- | -- | -- +scroll | `(detail: {scrollLeft, scrollTop, scrollHeight, scrollWidth, deltaX, deltaY})` | 滚动事件的回调 + +### ChatList Slots + +名称 | 描述 +-- | -- +actionbar | 自定义操作按钮的插槽 diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-list/props.ts b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-list/props.ts new file mode 100644 index 00000000..c4441f40 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-list/props.ts @@ -0,0 +1,30 @@ +/* eslint-disable */ + +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * */ + +import { TdChatListProps } from './type'; +const props: TdChatListProps = { + /** 动画效果,支持「渐变加载动画」,「闪烁加载动画」, 「骨架屏」三种 */ + animation: { + type: String, + value: 'skeleton', + }, + /** 对话列表的数据 */ + data: { + type: Array, + }, + /** 对话布局形式,支持两侧对齐与左对齐。使用插槽自定义对话内容时不生效,得用`t-chat-message`的`placement`属性。 */ + layout: { + type: String, + value: 'both', + }, + /** 是否表现为倒序 */ + reverse: { + type: Boolean, + value: true, + }, +}; + +export default props; diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-list/type.ts b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-list/type.ts new file mode 100644 index 00000000..6fce1e44 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-list/type.ts @@ -0,0 +1,48 @@ +/* eslint-disable */ + +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * */ + +export interface TdChatListProps { + /** + * 动画效果,支持「渐变加载动画」,「闪烁加载动画」, 「骨架屏」三种 + * @default skeleton + */ + animation?: { + type: StringConstructor; + value?: 'skeleton' | 'moving' | 'gradient'; + }; + /** + * 对话列表的数据 + */ + data?: { + type: ArrayConstructor; + value?: Array; + }; + /** + * 对话布局形式,支持两侧对齐与左对齐。使用插槽自定义对话内容时不生效,得用`t-chat-message`的`placement`属性。 + * @default both + */ + layout?: { + type: StringConstructor; + value?: 'both' | 'single'; + }; + /** + * 是否表现为倒序 + * @default true + */ + reverse?: { + type: BooleanConstructor; + value?: boolean; + }; +} + +export interface TdChatItemMeta { + avatar?: string; + name?: string; + role?: string; + datetime?: string; + content?: string; + reasoning?: string; +} diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-loading/README.en-US.md b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-loading/README.en-US.md new file mode 100644 index 00000000..6312cd2b --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-loading/README.en-US.md @@ -0,0 +1,12 @@ +:: BASE_DOC :: + +## API + +### ChatLoading Props + +name | type | default | description | required +-- | -- | -- | -- | -- +style | Object | - | CSS(Cascading Style Sheets) | N +custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N +animation | String | moving | options: skeleton/moving/gradient/dot | N +text | String | - | text of chat loading | N diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-loading/README.md b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-loading/README.md new file mode 100644 index 00000000..eacef09b --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-loading/README.md @@ -0,0 +1,12 @@ +:: BASE_DOC :: + +## API + +### ChatLoading Props + +名称 | 类型 | 默认值 | 描述 | 必传 +-- | -- | -- | -- | -- +style | Object | - | 样式 | N +custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N +animation | String | moving | 加载的状态形式。可选项:skeleton/moving/gradient/dot | N +text | String | - | 加载过程展示的文字内容 | N diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-loading/props.ts b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-loading/props.ts new file mode 100644 index 00000000..4e1da602 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-loading/props.ts @@ -0,0 +1,21 @@ +/* eslint-disable */ + +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * */ + +import { TdChatLoadingProps } from './type'; +const props: TdChatLoadingProps = { + /** 加载的状态形式 */ + animation: { + type: String, + value: 'moving', + }, + /** 加载过程展示的文字内容 */ + text: { + type: String, + value: '', + }, +}; + +export default props; diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-loading/type.ts b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-loading/type.ts new file mode 100644 index 00000000..cb2264b9 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-loading/type.ts @@ -0,0 +1,24 @@ +/* eslint-disable */ + +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * */ + +export interface TdChatLoadingProps { + /** + * 加载的状态形式 + * @default moving + */ + animation?: { + type: StringConstructor; + value?: 'skeleton' | 'moving' | 'gradient' | 'dot'; + }; + /** + * 加载过程展示的文字内容 + * @default '' + */ + text?: { + type: StringConstructor; + value?: string; + }; +} diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-markdown/README.en-US.md b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-markdown/README.en-US.md new file mode 100644 index 00000000..00bc636e --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-markdown/README.en-US.md @@ -0,0 +1,18 @@ +:: BASE_DOC :: + +## API + +### ChatMarkdown Props + +name | type | default | description | required +-- | -- | -- | -- | -- +style | Object | - | CSS(Cascading Style Sheets) | N +custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N +content | String | - | required | Y +options | Object | { gfm: true, pedantic: false, breaks: true } | Typescript: `TdChatContentMDOptions ` `interface TdChatContentMDOptions {gfm?: boolean; pedantic?: boolean; smartLists?: boolean; breaks?: boolean}`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/chat-markdown/type.ts) | N + +### ChatMarkdown Events + +name | params | description +-- | -- | -- +click | `(detail: {detail:{event, node}, currentTarget, target})` | \- diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-markdown/README.md b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-markdown/README.md new file mode 100644 index 00000000..9e0b94e9 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-markdown/README.md @@ -0,0 +1,18 @@ +:: BASE_DOC :: + +## API + +### ChatMarkdown Props + +名称 | 类型 | 默认值 | 描述 | 必传 +-- | -- | -- | -- | -- +style | Object | - | 样式 | N +custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N +content | String | - | 必需。markdown 内容文本 | Y +options | Object | { gfm: true, pedantic: false, breaks: true } | Markdown 解析器基础配置。TS 类型:`TdChatContentMDOptions ` `interface TdChatContentMDOptions {gfm?: boolean; pedantic?: boolean; smartLists?: boolean; breaks?: boolean}`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/chat-markdown/type.ts) | N + +### ChatMarkdown Events + +名称 | 参数 | 描述 +-- | -- | -- +click | `(detail: {detail:{event, node}, currentTarget, target})` | 点击链接时触发 diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-markdown/props.ts b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-markdown/props.ts new file mode 100644 index 00000000..5bcc8967 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-markdown/props.ts @@ -0,0 +1,22 @@ +/* eslint-disable */ + +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * */ + +import { TdChatMarkdownProps } from './type'; +const props: TdChatMarkdownProps = { + /** markdown 内容文本 */ + content: { + type: String, + value: '', + required: true, + }, + /** Markdown 解析器基础配置 */ + options: { + type: Object, + value: { gfm: true, pedantic: false, breaks: true }, + }, +}; + +export default props; diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-markdown/type.ts b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-markdown/type.ts new file mode 100644 index 00000000..adf560d5 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-markdown/type.ts @@ -0,0 +1,32 @@ +/* eslint-disable */ + +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * */ + +export interface TdChatMarkdownProps { + /** + * markdown 内容文本 + * @default '' + */ + content: { + type: StringConstructor; + value?: string; + required?: boolean; + }; + /** + * Markdown 解析器基础配置 + * @default { gfm: true, pedantic: false, breaks: true } + */ + options?: { + type: ObjectConstructor; + value?: TdChatContentMDOptions; + }; +} + +export interface TdChatContentMDOptions { + gfm?: boolean; + pedantic?: boolean; + smartLists?: boolean; + breaks?: boolean; +} diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-message/README.en-US.md b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-message/README.en-US.md new file mode 100644 index 00000000..e2878cca --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-message/README.en-US.md @@ -0,0 +1,34 @@ +:: BASE_DOC :: + +## API + +### ChatMessage Props + +name | type | default | description | required +-- | -- | -- | -- | -- +style | Object | - | CSS(Cascading Style Sheets) | N +custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N +allow-content-segment-custom | Boolean | false | \- | N +animation | String | skeleton | options: skeleton/moving/gradient/dots | N +avatar | String | - | \- | N +chat-content-props | Object | - | Typescript: `ChatContentProps`,[ChatContent API Documents](./chat-content?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/chat-message/type.ts) | N +chat-id | String | - | \- | N +content | Array | - | Typescript: `ChatMessageContent[] ` `type ChatMessageContent = TextContent \| MarkdownContent \| ThinkingContent \| AttachmentContent` ` type AttachmentContent = ChatBaseContent<'attachment', FileItem[]>` `type ThinkingContent = ChatBaseContent<'thinking', ThinkingContentData>` `type MarkdownContent = ChatBaseContent<'markdown', string>` `type TextContent = ChatBaseContent<'text', string>` `interface ThinkingContentData {title?: string; text: string}` `interface ChatBaseContent {type: T; data: TData}` `type ChatMessageStatus = 'pending' \| 'streaming' \| 'complete' \| 'stop' \| 'error'` `type ChatContentType = \| 'text' \| 'markdown' \| 'thinking' \| 'attachment'`,[Attachments API Documents](./attachments?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/chat-message/type.ts) | N +datetime | String | - | \- | N +name | String | - | \- | N +placement | String | - | options: left/right | N +role | String | user | options: user/assistant/system | N +status | String | - | options: pending/streaming/complete/stop/error | N +variant | String | base | options: base/outline/text | N + +### ChatMessage Events + +name | params | description +-- | -- | -- +longpress | `(detail: { id: string })` | \- + +### ChatMessage Slots + +name | \- +avatar | \- +datetime | \- diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-message/README.md b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-message/README.md new file mode 100644 index 00000000..6037d706 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-message/README.md @@ -0,0 +1,36 @@ +:: BASE_DOC :: + +## API + +### ChatMessage Props + +名称 | 类型 | 默认值 | 描述 | 必传 +-- | -- | -- | -- | -- +style | Object | - | 样式 | N +custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N +allow-content-segment-custom | Boolean | false | 【实验】 是否允许自定义局部消息内容,其他消息内容实用默认样式 | N +animation | String | skeleton | 动画效果。可选项:skeleton/moving/gradient/dots | N +avatar | String | - | 自定义的头像配置 | N +chat-content-props | Object | - | 聊天内容组件的属性。TS 类型:`ChatContentProps`,[ChatContent API Documents](./chat-content?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/chat-message/type.ts) | N +chat-id | String | - | 聊天消息的唯一标识 | N +content | Array | - | 消息内容,数组中的每一项为一个消息内容对象。TS 类型:`ChatMessageContent[] ` `type ChatMessageContent = TextContent \| MarkdownContent \| ThinkingContent \| AttachmentContent` ` type AttachmentContent = ChatBaseContent<'attachment', FileItem[]>` `type ThinkingContent = ChatBaseContent<'thinking', ThinkingContentData>` `type MarkdownContent = ChatBaseContent<'markdown', string>` `type TextContent = ChatBaseContent<'text', string>` `interface ThinkingContentData {title?: string; text: string}` `interface ChatBaseContent {type: T; data: TData}` `type ChatMessageStatus = 'pending' \| 'streaming' \| 'complete' \| 'stop' \| 'error'` `type ChatContentType = \| 'text' \| 'markdown' \| 'thinking' \| 'attachment'`,[Attachments API Documents](./attachments?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/chat-message/type.ts) | N +datetime | String | - | 对话单元的时间配置 | N +name | String | - | 自定义的昵称 | N +placement | String | - | 消息显示位置。可选项:left/right | N +role | String | user | 消息角色。可选项:user/assistant/system | N +status | String | - | 消息状态。可选项:pending/streaming/complete/stop/error | N +variant | String | base | 气泡框样式,支持基础、线框、文字三种类型。可选项:base/outline/text | N + +### ChatMessage Events + +名称 | 参数 | 描述 +-- | -- | -- +longpress | `(detail: { id: string })` | \- + +### ChatMessage Slots + +名称 | 描述 +-- | -- +avatar | 自定义 `avatar` 显示内容 +datetime | 自定义 `datetime` 显示内容 +name | 自定义 `name` 显示内容 diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-message/props.ts b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-message/props.ts new file mode 100644 index 00000000..e924ce7a --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-message/props.ts @@ -0,0 +1,64 @@ +/* eslint-disable */ + +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * */ + +import { TdChatMessageProps } from './type'; +const props: TdChatMessageProps = { + /** 【实验】 是否允许自定义局部消息内容,其他消息内容实用默认样式 */ + allowContentSegmentCustom: { + type: Boolean, + value: false, + }, + /** 动画效果 */ + animation: { + type: String, + value: 'skeleton', + }, + /** 自定义的头像配置 */ + avatar: { + type: String, + }, + /** 聊天内容组件的属性 */ + chatContentProps: { + type: Object, + }, + /** 聊天消息的唯一标识 */ + chatId: { + type: String, + value: '', + }, + /** 消息内容,数组中的每一项为一个消息内容对象 */ + content: { + type: Array, + }, + /** 对话单元的时间配置 */ + datetime: { + type: String, + }, + /** 自定义的昵称 */ + name: { + type: String, + }, + /** 消息显示位置 */ + placement: { + type: String, + }, + /** 消息角色 */ + role: { + type: String, + value: 'user', + }, + /** 消息状态 */ + status: { + type: String, + }, + /** 气泡框样式,支持基础、线框、文字三种类型 */ + variant: { + type: String, + value: 'base', + }, +}; + +export default props; diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-message/type.ts b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-message/type.ts new file mode 100644 index 00000000..dc6bec43 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-message/type.ts @@ -0,0 +1,124 @@ +/* eslint-disable */ + +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * */ + +import { ChatContentProps } from '../chat-content/index'; +import { FileItem } from '../attachments/index'; + +export interface TdChatMessageProps { + /** + * 【实验】 是否允许自定义局部消息内容,其他消息内容实用默认样式 + * @default false + */ + allowContentSegmentCustom?: { + type: BooleanConstructor; + value?: boolean; + }; + /** + * 动画效果 + * @default skeleton + */ + animation?: { + type: StringConstructor; + value?: 'skeleton' | 'moving' | 'gradient' | 'dots'; + }; + /** + * 自定义的头像配置 + */ + avatar?: { + type: StringConstructor; + value?: string; + }; + /** + * 聊天内容组件的属性 + */ + chatContentProps?: { + type: ObjectConstructor; + value?: ChatContentProps; + }; + /** + * 聊天消息的唯一标识 + * @default '' + */ + chatId?: { + type: StringConstructor; + value?: string; + }; + /** + * 消息内容,数组中的每一项为一个消息内容对象 + */ + content?: { + type: ArrayConstructor; + value?: ChatMessageContent[]; + }; + /** + * 对话单元的时间配置 + */ + datetime?: { + type: StringConstructor; + value?: string; + }; + /** + * 自定义的昵称 + */ + name?: { + type: StringConstructor; + value?: string; + }; + /** + * 消息显示位置 + */ + placement?: { + type: StringConstructor; + value?: 'left' | 'right'; + }; + /** + * 消息角色 + * @default user + */ + role?: { + type: StringConstructor; + value?: 'user' | 'assistant' | 'system'; + }; + /** + * 消息状态 + */ + status?: { + type: StringConstructor; + value?: 'pending' | 'streaming' | 'complete' | 'stop' | 'error'; + }; + /** + * 气泡框样式,支持基础、线框、文字三种类型 + * @default base + */ + variant?: { + type: StringConstructor; + value?: 'base' | 'outline' | 'text'; + }; +} + +export type ChatMessageContent = TextContent | MarkdownContent | ThinkingContent | AttachmentContent; + +export type AttachmentContent = ChatBaseContent<'attachment', FileItem[]>; + +export type ThinkingContent = ChatBaseContent<'thinking', ThinkingContentData>; + +export type MarkdownContent = ChatBaseContent<'markdown', string>; + +export type TextContent = ChatBaseContent<'text', string>; + +export interface ThinkingContentData { + title?: string; + text: string; +} + +export interface ChatBaseContent { + type: T; + data: TData; +} + +export type ChatMessageStatus = 'pending' | 'streaming' | 'complete' | 'stop' | 'error'; + +export type ChatContentType = 'text' | 'markdown' | 'thinking' | 'attachment'; diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-sender/README.en-US.md b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-sender/README.en-US.md new file mode 100644 index 00000000..d1e3847c --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-sender/README.en-US.md @@ -0,0 +1,39 @@ +:: BASE_DOC :: + +## API + +### ChatSender Props + +name | type | default | description | required +-- | -- | -- | -- | -- +style | Object | - | CSS(Cascading Style Sheets) | N +custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N +adjust-position | Boolean | false | \- | N +attachments-props | Object | - | Typescript: `AttachmentsProps`,[Attachments API Documents](./attachments?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/chat-sender/type.ts) | N +auto-rise-with-keyboard | Boolean | false | \- | N +disabled | Boolean | false | \- | N +file-list | Array | [] | Typescript: `FileItem[]` | N +loading | Boolean | false | \- | N +placeholder | String | 请输入消息... | \- | N +render-presets | Array | [{name: 'upload', presets: ['uploadCamera', 'uploadImage', 'uploadAttachment'], status: ''},{ name: 'send', type: 'icon'}] | Typescript: `ChatActionButtons` `type ChatActionButtons = Array` `type ChatActionButton = UploadButton \| SendButton` `interface UploadButton { name: 'upload'; presets: string[]; status?: string; }` `interface SendButton { name: 'send'; type: 'icon' \| 'text';}`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/chat-sender/type.ts) | N +textarea-props | Boolean / Object | { autosize: { maxHeight: 264, minHeight: 48 } } | \- | N +value | String | - | input value | N +default-value | String | undefined | input value。uncontrolled property | N +visible | Boolean | false | \- | N + +### ChatSender Events + +name | params | description +-- | -- | -- +blur | `(value:string, context: { e: FocusEvent })` | \- +change | `(value:string, context: { e: InputEvent \| MouseEvent \| KeyboardEvent })` | \- +file-add | \- | \- +file-change | `(file:FileItem)` | \- +file-click | `(file:FileItem)` | \- +file-delete | `(file:FileItem)` | \- +file-select | `(detail: {files: FileList, name: UploadActionType})` | \- +focus | `(value:string, context: { e: FocusEvent }) ` | \- +keyboardheightchange | `(detail: {height: number, duration: number})` | \- +send | `(value:string, context: {\| KeyboardEvent })` | \- +stop | `(value:string)` | \- +upload-click | \- | \- diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-sender/README.md b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-sender/README.md new file mode 100644 index 00000000..4890cc60 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-sender/README.md @@ -0,0 +1,39 @@ +:: BASE_DOC :: + +## API + +### ChatSender Props + +名称 | 类型 | 默认值 | 描述 | 必传 +-- | -- | -- | -- | -- +style | Object | - | 样式 | N +custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N +adjust-position | Boolean | false | 默认键盘弹起不会把页面顶起来 | N +attachments-props | Object | - | 附件列表属性。TS 类型:`AttachmentsProps`,[Attachments API Documents](./attachments?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/chat-sender/type.ts) | N +auto-rise-with-keyboard | Boolean | false | 键盘弹起时自动顶起来输入框 | N +disabled | Boolean | false | 是否禁用输入框 | N +file-list | Array | [] | 附件文件列表。TS 类型:`FileItem[]` | N +loading | Boolean | false | 发送按钮是否处于加载状态 | N +placeholder | String | 请输入消息... | 输入框默认文案 | N +render-presets | Array | [{name: 'upload', presets: ['uploadCamera', 'uploadImage', 'uploadAttachment'], status: ''},{ name: 'send', type: 'icon'}] | 预设发送区渲染配置,用于灵活配置发送区的上传入口和发送按钮,支持自定义类型、顺序、样式。TS 类型:`ChatActionButtons` `type ChatActionButtons = Array` `type ChatActionButton = UploadButton \| SendButton` `interface UploadButton { name: 'upload'; presets: string[]; status?: string; }` `interface SendButton { name: 'send'; type: 'icon' \| 'text';}`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/chat-sender/type.ts) | N +textarea-props | Boolean / Object | { autosize: { maxHeight: 264, minHeight: 48 } } | 透传给 Textarea 组件的属性,autosize数值单位为 rpx | N +value | String | - | 输入框的值 | N +default-value | String | undefined | 输入框的值。非受控属性 | N +visible | Boolean | false | 上传面板是否可见 | N + +### ChatSender Events + +名称 | 参数 | 描述 +-- | -- | -- +blur | `(value:string, context: { e: FocusEvent })` | 输入框聚焦时触发 +change | `(value:string, context: { e: InputEvent \| MouseEvent \| KeyboardEvent })` | 输入框值发生变化时触发 +file-add | \- | 添加附件时触发 +file-change | `(file:FileItem)` | 附件列表变化时触发 +file-click | `(file:FileItem)` | 点击附件时触发 +file-delete | `(file:FileItem)` | 删除附件时触发 +file-select | `(detail: {files: FileList, name: UploadActionType})` | 选择文件(图片/微信文件)时触发 +focus | `(value:string, context: { e: FocusEvent }) ` | 输入框聚焦时触发 +keyboardheightchange | `(detail: {height: number, duration: number})` | 选择文件(图片/微信文件)时触发 +send | `(value:string, context: {\| KeyboardEvent })` | 点击消息发送的回调方法 +stop | `(value:string)` | 点击消息终止的回调方法 +upload-click | \- | 【实验】点击上传按钮时触发 diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-sender/props.ts b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-sender/props.ts new file mode 100644 index 00000000..f7da9991 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-sender/props.ts @@ -0,0 +1,65 @@ +/* eslint-disable */ + +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * */ + +import { TdChatSenderProps } from './type'; +const props: TdChatSenderProps = { + /** 默认键盘弹起不会把页面顶起来 */ + adjustPosition: { + type: Boolean, + value: false, + }, + /** 附件列表属性 */ + attachmentsProps: { + type: Object, + }, + /** 键盘弹起时自动顶起来输入框 */ + autoRiseWithKeyboard: { + type: Boolean, + value: false, + }, + /** 是否禁用输入框 */ + disabled: { + type: Boolean, + value: false, + }, + /** 附件文件列表 */ + fileList: { + type: Array, + value: [], + }, + /** 发送按钮是否处于加载状态 */ + loading: { + type: Boolean, + value: false, + }, + /** 输入框默认文案 */ + placeholder: { + type: String, + value: '请输入消息...', + }, + /** 预设发送区渲染配置,用于灵活配置发送区的上传入口和发送按钮,支持自定义类型、顺序、样式 */ + renderPresets: { + type: Array, + value: [{name: 'upload', presets: ['uploadCamera', 'uploadImage', 'uploadAttachment'], status: ''},{ name: 'send', type: 'icon'}], + }, + /** 透传给 Textarea 组件的属性,autosize数值单位为 rpx */ + textareaProps: { + type: null, + value: { autosize: { maxHeight: 264, minHeight: 48 } }, + }, + /** 输入框的值 */ + value: { + type: String, + value: '', + }, + /** 上传面板是否可见 */ + visible: { + type: Boolean, + value: false, + }, +}; + +export default props; diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-sender/type.ts b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-sender/type.ts new file mode 100644 index 00000000..2f5dc038 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-sender/type.ts @@ -0,0 +1,112 @@ +/* eslint-disable */ + +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * */ + +import { AttachmentsProps, FileItem } from '../attachments/index'; + +export interface TdChatSenderProps { + /** + * 默认键盘弹起不会把页面顶起来 + * @default false + */ + adjustPosition?: { + type: BooleanConstructor; + value?: boolean; + }; + /** + * 附件列表属性 + */ + attachmentsProps?: { + type: ObjectConstructor; + value?: AttachmentsProps; + }; + /** + * 键盘弹起时自动顶起来输入框 + * @default false + */ + autoRiseWithKeyboard?: { + type: BooleanConstructor; + value?: boolean; + }; + /** + * 是否禁用输入框 + * @default false + */ + disabled?: { + type: BooleanConstructor; + value?: boolean; + }; + /** + * 附件文件列表 + * @default [] + */ + fileList?: { + type: ArrayConstructor; + value?: FileItem[]; + }; + /** + * 发送按钮是否处于加载状态 + * @default false + */ + loading?: { + type: BooleanConstructor; + value?: boolean; + }; + /** + * 输入框默认文案 + * @default 请输入消息... + */ + placeholder?: { + type: StringConstructor; + value?: string; + }; + /** + * 预设发送区渲染配置,用于灵活配置发送区的上传入口和发送按钮,支持自定义类型、顺序、样式 + * @default [{name: 'upload', presets: ['uploadCamera', 'uploadImage', 'uploadAttachment'], status: ''},{ name: 'send', type: 'icon'}] + */ + renderPresets?: { + type: ArrayConstructor; + value?: ChatActionButtons; + }; + /** + * 透传给 Textarea 组件的属性,autosize数值单位为 rpx + * @default { autosize: { maxHeight: 264, minHeight: 48 } } + */ + textareaProps?: { + type: null; + value?: boolean | object; + }; + /** + * 输入框的值 + * @default '' + */ + value?: { + type: StringConstructor; + value?: string; + }; + /** + * 上传面板是否可见 + * @default false + */ + visible?: { + type: BooleanConstructor; + value?: boolean; + }; +} + +export type ChatActionButtons = Array; + +export type ChatActionButton = UploadButton | SendButton; + +export interface UploadButton { + name: 'upload'; + presets: string[]; + status?: string; +} + +export interface SendButton { + name: 'send'; + type: 'icon' | 'text'; +} diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-thinking/README.en-US.md b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-thinking/README.en-US.md new file mode 100644 index 00000000..3d56de1f --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-thinking/README.en-US.md @@ -0,0 +1,22 @@ +:: BASE_DOC :: + +## API + +### ChatThinking Props + +name | type | default | description | required +-- | -- | -- | -- | -- +style | Object | - | CSS(Cascading Style Sheets) | N +custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N +animation | String | moving | options: circle/moving/gradient | N +collapsed | Boolean | false | \- | N +content | Object | - | required。Typescript: `{ text?: string; title?: string }` | Y +layout | String | block | options: block/border | N +max-height | Number | - | \- | N +status | String | pending | required。options: complete/stop/error/pending | Y + +### ChatThinking Events + +name | params | description +-- | -- | -- +collapsed-change | `(value: Boolean)` | \- diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-thinking/README.md b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-thinking/README.md new file mode 100644 index 00000000..94f7b166 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-thinking/README.md @@ -0,0 +1,22 @@ +:: BASE_DOC :: + +## API + +### ChatThinking Props + +名称 | 类型 | 默认值 | 描述 | 必传 +-- | -- | -- | -- | -- +style | Object | - | 样式 | N +custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N +animation | String | moving | 内容区域最大高度,超出会自动滚动。可选项:circle/moving/gradient | N +collapsed | Boolean | false | 是否折叠 | N +content | Object | - | 必需。思考内容对象。TS 类型:`{ text?: string; title?: string }` | Y +layout | String | block | 布局方式。可选项:block/border | N +max-height | Number | - | 内容区域最大高度,超出会自动滚动 | N +status | String | pending | 必需。思考状态。可选项:complete/stop/error/pending | Y + +### ChatThinking Events + +名称 | 参数 | 描述 +-- | -- | -- +collapsed-change | `(value: Boolean)` | 切换折叠面板时触发 diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-thinking/props.ts b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-thinking/props.ts new file mode 100644 index 00000000..1a89c66c --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-thinking/props.ts @@ -0,0 +1,41 @@ +/* eslint-disable */ + +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * */ + +import { TdChatThinkingProps } from './type'; +const props: TdChatThinkingProps = { + /** 内容区域最大高度,超出会自动滚动 */ + animation: { + type: String, + value: 'moving', + }, + /** 是否折叠 */ + collapsed: { + type: Boolean, + value: false, + }, + /** 思考内容对象 */ + content: { + type: Object, + required: true, + }, + /** 布局方式 */ + layout: { + type: String, + value: 'block', + }, + /** 内容区域最大高度,超出会自动滚动 */ + maxHeight: { + type: Number, + }, + /** 思考状态 */ + status: { + type: String, + value: 'pending', + required: true, + }, +}; + +export default props; diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-thinking/type.ts b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-thinking/type.ts new file mode 100644 index 00000000..2cc52924 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-thinking/type.ts @@ -0,0 +1,56 @@ +/* eslint-disable */ + +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * */ + +export interface TdChatThinkingProps { + /** + * 内容区域最大高度,超出会自动滚动 + * @default moving + */ + animation?: { + type: StringConstructor; + value?: 'circle' | 'moving' | 'gradient'; + }; + /** + * 是否折叠 + * @default false + */ + collapsed?: { + type: BooleanConstructor; + value?: boolean; + }; + /** + * 思考内容对象 + */ + content: { + type: ObjectConstructor; + value?: { text?: string; title?: string }; + required?: boolean; + }; + /** + * 布局方式 + * @default block + */ + layout?: { + type: StringConstructor; + value?: 'block' | 'border'; + }; + /** + * 内容区域最大高度,超出会自动滚动 + */ + maxHeight?: { + type: NumberConstructor; + value?: number; + }; + /** + * 思考状态 + * @default pending + */ + status: { + type: StringConstructor; + value?: 'complete' | 'stop' | 'error' | 'pending'; + required?: boolean; + }; +} diff --git a/packages/scripts/api.json b/packages/scripts/api.json index b8ad803f..ccf5aecf 100644 --- a/packages/scripts/api.json +++ b/packages/scripts/api.json @@ -5032,6 +5032,265 @@ "String" ] }, + { + "id": 1762490072, + "platform_framework": [ + "64" + ], + "component": "Attachments", + "field_category": 1, + "field_name": "addable", + "field_type": [ + "4" + ], + "field_default_value": "true", + "field_enum": "", + "field_desc_zh": "【讨论中】是否显示添加按钮", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-07 04:34:32", + "update_time": "2025-11-07 04:34:32", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "Boolean" + ] + }, + { + "id": 1762421222, + "platform_framework": [ + "64" + ], + "component": "Attachments", + "field_category": 1, + "field_name": "imageViewer", + "field_type": [ + "4" + ], + "field_default_value": "true", + "field_enum": "", + "field_desc_zh": "是否启用图片预览功能", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 09:27:02", + "update_time": "2025-11-06 09:27:02", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "Boolean" + ] + }, + { + "id": 1762421184, + "platform_framework": [ + "64" + ], + "component": "Attachments", + "field_category": 1, + "field_name": "items", + "field_type": [ + "16" + ], + "field_default_value": "[]", + "field_enum": "", + "field_desc_zh": "【实验】附件列表", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 09:26:24", + "update_time": "2025-11-06 09:26:24", + "event_output": null, + "custom_field_type": "FileItem[]【interface FileItem { fileType: 'image'|'video'|'audio'|'pdf'|'doc'|'ppt'|'txt'; name: string; url: string; size: number; status?: 'success'|'fail'|'pending'|'error'; progress?: number; errorMessage?: string; fileIcon?: string; width?: number; height?: number; mode?: 'aspectFit' | 'aspectFill' | 'widthFix' | 'heightFix' | 'scaleToFill'}】", + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "Array" + ] + }, + { + "id": 1762421201, + "platform_framework": [ + "64" + ], + "component": "Attachments", + "field_category": 1, + "field_name": "removable", + "field_type": [ + "4" + ], + "field_default_value": "true", + "field_enum": "", + "field_desc_zh": "是否显示删除按钮", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 09:26:41", + "update_time": "2025-11-06 09:26:41", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "Boolean" + ] + }, + { + "id": 1762421370, + "platform_framework": [ + "64" + ], + "component": "Attachments", + "field_category": 2, + "field_name": "add", + "field_type": [ + "1" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "点击添加按钮时触发", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 09:29:30", + "update_time": "2025-11-06 09:29:30", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Events", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "String" + ] + }, + { + "id": 1762421334, + "platform_framework": [ + "64" + ], + "component": "Attachments", + "field_category": 2, + "field_name": "fileClick", + "field_type": [ + "1" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "点击文件时触发", + "field_desc_en": null, + "field_required": 0, + "event_input": "(item: FileItem)", + "create_time": "2025-11-06 09:28:54", + "update_time": "2025-11-06 09:28:54", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Events", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "String" + ] + }, + { + "id": 1762421355, + "platform_framework": [ + "64" + ], + "component": "Attachments", + "field_category": 2, + "field_name": "remove", + "field_type": [ + "1" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "点击删除按钮时触发", + "field_desc_en": null, + "field_required": 0, + "event_input": "(item: FileItem, index: number)", + "create_time": "2025-11-06 09:29:15", + "update_time": "2025-11-06 09:29:15", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Events", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "String" + ] + }, { "id": 3152, "platform_framework": [ @@ -25751,27 +26010,26 @@ "field_type_text": [] }, { - "id": 1742883575, + "id": 1762424934, "platform_framework": [ - "1", - "2" + "64" ], - "component": "ChatContent", + "component": "ChatActionbar", "field_category": 1, - "field_name": "content", + "field_name": "actionBar", "field_type": [ - "1" + "16" ], - "field_default_value": "", + "field_default_value": "['replay', 'copy', 'good', 'bad', 'share']", "field_enum": "", - "field_desc_zh": "聊天内容,支持 markdown 格式", + "field_desc_zh": "操作栏配置", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2025-03-25 06:19:35", - "update_time": "2025-03-25 06:19:35", + "create_time": "2025-11-06 10:28:54", + "update_time": "2025-11-06 10:28:54", "event_output": null, - "custom_field_type": null, + "custom_field_type": "Array<'replay'|'copy'|'good'|'bad'|'share'>", "syntactic_sugar": null, "readonly": 1, "html_attribute": 0, @@ -25782,35 +26040,33 @@ "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ - "Vue(PC)", - "React(PC)" + "Miniprogram" ], "field_type_text": [ - "String" + "Array" ] }, { - "id": 1742883540, + "id": 1762424897, "platform_framework": [ - "1", - "2" + "64" ], - "component": "ChatContent", + "component": "ChatActionbar", "field_category": 1, - "field_name": "role", + "field_name": "chatId", "field_type": [ "1" ], "field_default_value": "", - "field_enum": "user/assistant/error/model-change/system", - "field_desc_zh": "角色,不同选项配置不同的样式,支持类型包括用户、助手、错误、模型切换、系统消息", + "field_enum": "", + "field_desc_zh": "【实验】聊天消息的唯一标识", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2025-03-25 06:19:00", - "update_time": "2025-03-25 06:19:00", + "create_time": "2025-11-06 10:28:17", + "update_time": "2025-11-06 10:28:17", "event_output": null, - "custom_field_type": null, + "custom_field_type": "", "syntactic_sugar": null, "readonly": 1, "html_attribute": 0, @@ -25821,33 +26077,31 @@ "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ - "Vue(PC)", - "React(PC)" + "Miniprogram" ], "field_type_text": [ "String" ] }, { - "id": 1742884968, + "id": 1762424950, "platform_framework": [ - "1", - "2" + "64" ], - "component": "ChatInput", + "component": "ChatActionbar", "field_category": 1, - "field_name": "autofocus", + "field_name": "comment", "field_type": [ - "4" + "1" ], - "field_default_value": "false", + "field_default_value": "", "field_enum": "", - "field_desc_zh": "输入框是否自动聚焦", + "field_desc_zh": "评价内容", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2025-03-25 06:42:48", - "update_time": "2025-03-25 06:42:48", + "create_time": "2025-11-06 10:29:10", + "update_time": "2025-11-06 10:29:10", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -25860,36 +26114,33 @@ "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ - "Vue(PC)", - "React(PC)" + "Miniprogram" ], "field_type_text": [ - "Boolean" + "String" ] }, { - "id": 1742885300, + "id": 1762425190, "platform_framework": [ - "1", - "2" + "64" ], - "component": "ChatInput", + "component": "ChatActionbar", "field_category": 1, - "field_name": "autosize", + "field_name": "content", "field_type": [ - "4", - "8" + "1" ], - "field_default_value": "{ minRows: 1, maxRows: 5 }", + "field_default_value": "", "field_enum": "", - "field_desc_zh": "高度自动撑开。 autosize = true 表示组件高度自动撑开,同时,依旧允许手动拖高度。如果设置了 autosize.maxRows 或者 autosize.minRows 则不允许手动调整高度", + "field_desc_zh": "被复制的内容", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2025-03-25 06:48:20", - "update_time": "2025-03-25 06:48:20", + "create_time": "2025-11-06 10:33:10", + "update_time": "2025-11-06 10:33:10", "event_output": null, - "custom_field_type": "boolean | { minRows?: number; maxRows?: number }", + "custom_field_type": null, "syntactic_sugar": null, "readonly": 1, "html_attribute": 0, @@ -25900,34 +26151,31 @@ "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ - "Vue(PC)", - "React(PC)" + "Miniprogram" ], "field_type_text": [ - "Boolean", - "Object" + "String" ] }, { - "id": 1742884930, + "id": 1762425266, "platform_framework": [ - "1", - "2" + "64" ], - "component": "ChatInput", + "component": "ChatActionbar", "field_category": 1, - "field_name": "disabled", + "field_name": "copyMode", "field_type": [ - "4" + "1" ], - "field_default_value": "false", - "field_enum": "", - "field_desc_zh": "是否禁用输入框", + "field_default_value": "markdown", + "field_enum": "markdown/text", + "field_desc_zh": "【实验】复制内容的模式,可选 'markdown'(复制markdown原文)或 'text'(复制纯文本)", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2025-03-25 06:42:10", - "update_time": "2025-03-25 06:42:10", + "create_time": "2025-11-06 10:34:26", + "update_time": "2025-11-06 10:34:26", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -25940,33 +26188,31 @@ "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ - "Vue(PC)", - "React(PC)" + "Miniprogram" ], "field_type_text": [ - "Boolean" + "String" ] }, { - "id": 1742884754, + "id": 1762425307, "platform_framework": [ - "1", - "2" + "64" ], - "component": "ChatInput", + "component": "ChatActionbar", "field_category": 1, - "field_name": "placeholder", + "field_name": "disabled", "field_type": [ - "1" + "4" ], - "field_default_value": "", + "field_default_value": "false", "field_enum": "", - "field_desc_zh": "输入框默认文案", + "field_desc_zh": "【讨论中】操作按钮是否可点击", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2025-03-25 06:39:14", - "update_time": "2025-03-25 06:39:14", + "create_time": "2025-11-06 10:35:08", + "update_time": "2025-11-06 10:35:08", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -25979,33 +26225,31 @@ "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ - "Vue(PC)", - "React(PC)" + "Miniprogram" ], "field_type_text": [ - "String" + "Boolean" ] }, { - "id": 1742883827, + "id": 1762425290, "platform_framework": [ - "1", - "2" + "64" ], - "component": "ChatInput", + "component": "ChatActionbar", "field_category": 1, - "field_name": "stopDisabled", + "field_name": "placement", "field_type": [ - "4" + "1" ], - "field_default_value": "false", - "field_enum": "", - "field_desc_zh": "中止按钮是否可点击。等流式数据全部返回结束置为false,注意跟textLoading的控制时机不是同一个", + "field_default_value": "start", + "field_enum": "start/end/space-around/space-between", + "field_desc_zh": "【实验】操作栏位置", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2025-03-25 06:23:47", - "update_time": "2025-03-25 06:23:47", + "create_time": "2025-11-06 10:34:50", + "update_time": "2025-11-06 10:34:50", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -26018,33 +26262,29 @@ "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ - "Vue(PC)", - "React(PC)" + "Miniprogram" ], "field_type_text": [ - "Boolean" + "String" ] }, { - "id": 1743345588, + "id": 1762424600, "platform_framework": [ - "1", - "2" - ], - "component": "ChatInput", - "field_category": 1, - "field_name": "suffixIcon", - "field_type": [ "64" ], + "component": "ChatActionbar", + "field_category": 2, + "field_name": "actions", + "field_type": [], "field_default_value": "", "field_enum": "", - "field_desc_zh": "发送按钮的自定义扩展", + "field_desc_zh": "点击点赞,点踩,复制,分享,重新生成按钮时触发发", "field_desc_en": null, "field_required": 0, - "event_input": "", - "create_time": "2025-03-30 14:39:48", - "update_time": "2025-03-30 14:39:48", + "event_input": "(context: {name: string, active: boolean})", + "create_time": "2025-11-06 10:23:20", + "update_time": "2025-11-06 10:23:20", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -26055,45 +26295,42 @@ "version": "", "test_description": null, "support_default_value": 0, - "field_category_text": "Props", + "field_category_text": "Events", "platform_framework_text": [ - "Vue(PC)", - "React(PC)" + "Miniprogram" ], - "field_type_text": [ - "TNode" - ] + "field_type_text": [] }, { - "id": 1743345240, + "id": 1742883575, "platform_framework": [ "1", "2" ], - "component": "ChatInput", + "component": "ChatContent", "field_category": 1, - "field_name": "value", + "field_name": "content", "field_type": [ "1" ], "field_default_value": "", "field_enum": "", - "field_desc_zh": "输入框的值", - "field_desc_en": "input value", + "field_desc_zh": "聊天内容,支持 markdown 格式", + "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2025-03-30 14:34:00", - "update_time": "2025-03-30 14:34:00", + "create_time": "2025-03-25 06:19:35", + "update_time": "2025-03-25 06:19:35", "event_output": null, - "custom_field_type": "", - "syntactic_sugar": "v-model", + "custom_field_type": null, + "syntactic_sugar": null, "readonly": 1, "html_attribute": 0, "trigger_elements": "", "deprecated": 0, "version": "", "test_description": null, - "support_default_value": 1, + "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ "Vue(PC)", @@ -26104,25 +26341,26 @@ ] }, { - "id": 1742885940, + "id": 1762418144, "platform_framework": [ - "1", - "2" + "64" + ], + "component": "ChatContent", + "field_category": 1, + "field_name": "content", + "field_type": [ + "8" ], - "component": "ChatInput", - "field_category": 2, - "field_name": "blur", - "field_type": [], "field_default_value": "", "field_enum": "", - "field_desc_zh": "输入框聚焦时触发", + "field_desc_zh": "聊天内容对象", "field_desc_en": null, - "field_required": 0, - "event_input": "(value:string, context: { e: FocusEvent })", - "create_time": "2025-03-25 06:59:00", - "update_time": "2025-03-25 06:59:00", + "field_required": 1, + "event_input": "", + "create_time": "2025-11-06 08:35:44", + "update_time": "2025-11-06 08:35:44", "event_output": null, - "custom_field_type": null, + "custom_field_type": "TdChatContentType 【interface TdChatContentType { type: 'text' | 'markdown'; data: string; }】", "syntactic_sugar": null, "readonly": 1, "html_attribute": 0, @@ -26131,33 +26369,35 @@ "version": "", "test_description": null, "support_default_value": 0, - "field_category_text": "Events", + "field_category_text": "Props", "platform_framework_text": [ - "Vue(PC)", - "React(PC)" + "Miniprogram" ], - "field_type_text": [] + "field_type_text": [ + "Object" + ] }, { - "id": 1742885911, + "id": 1762418268, "platform_framework": [ - "1", - "2" + "64" + ], + "component": "ChatContent", + "field_category": 1, + "field_name": "markdownProps", + "field_type": [ + "8" ], - "component": "ChatInput", - "field_category": 2, - "field_name": "change", - "field_type": [], "field_default_value": "", "field_enum": "", - "field_desc_zh": "输入框值发生变化时触发", + "field_desc_zh": "marked 解析器的配置选项", "field_desc_en": null, "field_required": 0, - "event_input": "(value:string, context: { e: InputEvent | MouseEvent | KeyboardEvent })", - "create_time": "2025-03-25 06:58:31", - "update_time": "2025-03-25 06:58:31", + "event_input": "", + "create_time": "2025-11-06 08:37:48", + "update_time": "2025-11-06 08:37:48", "event_output": null, - "custom_field_type": null, + "custom_field_type": "ChatMarkdownProps【import { ChatMarkdownProps } from '@ChatMarkdown'】", "syntactic_sugar": null, "readonly": 1, "html_attribute": 0, @@ -26166,31 +26406,34 @@ "version": "", "test_description": null, "support_default_value": 0, - "field_category_text": "Events", + "field_category_text": "Props", "platform_framework_text": [ - "Vue(PC)", - "React(PC)" + "Miniprogram" ], - "field_type_text": [] + "field_type_text": [ + "Object" + ] }, { - "id": 1742885930, + "id": 1742883540, "platform_framework": [ "1", "2" ], - "component": "ChatInput", - "field_category": 2, - "field_name": "focus", - "field_type": [], + "component": "ChatContent", + "field_category": 1, + "field_name": "role", + "field_type": [ + "1" + ], "field_default_value": "", - "field_enum": "", - "field_desc_zh": "输入框聚焦时触发", + "field_enum": "user/assistant/error/model-change/system", + "field_desc_zh": "角色,不同选项配置不同的样式,支持类型包括用户、助手、错误、模型切换、系统消息", "field_desc_en": null, "field_required": 0, - "event_input": "(value:string, context: { e: FocusEvent }) ", - "create_time": "2025-03-25 06:58:50", - "update_time": "2025-03-25 06:58:50", + "event_input": "", + "create_time": "2025-03-25 06:19:00", + "update_time": "2025-03-25 06:19:00", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -26201,31 +26444,34 @@ "version": "", "test_description": null, "support_default_value": 0, - "field_category_text": "Events", + "field_category_text": "Props", "platform_framework_text": [ "Vue(PC)", "React(PC)" ], - "field_type_text": [] + "field_type_text": [ + "String" + ] }, { - "id": 1742885865, + "id": 1762418174, "platform_framework": [ - "1", - "2" + "64" + ], + "component": "ChatContent", + "field_category": 1, + "field_name": "role", + "field_type": [ + "1" ], - "component": "ChatInput", - "field_category": 2, - "field_name": "send", - "field_type": [], "field_default_value": "", - "field_enum": "", - "field_desc_zh": "点击消息发送的回调方法", + "field_enum": "user/assistant/system", + "field_desc_zh": "消息角色,用于区分用户和助手的消息样式\t", "field_desc_en": null, - "field_required": 0, - "event_input": "(value:string, context: { e: MouseEvent | KeyboardEvent })", - "create_time": "2025-03-25 06:57:45", - "update_time": "2025-03-25 06:57:45", + "field_required": 1, + "event_input": "", + "create_time": "2025-11-06 08:36:14", + "update_time": "2025-11-06 08:36:14", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -26236,31 +26482,33 @@ "version": "", "test_description": null, "support_default_value": 0, - "field_category_text": "Events", + "field_category_text": "Props", "platform_framework_text": [ - "Vue(PC)", - "React(PC)" + "Miniprogram" ], - "field_type_text": [] + "field_type_text": [ + "String" + ] }, { - "id": 1742885891, + "id": 1762418206, "platform_framework": [ - "1", - "2" + "64" + ], + "component": "ChatContent", + "field_category": 1, + "field_name": "status", + "field_type": [ + "1" ], - "component": "ChatInput", - "field_category": 2, - "field_name": "stop", - "field_type": [], "field_default_value": "", - "field_enum": "", - "field_desc_zh": "点击消息终止的回调方法", + "field_enum": "error / ''", + "field_desc_zh": "正文状态", "field_desc_en": null, "field_required": 0, - "event_input": "(value:string, context: { e: MouseEvent })", - "create_time": "2025-03-25 06:58:11", - "update_time": "2025-03-25 06:58:11", + "event_input": "", + "create_time": "2025-11-06 08:36:46", + "update_time": "2025-11-06 08:36:46", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -26271,34 +26519,34 @@ "version": "", "test_description": null, "support_default_value": 0, - "field_category_text": "Events", + "field_category_text": "Props", "platform_framework_text": [ - "Vue(PC)", - "React(PC)" + "Miniprogram" ], - "field_type_text": [] + "field_type_text": [ + "String" + ] }, { - "id": 1742886989, + "id": 1742884968, "platform_framework": [ "1", "2" ], - "component": "ChatItem", + "component": "ChatInput", "field_category": 1, - "field_name": "actions", + "field_name": "autofocus", "field_type": [ - "1", - "64" + "4" ], - "field_default_value": "", + "field_default_value": "false", "field_enum": "", - "field_desc_zh": "自定义的操作内容", + "field_desc_zh": "输入框是否自动聚焦", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2025-03-25 07:16:29", - "update_time": "2025-03-25 07:16:29", + "create_time": "2025-03-25 06:42:48", + "update_time": "2025-03-25 06:42:48", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -26315,32 +26563,32 @@ "React(PC)" ], "field_type_text": [ - "String", - "TNode" + "Boolean" ] }, { - "id": 1742887762, + "id": 1742885300, "platform_framework": [ "1", "2" ], - "component": "ChatItem", + "component": "ChatInput", "field_category": 1, - "field_name": "animation", + "field_name": "autosize", "field_type": [ - "1" + "4", + "8" ], - "field_default_value": "skeleton", - "field_enum": "skeleton/moving/gradient", - "field_desc_zh": "动画效果,支持「渐变加载动画」,「闪烁加载动画」, 「骨架屏」三种", + "field_default_value": "{ minRows: 1, maxRows: 5 }", + "field_enum": "", + "field_desc_zh": "高度自动撑开。 autosize = true 表示组件高度自动撑开,同时,依旧允许手动拖高度。如果设置了 autosize.maxRows 或者 autosize.minRows 则不允许手动调整高度", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2025-03-25 07:29:22", - "update_time": "2025-03-25 07:29:22", + "create_time": "2025-03-25 06:48:20", + "update_time": "2025-03-25 06:48:20", "event_output": null, - "custom_field_type": null, + "custom_field_type": "boolean | { minRows?: number; maxRows?: number }", "syntactic_sugar": null, "readonly": 1, "html_attribute": 0, @@ -26355,33 +26603,32 @@ "React(PC)" ], "field_type_text": [ - "String" + "Boolean", + "Object" ] }, { - "id": 1742887213, + "id": 1742884930, "platform_framework": [ "1", "2" ], - "component": "ChatItem", + "component": "ChatInput", "field_category": 1, - "field_name": "avatar", + "field_name": "disabled", "field_type": [ - "1", - "8", - "64" + "4" ], - "field_default_value": "", + "field_default_value": "false", "field_enum": "", - "field_desc_zh": "自定义的头像配置", + "field_desc_zh": "是否禁用输入框", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2025-03-25 07:20:13", - "update_time": "2025-03-25 07:20:13", + "create_time": "2025-03-25 06:42:10", + "update_time": "2025-03-25 06:42:10", "event_output": null, - "custom_field_type": "String | AvatarProps | TNode 【import { AvatarProps } from '@Avatar'】", + "custom_field_type": null, "syntactic_sugar": null, "readonly": 1, "html_attribute": 0, @@ -26396,32 +26643,29 @@ "React(PC)" ], "field_type_text": [ - "String", - "Object", - "TNode" + "Boolean" ] }, { - "id": 1742887477, + "id": 1742884754, "platform_framework": [ "1", "2" ], - "component": "ChatItem", + "component": "ChatInput", "field_category": 1, - "field_name": "content", + "field_name": "placeholder", "field_type": [ - "1", - "64" + "1" ], "field_default_value": "", "field_enum": "", - "field_desc_zh": "对话单元的内容", + "field_desc_zh": "输入框默认文案", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2025-03-25 07:24:37", - "update_time": "2025-03-25 07:24:37", + "create_time": "2025-03-25 06:39:14", + "update_time": "2025-03-25 06:39:14", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -26438,31 +26682,29 @@ "React(PC)" ], "field_type_text": [ - "String", - "TNode" + "String" ] }, { - "id": 1742887654, + "id": 1742883827, "platform_framework": [ "1", "2" ], - "component": "ChatItem", + "component": "ChatInput", "field_category": 1, - "field_name": "datetime", + "field_name": "stopDisabled", "field_type": [ - "1", - "64" + "4" ], - "field_default_value": "", + "field_default_value": "false", "field_enum": "", - "field_desc_zh": "对话单元的时间配置", + "field_desc_zh": "中止按钮是否可点击。等流式数据全部返回结束置为false,注意跟textLoading的控制时机不是同一个", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2025-03-25 07:27:34", - "update_time": "2025-03-25 07:27:34", + "create_time": "2025-03-25 06:23:47", + "update_time": "2025-03-25 06:23:47", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -26479,31 +26721,29 @@ "React(PC)" ], "field_type_text": [ - "String", - "TNode" + "Boolean" ] }, { - "id": 1742887067, + "id": 1743345588, "platform_framework": [ "1", "2" ], - "component": "ChatItem", + "component": "ChatInput", "field_category": 1, - "field_name": "name", + "field_name": "suffixIcon", "field_type": [ - "1", "64" ], "field_default_value": "", "field_enum": "", - "field_desc_zh": "自定义的昵称", + "field_desc_zh": "发送按钮的自定义扩展", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2025-03-25 07:17:47", - "update_time": "2025-03-25 07:17:47", + "create_time": "2025-03-30 14:39:48", + "update_time": "2025-03-30 14:39:48", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -26520,73 +26760,66 @@ "React(PC)" ], "field_type_text": [ - "String", "TNode" ] }, { - "id": 1742887828, + "id": 1743345240, "platform_framework": [ "1", "2" ], - "component": "ChatItem", + "component": "ChatInput", "field_category": 1, - "field_name": "reasoning", + "field_name": "value", "field_type": [ - "1", - "4", - "8" + "1" ], - "field_default_value": "false", + "field_default_value": "", "field_enum": "", - "field_desc_zh": "值为false不显示思维链,为string则显示内置推理内容交互,为对象则单独配置推理内容", - "field_desc_en": null, + "field_desc_zh": "输入框的值", + "field_desc_en": "input value", "field_required": 0, "event_input": "", - "create_time": "2025-03-25 07:30:28", - "update_time": "2025-03-25 07:30:28", + "create_time": "2025-03-30 14:34:00", + "update_time": "2025-03-30 14:34:00", "event_output": null, - "custom_field_type": "boolean | TdChatReasoning 【 interface TdChatReasoning { expandIconPlacement?: 'left' | 'right';onExpandChange?: (isExpand: boolean) => void; collapsePanelProps?: Object } 】", - "syntactic_sugar": null, + "custom_field_type": "", + "syntactic_sugar": "v-model", "readonly": 1, "html_attribute": 0, "trigger_elements": "", "deprecated": 0, "version": "", "test_description": null, - "support_default_value": 0, + "support_default_value": 1, "field_category_text": "Props", "platform_framework_text": [ "Vue(PC)", "React(PC)" ], "field_type_text": [ - "String", - "Boolean", - "Object" + "String" ] }, { - "id": 1742887703, + "id": 1742885940, "platform_framework": [ "1", "2" ], - "component": "ChatItem", - "field_category": 1, - "field_name": "role", - "field_type": [ - "1" - ], + "component": "ChatInput", + "field_category": 2, + "field_name": "blur", + "field_type": [], "field_default_value": "", - "field_enum": "user/assistant/error/model-change/system", - "field_desc_zh": "角色,不同选项配置不同的样式,支持类型包括用户、助手、错误、模型切换、系统消息", + "field_enum": "", + "field_desc_zh": "输入框聚焦时触发", "field_desc_en": null, "field_required": 0, - "event_input": "", - "create_time": "2025-03-25 07:28:23", - "update_time": "2025-03-25 07:28:23", + "event_input": "(value:string, context: { e: FocusEvent })", + "create_time": "2025-03-25 06:59:00", + "update_time": "2025-03-25 06:59:00", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -26597,35 +26830,31 @@ "version": "", "test_description": null, "support_default_value": 0, - "field_category_text": "Props", + "field_category_text": "Events", "platform_framework_text": [ "Vue(PC)", "React(PC)" ], - "field_type_text": [ - "String" - ] + "field_type_text": [] }, { - "id": 1742886870, + "id": 1742885911, "platform_framework": [ "1", "2" ], - "component": "ChatItem", - "field_category": 1, - "field_name": "textLoading", - "field_type": [ - "4" - ], - "field_default_value": "false", + "component": "ChatInput", + "field_category": 2, + "field_name": "change", + "field_type": [], + "field_default_value": "", "field_enum": "", - "field_desc_zh": "新消息是否处于加载状态,加载状态默认显示骨架屏,接口请求返回数据时请将新消息加载状态置为false", + "field_desc_zh": "输入框值发生变化时触发", "field_desc_en": null, "field_required": 0, - "event_input": "", - "create_time": "2025-03-25 07:14:30", - "update_time": "2025-03-25 07:14:30", + "event_input": "(value:string, context: { e: InputEvent | MouseEvent | KeyboardEvent })", + "create_time": "2025-03-25 06:58:31", + "update_time": "2025-03-25 06:58:31", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -26636,36 +26865,32 @@ "version": "", "test_description": null, "support_default_value": 0, - "field_category_text": "Props", + "field_category_text": "Events", "platform_framework_text": [ "Vue(PC)", "React(PC)" ], - "field_type_text": [ - "Boolean" - ] + "field_type_text": [] }, { - "id": 1742887448, + "id": 1742885930, "platform_framework": [ "1", "2" ], - "component": "ChatItem", - "field_category": 1, - "field_name": "variant", - "field_type": [ - "1" - ], - "field_default_value": "text", - "field_enum": "base/outline/text", - "field_desc_zh": "气泡框样式,支持基础、线框、文字三种类型", - "field_desc_en": null, - "field_required": 0, - "event_input": "", - "create_time": "2025-03-25 07:24:08", - "update_time": "2025-03-25 07:24:08", - "event_output": null, + "component": "ChatInput", + "field_category": 2, + "field_name": "focus", + "field_type": [], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "输入框聚焦时触发", + "field_desc_en": null, + "field_required": 0, + "event_input": "(value:string, context: { e: FocusEvent }) ", + "create_time": "2025-03-25 06:58:50", + "update_time": "2025-03-25 06:58:50", + "event_output": null, "custom_field_type": null, "syntactic_sugar": null, "readonly": 1, @@ -26675,35 +26900,31 @@ "version": "", "test_description": null, "support_default_value": 0, - "field_category_text": "Props", + "field_category_text": "Events", "platform_framework_text": [ "Vue(PC)", "React(PC)" ], - "field_type_text": [ - "String" - ] + "field_type_text": [] }, { - "id": 1742882111, + "id": 1742885865, "platform_framework": [ "1", "2" ], - "component": "ChatLoading", - "field_category": 1, - "field_name": "animation", - "field_type": [ - "1" - ], - "field_default_value": "gradient", - "field_enum": "moving/gradient", - "field_desc_zh": "加载的状态形式", + "component": "ChatInput", + "field_category": 2, + "field_name": "send", + "field_type": [], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "点击消息发送的回调方法", "field_desc_en": null, "field_required": 0, - "event_input": "", - "create_time": "2025-03-25 05:55:11", - "update_time": "2025-03-25 05:55:11", + "event_input": "(value:string, context: { e: MouseEvent | KeyboardEvent })", + "create_time": "2025-03-25 06:57:45", + "update_time": "2025-03-25 06:57:45", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -26714,35 +26935,31 @@ "version": "", "test_description": null, "support_default_value": 0, - "field_category_text": "Props", + "field_category_text": "Events", "platform_framework_text": [ "Vue(PC)", "React(PC)" ], - "field_type_text": [ - "String" - ] + "field_type_text": [] }, { - "id": 1742882019, + "id": 1742885891, "platform_framework": [ "1", "2" ], - "component": "ChatLoading", - "field_category": 1, - "field_name": "text", - "field_type": [ - "1" - ], + "component": "ChatInput", + "field_category": 2, + "field_name": "stop", + "field_type": [], "field_default_value": "", "field_enum": "", - "field_desc_zh": "加载过程展示的文字内容", - "field_desc_en": "text of chat loading", + "field_desc_zh": "点击消息终止的回调方法", + "field_desc_en": null, "field_required": 0, - "event_input": "", - "create_time": "2025-03-25 05:53:39", - "update_time": "2025-03-25 05:53:39", + "event_input": "(value:string, context: { e: MouseEvent })", + "create_time": "2025-03-25 06:58:11", + "update_time": "2025-03-25 06:58:11", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -26753,37 +26970,36 @@ "version": "", "test_description": null, "support_default_value": 0, - "field_category_text": "Props", + "field_category_text": "Events", "platform_framework_text": [ "Vue(PC)", "React(PC)" ], - "field_type_text": [ - "String" - ] + "field_type_text": [] }, { - "id": 1742886437, + "id": 1742886989, "platform_framework": [ "1", "2" ], - "component": "ChatReasoning", + "component": "ChatItem", "field_category": 1, - "field_name": "collapsePanelProps", + "field_name": "actions", "field_type": [ - "8" + "1", + "64" ], - "field_default_value": "{ destroyOnCollapse: false }", + "field_default_value": "", "field_enum": "", - "field_desc_zh": "透传给 CollapsePanel 组件的全部属性", + "field_desc_zh": "自定义的操作内容", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2025-03-25 07:07:17", - "update_time": "2025-03-25 07:07:17", + "create_time": "2025-03-25 07:16:29", + "update_time": "2025-03-25 07:16:29", "event_output": null, - "custom_field_type": "CollapsePanelProps【import { CollapsePanelProps } from '@Collapse'】", + "custom_field_type": null, "syntactic_sugar": null, "readonly": 1, "html_attribute": 0, @@ -26798,29 +27014,30 @@ "React(PC)" ], "field_type_text": [ - "Object" + "String", + "TNode" ] }, { - "id": 1742886498, + "id": 1742887762, "platform_framework": [ "1", "2" ], - "component": "ChatReasoning", + "component": "ChatItem", "field_category": 1, - "field_name": "expandIcon", + "field_name": "animation", "field_type": [ - "64" + "1" ], - "field_default_value": "", - "field_enum": "", - "field_desc_zh": "当前折叠面板展开图标。优先级低于collapsePanelProps.expandIcon", + "field_default_value": "skeleton", + "field_enum": "skeleton/moving/gradient", + "field_desc_zh": "动画效果,支持「渐变加载动画」,「闪烁加载动画」, 「骨架屏」三种", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2025-03-25 07:08:18", - "update_time": "2025-03-25 07:08:18", + "create_time": "2025-03-25 07:29:22", + "update_time": "2025-03-25 07:29:22", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -26837,31 +27054,33 @@ "React(PC)" ], "field_type_text": [ - "TNode" + "String" ] }, { - "id": 1742886303, + "id": 1742887213, "platform_framework": [ "1", "2" ], - "component": "ChatReasoning", + "component": "ChatItem", "field_category": 1, - "field_name": "expandIconPlacement", + "field_name": "avatar", "field_type": [ - "1" + "1", + "8", + "64" ], - "field_default_value": "right", - "field_enum": "left/right", - "field_desc_zh": "展开图标位置,可选项:left/right", + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "自定义的头像配置", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2025-03-25 07:05:03", - "update_time": "2025-03-25 07:05:03", + "create_time": "2025-03-25 07:20:13", + "update_time": "2025-03-25 07:20:13", "event_output": null, - "custom_field_type": null, + "custom_field_type": "String | AvatarProps | TNode 【import { AvatarProps } from '@Avatar'】", "syntactic_sugar": null, "readonly": 1, "html_attribute": 0, @@ -26876,29 +27095,32 @@ "React(PC)" ], "field_type_text": [ - "String" + "String", + "Object", + "TNode" ] }, { - "id": 1742886466, + "id": 1742887477, "platform_framework": [ "1", "2" ], - "component": "ChatReasoning", + "component": "ChatItem", "field_category": 1, - "field_name": "header", + "field_name": "content", "field_type": [ + "1", "64" ], "field_default_value": "", "field_enum": "", - "field_desc_zh": "折叠面板头内容。优先级低于collapsePanelProps.header", + "field_desc_zh": "对话单元的内容", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2025-03-25 07:07:46", - "update_time": "2025-03-25 07:07:46", + "create_time": "2025-03-25 07:24:37", + "update_time": "2025-03-25 07:24:37", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -26915,29 +27137,31 @@ "React(PC)" ], "field_type_text": [ + "String", "TNode" ] }, { - "id": 1742886481, + "id": 1742887654, "platform_framework": [ "1", "2" ], - "component": "ChatReasoning", + "component": "ChatItem", "field_category": 1, - "field_name": "headerRightContent", + "field_name": "datetime", "field_type": [ + "1", "64" ], "field_default_value": "", "field_enum": "", - "field_desc_zh": "折叠面板尾内容。优先级低于collapsePanelProps.headerRightContent", + "field_desc_zh": "对话单元的时间配置", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2025-03-25 07:08:01", - "update_time": "2025-03-25 07:08:01", + "create_time": "2025-03-25 07:27:34", + "update_time": "2025-03-25 07:27:34", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -26954,29 +27178,31 @@ "React(PC)" ], "field_type_text": [ + "String", "TNode" ] }, { - "id": 1742886536, + "id": 1742887067, "platform_framework": [ "1", "2" ], - "component": "ChatReasoning", - "field_category": 2, - "field_name": "expandChange", + "component": "ChatItem", + "field_category": 1, + "field_name": "name", "field_type": [ + "1", "64" ], "field_default_value": "", "field_enum": "", - "field_desc_zh": "展开图标点击事件", + "field_desc_zh": "自定义的昵称", "field_desc_en": null, "field_required": 0, - "event_input": "(value: CollapseValue)【import { CollapseValue } from '@Collapse'】", - "create_time": "2025-03-25 07:08:56", - "update_time": "2025-03-25 07:08:56", + "event_input": "", + "create_time": "2025-03-25 07:17:47", + "update_time": "2025-03-25 07:17:47", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -26987,37 +27213,40 @@ "version": "", "test_description": null, "support_default_value": 0, - "field_category_text": "Events", + "field_category_text": "Props", "platform_framework_text": [ "Vue(PC)", "React(PC)" ], "field_type_text": [ + "String", "TNode" ] }, { - "id": 1743345130, + "id": 1742887828, "platform_framework": [ "1", "2" ], - "component": "ChatSender", + "component": "ChatItem", "field_category": 1, - "field_name": "disabled", + "field_name": "reasoning", "field_type": [ - "4" + "1", + "4", + "8" ], "field_default_value": "false", "field_enum": "", - "field_desc_zh": "是否禁用输入框", + "field_desc_zh": "值为false不显示思维链,为string则显示内置推理内容交互,为对象则单独配置推理内容", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2025-03-30 14:32:10", - "update_time": "2025-03-30 14:32:10", + "create_time": "2025-03-25 07:30:28", + "update_time": "2025-03-25 07:30:28", "event_output": null, - "custom_field_type": null, + "custom_field_type": "boolean | TdChatReasoning 【 interface TdChatReasoning { expandIconPlacement?: 'left' | 'right';onExpandChange?: (isExpand: boolean) => void; collapsePanelProps?: Object } 】", "syntactic_sugar": null, "readonly": 1, "html_attribute": 0, @@ -27032,29 +27261,31 @@ "React(PC)" ], "field_type_text": [ - "Boolean" + "String", + "Boolean", + "Object" ] }, { - "id": 1743345147, + "id": 1742887703, "platform_framework": [ "1", "2" ], - "component": "ChatSender", + "component": "ChatItem", "field_category": 1, - "field_name": "placeholder", + "field_name": "role", "field_type": [ "1" ], "field_default_value": "", - "field_enum": "", - "field_desc_zh": "输入框默认文案", + "field_enum": "user/assistant/error/model-change/system", + "field_desc_zh": "角色,不同选项配置不同的样式,支持类型包括用户、助手、错误、模型切换、系统消息", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2025-03-30 14:32:27", - "update_time": "2025-03-30 14:32:27", + "create_time": "2025-03-25 07:28:23", + "update_time": "2025-03-25 07:28:23", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -27075,26 +27306,25 @@ ] }, { - "id": 1742886190, + "id": 1742886870, "platform_framework": [ "1", "2" ], - "component": "ChatSender", + "component": "ChatItem", "field_category": 1, - "field_name": "prefix", + "field_name": "textLoading", "field_type": [ - "1", - "64" + "4" ], - "field_default_value": "", + "field_default_value": "false", "field_enum": "", - "field_desc_zh": "输入框左下角区域扩展", + "field_desc_zh": "新消息是否处于加载状态,加载状态默认显示骨架屏,接口请求返回数据时请将新消息加载状态置为false", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2025-03-25 07:03:10", - "update_time": "2025-03-25 07:03:10", + "create_time": "2025-03-25 07:14:30", + "update_time": "2025-03-25 07:14:30", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -27111,30 +27341,29 @@ "React(PC)" ], "field_type_text": [ - "String", - "TNode" + "Boolean" ] }, { - "id": 1742886100, + "id": 1742887448, "platform_framework": [ "1", "2" ], - "component": "ChatSender", + "component": "ChatItem", "field_category": 1, - "field_name": "stopDisabled", + "field_name": "variant", "field_type": [ - "4" + "1" ], - "field_default_value": "false", - "field_enum": "", - "field_desc_zh": "中止按钮是否可点击。等流式数据全部返回结束置为false,注意跟textLoading的控制时机不是同一个", + "field_default_value": "text", + "field_enum": "base/outline/text", + "field_desc_zh": "气泡框样式,支持基础、线框、文字三种类型", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2025-03-25 07:01:40", - "update_time": "2025-03-25 07:01:40", + "create_time": "2025-03-25 07:24:08", + "update_time": "2025-03-25 07:24:08", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -27151,30 +27380,28 @@ "React(PC)" ], "field_type_text": [ - "Boolean" + "String" ] }, { - "id": 1742886164, + "id": 1762413791, "platform_framework": [ - "1", - "2" + "64" ], - "component": "ChatSender", + "component": "ChatList", "field_category": 1, - "field_name": "suffix", + "field_name": "actionbar", "field_type": [ - "1", "64" ], "field_default_value": "", "field_enum": "", - "field_desc_zh": "输入框右下角区域扩展", + "field_desc_zh": "自定义操作按钮的插槽", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2025-03-25 07:02:44", - "update_time": "2025-03-25 07:02:44", + "create_time": "2025-11-06 07:23:11", + "update_time": "2025-11-06 07:23:11", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -27187,36 +27414,33 @@ "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ - "Vue(PC)", - "React(PC)" + "Miniprogram" ], "field_type_text": [ - "String", "TNode" ] }, { - "id": 1743345474, + "id": 1762413829, "platform_framework": [ - "1", - "2" + "64" ], - "component": "ChatSender", + "component": "ChatList", "field_category": 1, - "field_name": "textareaProps", + "field_name": "animation", "field_type": [ - "8" + "1" ], - "field_default_value": "", - "field_enum": "", - "field_desc_zh": "透传给 Textarea 组件的全部属性", + "field_default_value": "skeleton", + "field_enum": "skeleton/moving/gradient", + "field_desc_zh": "动画效果,支持「渐变加载动画」,「闪烁加载动画」, 「骨架屏」三种", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2025-03-30 14:37:54", - "update_time": "2025-03-30 14:37:54", + "create_time": "2025-11-06 07:23:49", + "update_time": "2025-11-06 07:23:49", "event_output": null, - "custom_field_type": "TextareaProps【import { TextareaProps } from '@Textarea'】", + "custom_field_type": null, "syntactic_sugar": null, "readonly": 1, "html_attribute": 0, @@ -27227,70 +27451,105 @@ "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ - "Vue(PC)", - "React(PC)" + "Miniprogram" ], "field_type_text": [ - "Object" + "String" ] }, { - "id": 1743345258, + "id": 1762414006, "platform_framework": [ - "1", - "2" + "64" ], - "component": "ChatSender", + "component": "ChatList", "field_category": 1, - "field_name": "value", + "field_name": "data", "field_type": [ - "1" + "16" ], "field_default_value": "", "field_enum": "", - "field_desc_zh": "输入框的值", - "field_desc_en": "input value", + "field_desc_zh": "对话列表的数据", + "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2025-03-30 14:34:18", - "update_time": "2025-03-30 14:34:18", + "create_time": "2025-11-06 07:26:46", + "update_time": "2025-11-06 07:26:46", "event_output": null, - "custom_field_type": "", - "syntactic_sugar": "v-model", + "custom_field_type": "Array【 interface TdChatItemMeta { avatar?: string; name?:string; role?:string; datetime?: string; content?: string; reasoning?: string }】", + "syntactic_sugar": null, "readonly": 1, "html_attribute": 0, "trigger_elements": "", "deprecated": 0, "version": "", "test_description": null, - "support_default_value": 1, + "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ - "Vue(PC)", - "React(PC)" + "Miniprogram" + ], + "field_type_text": [ + "Array" + ] + }, + { + "id": 1762414018, + "platform_framework": [ + "64" + ], + "component": "ChatList", + "field_category": 1, + "field_name": "layout", + "field_type": [ + "1" + ], + "field_default_value": "both", + "field_enum": "both/single", + "field_desc_zh": "对话布局形式,支持两侧对齐与左对齐。使用插槽自定义对话内容时不生效,得用`t-chat-message`的`placement`属性。", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 07:26:58", + "update_time": "2025-11-06 07:26:58", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "MouseEvent", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" ], "field_type_text": [ "String" ] }, { - "id": 1743345176, + "id": 1762414029, "platform_framework": [ - "1", - "2" + "64" ], - "component": "ChatSender", - "field_category": 2, - "field_name": "blur", - "field_type": [], - "field_default_value": "", + "component": "ChatList", + "field_category": 1, + "field_name": "reverse", + "field_type": [ + "4" + ], + "field_default_value": "true", "field_enum": "", - "field_desc_zh": "输入框聚焦时触发", + "field_desc_zh": "是否表现为倒序", "field_desc_en": null, "field_required": 0, - "event_input": "(value:string, context: { e: FocusEvent })", - "create_time": "2025-03-30 14:32:56", - "update_time": "2025-03-30 14:32:56", + "event_input": "", + "create_time": "2025-11-06 07:27:09", + "update_time": "2025-11-06 07:27:09", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -27301,31 +27560,31 @@ "version": "", "test_description": null, "support_default_value": 0, - "field_category_text": "Events", + "field_category_text": "Props", "platform_framework_text": [ - "Vue(PC)", - "React(PC)" + "Miniprogram" ], - "field_type_text": [] + "field_type_text": [ + "Boolean" + ] }, { - "id": 1743345163, + "id": 1762414717, "platform_framework": [ - "1", - "2" + "64" ], - "component": "ChatSender", + "component": "ChatList", "field_category": 2, - "field_name": "change", + "field_name": "scroll", "field_type": [], "field_default_value": "", "field_enum": "", - "field_desc_zh": "输入框值发生变化时触发", + "field_desc_zh": "滚动事件的回调", "field_desc_en": null, "field_required": 0, - "event_input": "(value:string, context: { e: InputEvent | MouseEvent | KeyboardEvent })", - "create_time": "2025-03-30 14:32:43", - "update_time": "2025-03-30 14:32:43", + "event_input": "(context: {scrollLeft, scrollTop, scrollHeight, scrollWidth, deltaX, deltaY})", + "create_time": "2025-11-06 07:38:37", + "update_time": "2025-11-06 07:38:37", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -27338,29 +27597,30 @@ "support_default_value": 0, "field_category_text": "Events", "platform_framework_text": [ - "Vue(PC)", - "React(PC)" + "Miniprogram" ], "field_type_text": [] }, { - "id": 1743345186, + "id": 1742882111, "platform_framework": [ "1", "2" ], - "component": "ChatSender", - "field_category": 2, - "field_name": "focus", - "field_type": [], - "field_default_value": "", - "field_enum": "", - "field_desc_zh": "输入框聚焦时触发", + "component": "ChatLoading", + "field_category": 1, + "field_name": "animation", + "field_type": [ + "1" + ], + "field_default_value": "gradient", + "field_enum": "moving/gradient", + "field_desc_zh": "加载的状态形式", "field_desc_en": null, "field_required": 0, - "event_input": "(value:string, context: { e: FocusEvent }) ", - "create_time": "2025-03-30 14:33:06", - "update_time": "2025-03-30 14:33:06", + "event_input": "", + "create_time": "2025-03-25 05:55:11", + "update_time": "2025-03-25 05:55:11", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -27371,31 +27631,34 @@ "version": "", "test_description": null, "support_default_value": 0, - "field_category_text": "Events", + "field_category_text": "Props", "platform_framework_text": [ "Vue(PC)", "React(PC)" ], - "field_type_text": [] + "field_type_text": [ + "String" + ] }, { - "id": 1742886045, + "id": 1762423633, "platform_framework": [ - "1", - "2" + "64" ], - "component": "ChatSender", - "field_category": 2, - "field_name": "send", - "field_type": [], - "field_default_value": "", - "field_enum": "", - "field_desc_zh": "点击消息发送的回调方法", + "component": "ChatLoading", + "field_category": 1, + "field_name": "animation", + "field_type": [ + "1" + ], + "field_default_value": "moving", + "field_enum": "skeleton/moving/gradient/dot", + "field_desc_zh": "加载的状态形式", "field_desc_en": null, "field_required": 0, - "event_input": "(value:string, context: { e: MouseEvent | KeyboardEvent })", - "create_time": "2025-03-25 07:00:45", - "update_time": "2025-03-25 07:00:45", + "event_input": "", + "create_time": "2025-11-06 10:07:13", + "update_time": "2025-11-06 10:07:13", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -27406,31 +27669,35 @@ "version": "", "test_description": null, "support_default_value": 0, - "field_category_text": "Events", + "field_category_text": "Props", "platform_framework_text": [ - "Vue(PC)", - "React(PC)" + "Miniprogram" ], - "field_type_text": [] + "field_type_text": [ + "String" + ] }, { - "id": 1742886073, + "id": 1742882019, "platform_framework": [ "1", - "2" + "2", + "64" + ], + "component": "ChatLoading", + "field_category": 1, + "field_name": "text", + "field_type": [ + "1" ], - "component": "ChatSender", - "field_category": 2, - "field_name": "stop", - "field_type": [], "field_default_value": "", "field_enum": "", - "field_desc_zh": "点击消息终止的回调方法", - "field_desc_en": null, + "field_desc_zh": "加载过程展示的文字内容", + "field_desc_en": "text of chat loading", "field_required": 0, - "event_input": "(value:string, context: { e: MouseEvent })", - "create_time": "2025-03-25 07:01:13", - "update_time": "2025-03-25 07:01:13", + "event_input": "", + "create_time": "2025-03-25 05:53:39", + "update_time": "2025-03-25 05:53:39", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -27441,10 +27708,2128 @@ "version": "", "test_description": null, "support_default_value": 0, - "field_category_text": "Events", + "field_category_text": "Props", "platform_framework_text": [ "Vue(PC)", - "React(PC)" + "React(PC)", + "Miniprogram" + ], + "field_type_text": [ + "String" + ] + }, + { + "id": 1762423223, + "platform_framework": [ + "64" + ], + "component": "ChatMarkdown", + "field_category": 1, + "field_name": "content", + "field_type": [ + "1" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "markdown 内容文本", + "field_desc_en": null, + "field_required": 1, + "event_input": "", + "create_time": "2025-11-06 10:00:23", + "update_time": "2025-11-06 10:00:23", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "String" + ] + }, + { + "id": 1762423331, + "platform_framework": [ + "64" + ], + "component": "ChatMarkdown", + "field_category": 1, + "field_name": "options", + "field_type": [ + "8" + ], + "field_default_value": "{ gfm: true, pedantic: false, breaks: true }", + "field_enum": "", + "field_desc_zh": "Markdown 解析器基础配置", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 10:02:11", + "update_time": "2025-11-06 10:02:11", + "event_output": null, + "custom_field_type": "TdChatContentMDOptions 【interface TdChatContentMDOptions {gfm?: boolean; pedantic?: boolean; smartLists?: boolean; breaks?: boolean}】", + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "Object" + ] + }, + { + "id": 1762423469, + "platform_framework": [ + "64" + ], + "component": "ChatMarkdown", + "field_category": 2, + "field_name": "click", + "field_type": [], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "点击链接时触发", + "field_desc_en": null, + "field_required": 0, + "event_input": "(context: {detail:{event, node}, currentTarget, target})", + "create_time": "2025-11-06 10:04:29", + "update_time": "2025-11-06 10:04:29", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Events", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [] + }, + { + "id": 1762417502, + "platform_framework": [ + "64" + ], + "component": "ChatMessage", + "field_category": 1, + "field_name": "allowContentSegmentCustom", + "field_type": [ + "4" + ], + "field_default_value": "false", + "field_enum": "", + "field_desc_zh": "【实验】 是否允许自定义局部消息内容,其他消息内容实用默认样式", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 08:25:02", + "update_time": "2025-11-06 08:25:02", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "Boolean" + ] + }, + { + "id": 1762417465, + "platform_framework": [ + "64" + ], + "component": "ChatMessage", + "field_category": 1, + "field_name": "animation", + "field_type": [ + "1" + ], + "field_default_value": "skeleton", + "field_enum": "skeleton/moving/gradient/dots", + "field_desc_zh": "动画效果", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 08:24:25", + "update_time": "2025-11-06 08:24:25", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "String" + ] + }, + { + "id": 1762417018, + "platform_framework": [ + "64" + ], + "component": "ChatMessage", + "field_category": 1, + "field_name": "avatar", + "field_type": [ + "1", + "64" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "自定义的头像配置", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 08:16:58", + "update_time": "2025-11-06 08:16:58", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "String", + "TNode" + ] + }, + { + "id": 1762417484, + "platform_framework": [ + "64" + ], + "component": "ChatMessage", + "field_category": 1, + "field_name": "chatContentProps", + "field_type": [ + "8" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "聊天内容组件的属性", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 08:24:44", + "update_time": "2025-11-06 08:24:44", + "event_output": null, + "custom_field_type": "ChatContentProps【import { ChatContentProps } from '@ChatContent'】", + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "Object" + ] + }, + { + "id": 1762416954, + "platform_framework": [ + "64" + ], + "component": "ChatMessage", + "field_category": 1, + "field_name": "chatId", + "field_type": [ + "1" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "聊天消息的唯一标识", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 08:15:54", + "update_time": "2025-11-06 08:15:54", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "MouseEvent", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "String" + ] + }, + { + "id": 1762417202, + "platform_framework": [ + "64" + ], + "component": "ChatMessage", + "field_category": 1, + "field_name": "content", + "field_type": [ + "16" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "消息内容,数组中的每一项为一个消息内容对象", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 08:20:02", + "update_time": "2025-11-06 08:20:02", + "event_output": null, + "custom_field_type": "ChatMessageContent[] 【type ChatMessageContent = TextContent | MarkdownContent | ThinkingContent | AttachmentContent】【 type AttachmentContent = ChatBaseContent<'attachment', FileItem[]>】【type ThinkingContent = ChatBaseContent<'thinking', ThinkingContentData>】【type MarkdownContent = ChatBaseContent<'markdown', string>】【type TextContent = ChatBaseContent<'text', string>】【interface ThinkingContentData {title?: string; text: string}】【interface ChatBaseContent {type: T; data: TData}】【type ChatMessageStatus = 'pending' | 'streaming' | 'complete' | 'stop' | 'error'】【type ChatContentType = | 'text' | 'markdown' | 'thinking' | 'attachment'】【import { FileItem} from '@Attachments'】", + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "Array" + ] + }, + { + "id": 1762417161, + "platform_framework": [ + "64" + ], + "component": "ChatMessage", + "field_category": 1, + "field_name": "datetime", + "field_type": [ + "1", + "64" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "对话单元的时间配置", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 08:19:21", + "update_time": "2025-11-06 08:19:21", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "String", + "TNode" + ] + }, + { + "id": 1762417139, + "platform_framework": [ + "64" + ], + "component": "ChatMessage", + "field_category": 1, + "field_name": "name", + "field_type": [ + "1", + "64" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "自定义的昵称", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 08:18:59", + "update_time": "2025-11-06 08:18:59", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "String", + "TNode" + ] + }, + { + "id": 1762417314, + "platform_framework": [ + "64" + ], + "component": "ChatMessage", + "field_category": 1, + "field_name": "placement", + "field_type": [ + "1" + ], + "field_default_value": "", + "field_enum": "left/right", + "field_desc_zh": "消息显示位置", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 08:21:54", + "update_time": "2025-11-06 08:21:54", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "String" + ] + }, + { + "id": 1762417238, + "platform_framework": [ + "64" + ], + "component": "ChatMessage", + "field_category": 1, + "field_name": "role", + "field_type": [ + "1" + ], + "field_default_value": "user", + "field_enum": "user/assistant/system", + "field_desc_zh": "消息角色", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 08:20:38", + "update_time": "2025-11-06 08:20:38", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "String" + ] + }, + { + "id": 1762417265, + "platform_framework": [ + "64" + ], + "component": "ChatMessage", + "field_category": 1, + "field_name": "status", + "field_type": [ + "1" + ], + "field_default_value": "", + "field_enum": "pending/streaming/complete/stop/error ", + "field_desc_zh": "消息状态", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 08:21:05", + "update_time": "2025-11-06 08:21:05", + "event_output": null, + "custom_field_type": "", + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "String" + ] + }, + { + "id": 1762417188, + "platform_framework": [ + "64" + ], + "component": "ChatMessage", + "field_category": 1, + "field_name": "variant", + "field_type": [ + "1" + ], + "field_default_value": "base", + "field_enum": "base/outline/text", + "field_desc_zh": "气泡框样式,支持基础、线框、文字三种类型", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 08:19:48", + "update_time": "2025-11-06 08:19:48", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "String" + ] + }, + { + "id": 1762417897, + "platform_framework": [ + "64" + ], + "component": "ChatMessage", + "field_category": 2, + "field_name": "longpress", + "field_type": [], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": null, + "field_desc_en": null, + "field_required": 0, + "event_input": "(context: { e: MouseEvent, id: string })", + "create_time": "2025-11-06 08:31:37", + "update_time": "2025-11-06 08:31:37", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Events", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [] + }, + { + "id": 1742886437, + "platform_framework": [ + "1", + "2" + ], + "component": "ChatReasoning", + "field_category": 1, + "field_name": "collapsePanelProps", + "field_type": [ + "8" + ], + "field_default_value": "{ destroyOnCollapse: false }", + "field_enum": "", + "field_desc_zh": "透传给 CollapsePanel 组件的全部属性", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-03-25 07:07:17", + "update_time": "2025-03-25 07:07:17", + "event_output": null, + "custom_field_type": "CollapsePanelProps【import { CollapsePanelProps } from '@Collapse'】", + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Vue(PC)", + "React(PC)" + ], + "field_type_text": [ + "Object" + ] + }, + { + "id": 1742886498, + "platform_framework": [ + "1", + "2" + ], + "component": "ChatReasoning", + "field_category": 1, + "field_name": "expandIcon", + "field_type": [ + "64" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "当前折叠面板展开图标。优先级低于collapsePanelProps.expandIcon", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-03-25 07:08:18", + "update_time": "2025-03-25 07:08:18", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Vue(PC)", + "React(PC)" + ], + "field_type_text": [ + "TNode" + ] + }, + { + "id": 1742886303, + "platform_framework": [ + "1", + "2" + ], + "component": "ChatReasoning", + "field_category": 1, + "field_name": "expandIconPlacement", + "field_type": [ + "1" + ], + "field_default_value": "right", + "field_enum": "left/right", + "field_desc_zh": "展开图标位置,可选项:left/right", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-03-25 07:05:03", + "update_time": "2025-03-25 07:05:03", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Vue(PC)", + "React(PC)" + ], + "field_type_text": [ + "String" + ] + }, + { + "id": 1742886466, + "platform_framework": [ + "1", + "2" + ], + "component": "ChatReasoning", + "field_category": 1, + "field_name": "header", + "field_type": [ + "64" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "折叠面板头内容。优先级低于collapsePanelProps.header", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-03-25 07:07:46", + "update_time": "2025-03-25 07:07:46", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Vue(PC)", + "React(PC)" + ], + "field_type_text": [ + "TNode" + ] + }, + { + "id": 1742886481, + "platform_framework": [ + "1", + "2" + ], + "component": "ChatReasoning", + "field_category": 1, + "field_name": "headerRightContent", + "field_type": [ + "64" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "折叠面板尾内容。优先级低于collapsePanelProps.headerRightContent", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-03-25 07:08:01", + "update_time": "2025-03-25 07:08:01", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Vue(PC)", + "React(PC)" + ], + "field_type_text": [ + "TNode" + ] + }, + { + "id": 1742886536, + "platform_framework": [ + "1", + "2" + ], + "component": "ChatReasoning", + "field_category": 2, + "field_name": "expandChange", + "field_type": [ + "64" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "展开图标点击事件", + "field_desc_en": null, + "field_required": 0, + "event_input": "(value: CollapseValue)【import { CollapseValue } from '@Collapse'】", + "create_time": "2025-03-25 07:08:56", + "update_time": "2025-03-25 07:08:56", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Events", + "platform_framework_text": [ + "Vue(PC)", + "React(PC)" + ], + "field_type_text": [ + "TNode" + ] + }, + { + "id": 1762419565, + "platform_framework": [ + "64" + ], + "component": "ChatSender", + "field_category": 1, + "field_name": "adjustPosition", + "field_type": [ + "4" + ], + "field_default_value": "false", + "field_enum": "", + "field_desc_zh": "默认键盘弹起不会把页面顶起来", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 08:59:25", + "update_time": "2025-11-06 08:59:25", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "Boolean" + ] + }, + { + "id": 1762419289, + "platform_framework": [ + "64" + ], + "component": "ChatSender", + "field_category": 1, + "field_name": "attachmentsProps", + "field_type": [ + "8" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "附件列表属性", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 08:54:49", + "update_time": "2025-11-06 08:54:49", + "event_output": null, + "custom_field_type": "AttachmentsProps【import { AttachmentsProps, FileItem} from '@Attachments'】", + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "Object" + ] + }, + { + "id": 1762419583, + "platform_framework": [ + "64" + ], + "component": "ChatSender", + "field_category": 1, + "field_name": "autoRiseWithKeyboard", + "field_type": [ + "4" + ], + "field_default_value": "false", + "field_enum": "", + "field_desc_zh": "键盘弹起时自动顶起来输入框", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 08:59:43", + "update_time": "2025-11-06 08:59:43", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "Boolean" + ] + }, + { + "id": 1743345130, + "platform_framework": [ + "1", + "2", + "64" + ], + "component": "ChatSender", + "field_category": 1, + "field_name": "disabled", + "field_type": [ + "4" + ], + "field_default_value": "false", + "field_enum": "", + "field_desc_zh": "是否禁用输入框", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-03-30 14:32:10", + "update_time": "2025-03-30 14:32:10", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Vue(PC)", + "React(PC)", + "Miniprogram" + ], + "field_type_text": [ + "Boolean" + ] + }, + { + "id": 1762419254, + "platform_framework": [ + "64" + ], + "component": "ChatSender", + "field_category": 1, + "field_name": "fileList", + "field_type": [ + "16" + ], + "field_default_value": "[]", + "field_enum": "", + "field_desc_zh": "附件文件列表", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 08:54:14", + "update_time": "2025-11-06 08:54:14", + "event_output": null, + "custom_field_type": "FileItem[]", + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "Array" + ] + }, + { + "id": 1762419067, + "platform_framework": [ + "1", + "2", + "64" + ], + "component": "ChatSender", + "field_category": 1, + "field_name": "loading", + "field_type": [ + "4" + ], + "field_default_value": "false", + "field_enum": "", + "field_desc_zh": "发送按钮是否处于加载状态", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 08:51:07", + "update_time": "2025-11-06 08:51:07", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Vue(PC)", + "React(PC)", + "Miniprogram" + ], + "field_type_text": [ + "Boolean" + ] + }, + { + "id": 1743345147, + "platform_framework": [ + "1", + "2", + "64" + ], + "component": "ChatSender", + "field_category": 1, + "field_name": "placeholder", + "field_type": [ + "1" + ], + "field_default_value": "请输入消息...", + "field_enum": "", + "field_desc_zh": "输入框默认文案", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-03-30 14:32:27", + "update_time": "2025-03-30 14:32:27", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Vue(PC)", + "React(PC)", + "Miniprogram" + ], + "field_type_text": [ + "String" + ] + }, + { + "id": 1742886190, + "platform_framework": [ + "1", + "2" + ], + "component": "ChatSender", + "field_category": 1, + "field_name": "prefix", + "field_type": [ + "1", + "64" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "输入框左下角区域扩展", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-03-25 07:03:10", + "update_time": "2025-03-25 07:03:10", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Vue(PC)", + "React(PC)" + ], + "field_type_text": [ + "String", + "TNode" + ] + }, + { + "id": 1762419528, + "platform_framework": [ + "64" + ], + "component": "ChatSender", + "field_category": 1, + "field_name": "renderPresets", + "field_type": [ + "16" + ], + "field_default_value": "[{name: 'upload', presets: ['uploadCamera', 'uploadImage', 'uploadAttachment'], status: ''},{ name: 'send', type: 'icon'}]", + "field_enum": "", + "field_desc_zh": "预设发送区渲染配置,用于灵活配置发送区的上传入口和发送按钮,支持自定义类型、顺序、样式", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 08:58:48", + "update_time": "2025-11-06 08:58:48", + "event_output": null, + "custom_field_type": "ChatActionButtons【type ChatActionButtons = Array】【type ChatActionButton = UploadButton | SendButton】【interface UploadButton { name: 'upload'; presets: string[]; status?: string; }】【interface SendButton { name: 'send'; type: 'icon' | 'text';}】", + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "Array" + ] + }, + { + "id": 1742886100, + "platform_framework": [ + "1", + "2" + ], + "component": "ChatSender", + "field_category": 1, + "field_name": "stopDisabled", + "field_type": [ + "4" + ], + "field_default_value": "false", + "field_enum": "", + "field_desc_zh": "中止按钮是否可点击。等流式数据全部返回结束置为false,注意跟textLoading的控制时机不是同一个", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-03-25 07:01:40", + "update_time": "2025-03-25 07:01:40", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Vue(PC)", + "React(PC)" + ], + "field_type_text": [ + "Boolean" + ] + }, + { + "id": 1742886164, + "platform_framework": [ + "1", + "2" + ], + "component": "ChatSender", + "field_category": 1, + "field_name": "suffix", + "field_type": [ + "1", + "64" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "输入框右下角区域扩展", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-03-25 07:02:44", + "update_time": "2025-03-25 07:02:44", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Vue(PC)", + "React(PC)" + ], + "field_type_text": [ + "String", + "TNode" + ] + }, + { + "id": 1743345474, + "platform_framework": [ + "1", + "2" + ], + "component": "ChatSender", + "field_category": 1, + "field_name": "textareaProps", + "field_type": [ + "8" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "透传给 Textarea 组件的全部属性", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-03-30 14:37:54", + "update_time": "2025-03-30 14:37:54", + "event_output": null, + "custom_field_type": "TextareaProps【import { TextareaProps } from '@Textarea'】", + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Vue(PC)", + "React(PC)" + ], + "field_type_text": [ + "Object" + ] + }, + { + "id": 1762485875, + "platform_framework": [ + "64" + ], + "component": "ChatSender", + "field_category": 1, + "field_name": "textareaProps", + "field_type": [ + "4", + "8" + ], + "field_default_value": "{ autosize: { maxHeight: 264, minHeight: 48 } }", + "field_enum": "", + "field_desc_zh": "透传给 Textarea 组件的属性,autosize数值单位为 rpx", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-07 03:24:35", + "update_time": "2025-11-07 03:24:35", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "Boolean", + "Object" + ] + }, + { + "id": 1743345258, + "platform_framework": [ + "1", + "2" + ], + "component": "ChatSender", + "field_category": 1, + "field_name": "value", + "field_type": [ + "1" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "输入框的值", + "field_desc_en": "input value", + "field_required": 0, + "event_input": "", + "create_time": "2025-03-30 14:34:18", + "update_time": "2025-03-30 14:34:18", + "event_output": null, + "custom_field_type": "", + "syntactic_sugar": "v-model", + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 1, + "field_category_text": "Props", + "platform_framework_text": [ + "Vue(PC)", + "React(PC)" + ], + "field_type_text": [ + "String" + ] + }, + { + "id": 1762491604, + "platform_framework": [ + "64" + ], + "component": "ChatSender", + "field_category": 1, + "field_name": "value", + "field_type": [ + "1" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "输入框的值", + "field_desc_en": "input value", + "field_required": 0, + "event_input": "", + "create_time": "2025-11-07 05:00:04", + "update_time": "2025-11-07 05:00:04", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 1, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "String" + ] + }, + { + "id": 1762419553, + "platform_framework": [ + "64" + ], + "component": "ChatSender", + "field_category": 1, + "field_name": "visible", + "field_type": [ + "4" + ], + "field_default_value": "false", + "field_enum": "", + "field_desc_zh": "上传面板是否可见", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 08:59:13", + "update_time": "2025-11-06 08:59:13", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "Boolean" + ] + }, + { + "id": 1743345176, + "platform_framework": [ + "1", + "2", + "64" + ], + "component": "ChatSender", + "field_category": 2, + "field_name": "blur", + "field_type": [], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "输入框聚焦时触发", + "field_desc_en": null, + "field_required": 0, + "event_input": "(value:string, context: { e: FocusEvent })", + "create_time": "2025-03-30 14:32:56", + "update_time": "2025-03-30 14:32:56", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Events", + "platform_framework_text": [ + "Vue(PC)", + "React(PC)", + "Miniprogram" + ], + "field_type_text": [] + }, + { + "id": 1743345163, + "platform_framework": [ + "1", + "2", + "64" + ], + "component": "ChatSender", + "field_category": 2, + "field_name": "change", + "field_type": [], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "输入框值发生变化时触发", + "field_desc_en": null, + "field_required": 0, + "event_input": "(value:string, context: { e: InputEvent | MouseEvent | KeyboardEvent })", + "create_time": "2025-03-30 14:32:43", + "update_time": "2025-03-30 14:32:43", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Events", + "platform_framework_text": [ + "Vue(PC)", + "React(PC)", + "Miniprogram" + ], + "field_type_text": [] + }, + { + "id": 1762420021, + "platform_framework": [ + "64" + ], + "component": "ChatSender", + "field_category": 2, + "field_name": "fileAdd", + "field_type": [], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "添加附件时触发", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 09:07:01", + "update_time": "2025-11-06 09:07:01", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Events", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [] + }, + { + "id": 1762420010, + "platform_framework": [ + "64" + ], + "component": "ChatSender", + "field_category": 2, + "field_name": "fileChange", + "field_type": [], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "附件列表变化时触发", + "field_desc_en": null, + "field_required": 0, + "event_input": "(file:FileItem)", + "create_time": "2025-11-06 09:06:50", + "update_time": "2025-11-06 09:06:50", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Events", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [] + }, + { + "id": 1762419955, + "platform_framework": [ + "64" + ], + "component": "ChatSender", + "field_category": 2, + "field_name": "fileClick", + "field_type": [], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "点击附件时触发", + "field_desc_en": null, + "field_required": 0, + "event_input": "(file:FileItem)", + "create_time": "2025-11-06 09:05:55", + "update_time": "2025-11-06 09:05:55", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Events", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [] + }, + { + "id": 1762419983, + "platform_framework": [ + "64" + ], + "component": "ChatSender", + "field_category": 2, + "field_name": "fileDelete", + "field_type": [], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "删除附件时触发", + "field_desc_en": null, + "field_required": 0, + "event_input": "(file:FileItem)", + "create_time": "2025-11-06 09:06:23", + "update_time": "2025-11-06 09:06:23", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Events", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [] + }, + { + "id": 1762420057, + "platform_framework": [ + "64" + ], + "component": "ChatSender", + "field_category": 2, + "field_name": "fileSelect", + "field_type": [], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "选择文件(图片/微信文件)时触发", + "field_desc_en": null, + "field_required": 0, + "event_input": "(context: {files: FileList, name: UploadActionType})", + "create_time": "2025-11-06 09:07:37", + "update_time": "2025-11-06 09:07:37", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Events", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [] + }, + { + "id": 1743345186, + "platform_framework": [ + "1", + "2", + "64" + ], + "component": "ChatSender", + "field_category": 2, + "field_name": "focus", + "field_type": [], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "输入框聚焦时触发", + "field_desc_en": null, + "field_required": 0, + "event_input": "(value:string, context: { e: FocusEvent }) ", + "create_time": "2025-03-30 14:33:06", + "update_time": "2025-03-30 14:33:06", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Events", + "platform_framework_text": [ + "Vue(PC)", + "React(PC)", + "Miniprogram" + ], + "field_type_text": [] + }, + { + "id": 1762420136, + "platform_framework": [ + "64" + ], + "component": "ChatSender", + "field_category": 2, + "field_name": "keyboardheightchange", + "field_type": [], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "选择文件(图片/微信文件)时触发", + "field_desc_en": null, + "field_required": 0, + "event_input": "(context: {height: number, duration: number})", + "create_time": "2025-11-06 09:08:56", + "update_time": "2025-11-06 09:08:56", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Events", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [] + }, + { + "id": 1742886045, + "platform_framework": [ + "1", + "2", + "64" + ], + "component": "ChatSender", + "field_category": 2, + "field_name": "send", + "field_type": [], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "点击消息发送的回调方法", + "field_desc_en": null, + "field_required": 0, + "event_input": "(value:string, context: { e: MouseEvent | KeyboardEvent })", + "create_time": "2025-03-25 07:00:45", + "update_time": "2025-03-25 07:00:45", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Events", + "platform_framework_text": [ + "Vue(PC)", + "React(PC)", + "Miniprogram" + ], + "field_type_text": [] + }, + { + "id": 1742886073, + "platform_framework": [ + "1", + "2", + "64" + ], + "component": "ChatSender", + "field_category": 2, + "field_name": "stop", + "field_type": [], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "点击消息终止的回调方法", + "field_desc_en": null, + "field_required": 0, + "event_input": "(value:string, context: { e: MouseEvent })", + "create_time": "2025-03-25 07:01:13", + "update_time": "2025-03-25 07:01:13", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Events", + "platform_framework_text": [ + "Vue(PC)", + "React(PC)", + "Miniprogram" + ], + "field_type_text": [] + }, + { + "id": 1762419936, + "platform_framework": [ + "64" + ], + "component": "ChatSender", + "field_category": 2, + "field_name": "uploadClick", + "field_type": [], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "【实验】点击上传按钮时触发", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 09:05:36", + "update_time": "2025-11-06 09:05:36", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Events", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [] + }, + { + "id": 1762424283, + "platform_framework": [ + "64" + ], + "component": "ChatThinking", + "field_category": 1, + "field_name": "animation", + "field_type": [ + "1" + ], + "field_default_value": "moving", + "field_enum": "circle/moving/gradient", + "field_desc_zh": "内容区域最大高度,超出会自动滚动", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 10:18:03", + "update_time": "2025-11-06 10:18:03", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "String" + ] + }, + { + "id": 1762424304, + "platform_framework": [ + "64" + ], + "component": "ChatThinking", + "field_category": 1, + "field_name": "collapsed", + "field_type": [ + "4" + ], + "field_default_value": "false", + "field_enum": "", + "field_desc_zh": "是否折叠", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 10:18:24", + "update_time": "2025-11-06 10:18:24", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "Boolean" + ] + }, + { + "id": 1762423978, + "platform_framework": [ + "64" + ], + "component": "ChatThinking", + "field_category": 1, + "field_name": "content", + "field_type": [ + "8" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "思考内容对象", + "field_desc_en": null, + "field_required": 1, + "event_input": "", + "create_time": "2025-11-06 10:12:58", + "update_time": "2025-11-06 10:12:58", + "event_output": null, + "custom_field_type": "{ text?: string; title?: string }", + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "Object" + ] + }, + { + "id": 1762424182, + "platform_framework": [ + "64" + ], + "component": "ChatThinking", + "field_category": 1, + "field_name": "layout", + "field_type": [ + "1" + ], + "field_default_value": "block", + "field_enum": "block/border", + "field_desc_zh": "布局方式", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 10:16:22", + "update_time": "2025-11-06 10:16:22", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "String" + ] + }, + { + "id": 1762424258, + "platform_framework": [ + "64" + ], + "component": "ChatThinking", + "field_category": 1, + "field_name": "maxHeight", + "field_type": [ + "2" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "内容区域最大高度,超出会自动滚动", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2025-11-06 10:17:38", + "update_time": "2025-11-06 10:17:38", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "Number" + ] + }, + { + "id": 1762424242, + "platform_framework": [ + "64" + ], + "component": "ChatThinking", + "field_category": 1, + "field_name": "status", + "field_type": [ + "1" + ], + "field_default_value": "pending", + "field_enum": "complete/stop/error/pending", + "field_desc_zh": "思考状态", + "field_desc_en": null, + "field_required": 1, + "event_input": "", + "create_time": "2025-11-06 10:17:22", + "update_time": "2025-11-06 10:17:22", + "event_output": null, + "custom_field_type": "", + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "String" + ] + }, + { + "id": 1762424352, + "platform_framework": [ + "64" + ], + "component": "ChatThinking", + "field_category": 2, + "field_name": "collapsedChange", + "field_type": [], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "切换折叠面板时触发", + "field_desc_en": null, + "field_required": 0, + "event_input": "(value: Boolean)", + "create_time": "2025-11-06 10:19:12", + "update_time": "2025-11-06 10:19:12", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Events", + "platform_framework_text": [ + "Miniprogram" ], "field_type_text": [] }, diff --git a/packages/scripts/config/files-combine.js b/packages/scripts/config/files-combine.js index a06585ab..a937eae7 100644 --- a/packages/scripts/config/files-combine.js +++ b/packages/scripts/config/files-combine.js @@ -239,6 +239,7 @@ const MINIPROGRAM_COMPONENT_API_MD_MAP = { list: ['Swiper', 'SwiperNav'], includes: ['Miniprogram'], }, + Chat: [], }; // 输出 TS 类型文件时,哪些需要文件需要合并输出,数据内容为组件/插件名称 @@ -471,6 +472,7 @@ const MINIPROGRAM_TYPES_COMBINE_MAP = { list: ['Form', 'FormList', 'FormRule', 'FormErrorMessage'], includes: ['Miniprogram'], }, + Chat: [], }; exports.GLOBAL_COMPONENTS_CONFIG = GLOBAL_COMPONENTS_CONFIG; diff --git a/packages/scripts/map.json b/packages/scripts/map.json index 6d054345..461791da 100644 --- a/packages/scripts/map.json +++ b/packages/scripts/map.json @@ -291,6 +291,10 @@ "value": "Aside", "label": "布局-侧边栏" }, + { + "value": "Attachments", + "label": "文件附件" + }, { "value": "AutoComplete", "label": "自动填充" @@ -381,9 +385,13 @@ "value": "ChatAction", "label": "对话操作" }, + { + "value": "ChatActionbar", + "label": "对话操作" + }, { "value": "ChatContent", - "label": "对话内容" + "label": "对话正文" }, { "value": "ChatInput", @@ -393,17 +401,33 @@ "value": "ChatItem", "label": "对话单元" }, + { + "value": "ChatList", + "label": "对话列表" + }, { "value": "ChatLoading", "label": "对话加载" }, + { + "value": "ChatMarkdown", + "label": "Markdown内容" + }, + { + "value": "ChatMessage", + "label": "对话消息体" + }, { "value": "ChatReasoning", "label": "对话思考过程" }, { "value": "ChatSender", - "label": "对话输入框" + "label": "对话输入" + }, + { + "value": "ChatThinking", + "label": "思考过程" }, { "value": "Checkbox", diff --git a/packages/server/controllers/ComponentApi/const.ts b/packages/server/controllers/ComponentApi/const.ts index 929d8ea1..1e149aba 100644 --- a/packages/server/controllers/ComponentApi/const.ts +++ b/packages/server/controllers/ComponentApi/const.ts @@ -242,12 +242,18 @@ export const COMPONENTS_PC: Array = [ { value: 'Cascader', label: '级联选择' }, { value: 'Chat', label: '对话' }, { value: 'ChatAction', label: '对话操作' }, - { value: 'ChatContent', label: '对话内容' }, { value: 'ChatItem', label: '对话单元' }, { value: 'ChatInput', label: '对话输入框' }, - { value: 'ChatLoading', label: '对话加载' }, { value: 'ChatReasoning', label: '对话思考过程' }, - { value: 'ChatSender', label: '对话输入框' }, + { value: 'ChatList', label: '对话列表' }, + { value: 'ChatSender', label: '对话输入' }, + { value: 'ChatMessage', label: '对话消息体' }, + { value: 'ChatActionbar', label: '对话操作' }, + { value: 'ChatMarkdown', label: 'Markdown内容' }, + { value: 'ChatThinking', label: '思考过程' }, + { value: 'ChatLoading', label: '对话加载' }, + { value: 'Attachments', label: '文件附件' }, + { value: 'ChatContent', label: '对话正文' }, { value: 'ConfigProvider', label: '全局特性配置' }, { value: 'InputNumber', label: '数字输入框' }, { value: 'Progress', label: '进度条' },