diff --git a/db/TDesign.db b/db/TDesign.db index 4e3df8c47..aab5e2676 100644 Binary files a/db/TDesign.db and b/db/TDesign.db differ diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-record/README.en-US.md b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-record/README.en-US.md new file mode 100644 index 000000000..d8d318dc7 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-record/README.en-US.md @@ -0,0 +1,29 @@ +:: BASE_DOC :: + +## API + +### ChatRecord 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 +auto-send | Boolean | false | \- | N +bottom-height | Number | 0 | \- | N +duration | Number | 60000 | \- | N +lang | String | zh_CN | \- | N + +### ChatRecord Events + +name | params | description +-- | -- | -- +cancel | \- | \- +error | `(err: any)` | \- +recognize | `(detail: { voicePath: string, voiceText: string, duration: number })` | \- + +### ChatRecord Slots + +name | Description +-- | -- +speech-input | \- +speech-no-auth | \- diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-record/README.md b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-record/README.md new file mode 100644 index 000000000..a31320ea0 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-record/README.md @@ -0,0 +1,29 @@ +:: BASE_DOC :: + +## API + +### ChatRecord Props + +名称 | 类型 | 默认值 | 描述 | 必传 +-- | -- | -- | -- | -- +style | Object | - | 样式 | N +custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N +auto-send | Boolean | false | 是否自动发送(预留扩展) | N +bottom-height | Number | 0 | 底部高度,用于适配键盘弹出时的布局 | N +duration | Number | 60000 | 最大录音时长(ms) | N +lang | String | zh_CN | 识别语言(WechatSI 插件参数) | N + +### ChatRecord Events + +名称 | 参数 | 描述 +-- | -- | -- +cancel | \- | 取消录音时触发 +error | `(err: any)` | 录音识别错误时触发 +recognize | `(detail: { voicePath: string, voiceText: string, duration: number })` | 语音识别完成时触发 + +### ChatRecord Slots + +名称 | 描述 +-- | -- +speech-input | 语音输入按钮插槽,自定义语音输入按钮区域内容 +speech-no-auth | 语音授权按钮插槽,自定义语音授权按钮区域内容 diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-record/props.ts b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-record/props.ts new file mode 100644 index 000000000..58425049a --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-record/props.ts @@ -0,0 +1,31 @@ +/* eslint-disable */ + +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * */ + +import { TdChatRecordProps } from './type'; +const props: TdChatRecordProps = { + /** 是否自动发送(预留扩展) */ + autoSend: { + type: Boolean, + value: false, + }, + /** 底部高度,用于适配键盘弹出时的布局 */ + bottomHeight: { + type: Number, + value: 0, + }, + /** 最大录音时长(ms) */ + duration: { + type: Number, + value: 60000, + }, + /** 识别语言(WechatSI 插件参数) */ + lang: { + type: String, + value: 'zh_CN', + }, +}; + +export default props; diff --git a/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-record/type.ts b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-record/type.ts new file mode 100644 index 000000000..47b26435c --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/pro-components/chat/chat-record/type.ts @@ -0,0 +1,40 @@ +/* eslint-disable */ + +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * */ + +export interface TdChatRecordProps { + /** + * 是否自动发送(预留扩展) + * @default false + */ + autoSend?: { + type: BooleanConstructor; + value?: boolean; + }; + /** + * 底部高度,用于适配键盘弹出时的布局 + * @default 0 + */ + bottomHeight?: { + type: NumberConstructor; + value?: number; + }; + /** + * 最大录音时长(ms) + * @default 60000 + */ + duration?: { + type: NumberConstructor; + value?: number; + }; + /** + * 识别语言(WechatSI 插件参数) + * @default zh_CN + */ + lang?: { + type: StringConstructor; + value?: string; + }; +} 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 index 51a417f1c..6ca38718f 100644 --- 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 @@ -9,6 +9,7 @@ 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 +allow-speech | Boolean | false | `1.16.0` | 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/pro-components/chat/chat-sender/type.ts) | N auto-rise-with-keyboard | Boolean | false | \- | N disabled | Boolean | false | \- | N 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 index 6517a5248..01e3c3587 100644 --- 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 @@ -9,6 +9,7 @@ style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N adjust-position | Boolean | false | 默认键盘弹起不会把页面顶起来 | N +allow-speech | Boolean | false | `1.16.0`。是否允许语音输入。为 true 时显示语音切换按钮,语音输入 UI 由开发者通过 speech 插槽自行提供 | N attachments-props | Object | - | 附件列表属性。TS 类型:`AttachmentsProps`,[Attachments API Documents](./attachments?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/pro-components/chat/chat-sender/type.ts) | N auto-rise-with-keyboard | Boolean | false | 键盘弹起时自动顶起来输入框 | N disabled | Boolean | false | 是否禁用输入框 | N 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 index a07506260..073718e28 100644 --- 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 @@ -11,6 +11,11 @@ const props: TdChatSenderProps = { type: Boolean, value: false, }, + /** 是否允许语音输入。为 true 时显示语音切换按钮,语音输入 UI 由开发者通过 speech 插槽自行提供 */ + allowSpeech: { + type: Boolean, + value: false, + }, /** 附件列表属性 */ attachmentsProps: { type: Object, 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 index 1381c1911..c47619a63 100644 --- 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 @@ -15,6 +15,14 @@ export interface TdChatSenderProps { type: BooleanConstructor; value?: boolean; }; + /** + * 是否允许语音输入。为 true 时显示语音切换按钮,语音输入 UI 由开发者通过 speech 插槽自行提供 + * @default false + */ + allowSpeech?: { + type: BooleanConstructor; + value?: boolean; + }; /** * 附件列表属性 */ diff --git a/packages/products/tdesign-miniprogram/packages/uniapp-pro-components/chat/chat-record/README.en-US.md b/packages/products/tdesign-miniprogram/packages/uniapp-pro-components/chat/chat-record/README.en-US.md new file mode 100644 index 000000000..c4c2efd48 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/uniapp-pro-components/chat/chat-record/README.en-US.md @@ -0,0 +1,28 @@ +:: BASE_DOC :: + +## API + +### ChatRecord Props + +name | type | default | description | required +-- | -- | -- | -- | -- +custom-style | Object | - | CSS(Cascading Style Sheets) | N +auto-send | Boolean | false | \- | N +bottom-height | Number | 0 | \- | N +duration | Number | 60000 | \- | N +lang | String | zh_CN | \- | N + +### ChatRecord Events + +name | params | description +-- | -- | -- +cancel | \- | \- +error | `(err: any)` | \- +recognize | `(context: { voicePath: string, voiceText: string, duration: number })` | \- + +### ChatRecord Slots + +name | Description +-- | -- +speech-input | \- +speech-no-auth | \- diff --git a/packages/products/tdesign-miniprogram/packages/uniapp-pro-components/chat/chat-record/README.md b/packages/products/tdesign-miniprogram/packages/uniapp-pro-components/chat/chat-record/README.md new file mode 100644 index 000000000..8d2ed67fb --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/uniapp-pro-components/chat/chat-record/README.md @@ -0,0 +1,28 @@ +:: BASE_DOC :: + +## API + +### ChatRecord Props + +名称 | 类型 | 默认值 | 描述 | 必传 +-- | -- | -- | -- | -- +custom-style | Object | - | 自定义样式 | N +auto-send | Boolean | false | 是否自动发送(预留扩展) | N +bottom-height | Number | 0 | 底部高度,用于适配键盘弹出时的布局 | N +duration | Number | 60000 | 最大录音时长(ms) | N +lang | String | zh_CN | 识别语言(WechatSI 插件参数) | N + +### ChatRecord Events + +名称 | 参数 | 描述 +-- | -- | -- +cancel | \- | 取消录音时触发 +error | `(err: any)` | 录音识别错误时触发 +recognize | `(context: { voicePath: string, voiceText: string, duration: number })` | 语音识别完成时触发 + +### ChatRecord Slots + +名称 | 描述 +-- | -- +speech-input | 语音输入按钮插槽,自定义语音输入按钮区域内容 +speech-no-auth | 语音授权按钮插槽,自定义语音授权按钮区域内容 diff --git a/packages/products/tdesign-miniprogram/packages/uniapp-pro-components/chat/chat-record/props.ts b/packages/products/tdesign-miniprogram/packages/uniapp-pro-components/chat/chat-record/props.ts new file mode 100644 index 000000000..009319f63 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/uniapp-pro-components/chat/chat-record/props.ts @@ -0,0 +1,40 @@ +/* eslint-disable */ + +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * */ + +export default { + /** 是否自动发送(预留扩展) */ + autoSend: Boolean, + /** 底部高度,用于适配键盘弹出时的布局 */ + bottomHeight: { + type: Number, + default: 0, + }, + /** 最大录音时长(ms) */ + duration: { + type: Number, + default: 60000, + }, + /** 识别语言(WechatSI 插件参数) */ + lang: { + type: String, + default: 'zh_CN', + }, + /** 取消录音时触发 */ + onCancel: { + type: Function, + default: () => ({}), + }, + /** 录音识别错误时触发 */ + onError: { + type: Function, + default: () => ({}), + }, + /** 语音识别完成时触发 */ + onRecognize: { + type: Function, + default: () => ({}), + }, +}; diff --git a/packages/products/tdesign-miniprogram/packages/uniapp-pro-components/chat/chat-record/type.ts b/packages/products/tdesign-miniprogram/packages/uniapp-pro-components/chat/chat-record/type.ts new file mode 100644 index 000000000..9d5341496 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/uniapp-pro-components/chat/chat-record/type.ts @@ -0,0 +1,40 @@ +/* eslint-disable */ + +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * */ + +export interface TdChatRecordProps { + /** + * 是否自动发送(预留扩展) + * @default false + */ + autoSend?: boolean; + /** + * 底部高度,用于适配键盘弹出时的布局 + * @default 0 + */ + bottomHeight?: number; + /** + * 最大录音时长(ms) + * @default 60000 + */ + duration?: number; + /** + * 识别语言(WechatSI 插件参数) + * @default zh_CN + */ + lang?: string; + /** + * 取消录音时触发 + */ + onCancel?: () => void; + /** + * 录音识别错误时触发 + */ + onError?: (err: any) => void; + /** + * 语音识别完成时触发 + */ + onRecognize?: (context: { voicePath: string; voiceText: string; duration: number }) => void; +} diff --git a/packages/products/tdesign-miniprogram/packages/uniapp-pro-components/chat/chat-sender/README.en-US.md b/packages/products/tdesign-miniprogram/packages/uniapp-pro-components/chat/chat-sender/README.en-US.md index c02b5d628..43d47988a 100644 --- a/packages/products/tdesign-miniprogram/packages/uniapp-pro-components/chat/chat-sender/README.en-US.md +++ b/packages/products/tdesign-miniprogram/packages/uniapp-pro-components/chat/chat-sender/README.en-US.md @@ -8,6 +8,7 @@ name | type | default | description | required -- | -- | -- | -- | -- custom-style | Object | - | CSS(Cascading Style Sheets) | N adjust-position | Boolean | false | \- | N +allow-speech | Boolean | false | `0.11.0` | 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/uniapp-pro-components/chat/chat-sender/type.ts) | N auto-rise-with-keyboard | Boolean | false | \- | N disabled | Boolean | false | \- | N diff --git a/packages/products/tdesign-miniprogram/packages/uniapp-pro-components/chat/chat-sender/README.md b/packages/products/tdesign-miniprogram/packages/uniapp-pro-components/chat/chat-sender/README.md index ffb9a8add..294b6e682 100644 --- a/packages/products/tdesign-miniprogram/packages/uniapp-pro-components/chat/chat-sender/README.md +++ b/packages/products/tdesign-miniprogram/packages/uniapp-pro-components/chat/chat-sender/README.md @@ -8,6 +8,7 @@ -- | -- | -- | -- | -- custom-style | Object | - | 自定义样式 | N adjust-position | Boolean | false | 默认键盘弹起不会把页面顶起来 | N +allow-speech | Boolean | false | `0.11.0`。是否允许语音输入。为 true 时显示语音切换按钮,语音输入 UI 由开发者通过 speech 插槽自行提供 | N attachments-props | Object | - | 附件列表属性。TS 类型:`AttachmentsProps`,[Attachments API Documents](./attachments?tab=api)。[详细类型定义](https://github.com/tencent/tdesign-miniprogram/blob/develop/packages/uniapp-pro-components/chat/chat-sender/type.ts) | N auto-rise-with-keyboard | Boolean | false | 键盘弹起时自动顶起来输入框 | N disabled | Boolean | false | 是否禁用输入框 | N diff --git a/packages/products/tdesign-miniprogram/packages/uniapp-pro-components/chat/chat-sender/props.ts b/packages/products/tdesign-miniprogram/packages/uniapp-pro-components/chat/chat-sender/props.ts index d4376092b..8625a58ed 100644 --- a/packages/products/tdesign-miniprogram/packages/uniapp-pro-components/chat/chat-sender/props.ts +++ b/packages/products/tdesign-miniprogram/packages/uniapp-pro-components/chat/chat-sender/props.ts @@ -8,6 +8,8 @@ import type { TdChatSenderProps } from './type'; export default { /** 默认键盘弹起不会把页面顶起来 */ adjustPosition: Boolean, + /** 是否允许语音输入。为 true 时显示语音切换按钮,语音输入 UI 由开发者通过 speech 插槽自行提供 */ + allowSpeech: Boolean, /** 附件列表属性 */ attachmentsProps: { type: Object, diff --git a/packages/products/tdesign-miniprogram/packages/uniapp-pro-components/chat/chat-sender/type.ts b/packages/products/tdesign-miniprogram/packages/uniapp-pro-components/chat/chat-sender/type.ts index 33024ae3a..58de5050e 100644 --- a/packages/products/tdesign-miniprogram/packages/uniapp-pro-components/chat/chat-sender/type.ts +++ b/packages/products/tdesign-miniprogram/packages/uniapp-pro-components/chat/chat-sender/type.ts @@ -12,6 +12,11 @@ export interface TdChatSenderProps { * @default false */ adjustPosition?: boolean; + /** + * 是否允许语音输入。为 true 时显示语音切换按钮,语音输入 UI 由开发者通过 speech 插槽自行提供 + * @default false + */ + allowSpeech?: boolean; /** * 附件列表属性 */ diff --git a/packages/scripts/api.json b/packages/scripts/api.json index 9ebfa1415..65082688f 100644 --- a/packages/scripts/api.json +++ b/packages/scripts/api.json @@ -30471,6 +30471,337 @@ "TNode" ] }, + { + "id": 1783911884, + "platform_framework": [ + "64", + "128" + ], + "component": "ChatRecord", + "field_category": 1, + "field_name": "autoSend", + "field_type": [ + "4" + ], + "field_default_value": "false", + "field_enum": "", + "field_desc_zh": "是否自动发送(预留扩展) ", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2026-07-13 03:04:44", + "update_time": "2026-07-13 03:04: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": [ + "Miniprogram", + "UniApp" + ], + "field_type_text": [ + "Boolean" + ] + }, + { + "id": 1783911857, + "platform_framework": [ + "64", + "128" + ], + "component": "ChatRecord", + "field_category": 1, + "field_name": "bottomHeight", + "field_type": [ + "2" + ], + "field_default_value": "0", + "field_enum": "", + "field_desc_zh": "底部高度,用于适配键盘弹出时的布局", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2026-07-13 03:04:17", + "update_time": "2026-07-13 03:04:17", + "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", + "UniApp" + ], + "field_type_text": [ + "Number" + ] + }, + { + "id": 1783911836, + "platform_framework": [ + "64", + "128" + ], + "component": "ChatRecord", + "field_category": 1, + "field_name": "duration", + "field_type": [ + "2" + ], + "field_default_value": "60000", + "field_enum": "", + "field_desc_zh": "最大录音时长(ms)", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2026-07-13 03:03:56", + "update_time": "2026-07-13 03:03: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": "Props", + "platform_framework_text": [ + "Miniprogram", + "UniApp" + ], + "field_type_text": [ + "Number" + ] + }, + { + "id": 1783911788, + "platform_framework": [ + "64", + "128" + ], + "component": "ChatRecord", + "field_category": 1, + "field_name": "lang", + "field_type": [ + "1" + ], + "field_default_value": "zh_CN", + "field_enum": "", + "field_desc_zh": "识别语言(WechatSI 插件参数)", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2026-07-13 03:03:08", + "update_time": "2026-07-13 03:03:08", + "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", + "UniApp" + ], + "field_type_text": [ + "String" + ] + }, + { + "id": 1783912267, + "platform_framework": [ + "64", + "128" + ], + "component": "ChatRecord", + "field_category": 2, + "field_name": "cancel", + "field_type": [], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "取消录音时触发", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2026-07-13 03:11:07", + "update_time": "2026-07-13 03:11: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": "Events", + "platform_framework_text": [ + "Miniprogram", + "UniApp" + ], + "field_type_text": [] + }, + { + "id": 1783912253, + "platform_framework": [ + "64", + "128" + ], + "component": "ChatRecord", + "field_category": 2, + "field_name": "error", + "field_type": [], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "录音识别错误时触发", + "field_desc_en": null, + "field_required": 0, + "event_input": "(err: any)", + "create_time": "2026-07-13 03:10:53", + "update_time": "2026-07-13 03:10:53", + "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", + "UniApp" + ], + "field_type_text": [] + }, + { + "id": 1783912192, + "platform_framework": [ + "64", + "128" + ], + "component": "ChatRecord", + "field_category": 2, + "field_name": "recognize", + "field_type": [], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "语音识别完成时触发", + "field_desc_en": null, + "field_required": 0, + "event_input": "(context: { voicePath: string, voiceText: string, duration: number })", + "create_time": "2026-07-13 03:09:52", + "update_time": "2026-07-13 03:09:52", + "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", + "UniApp" + ], + "field_type_text": [] + }, + { + "id": 1783912022, + "platform_framework": [ + "64", + "128" + ], + "component": "ChatRecord", + "field_category": 512, + "field_name": "speech-input", + "field_type": [], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "语音输入按钮插槽,自定义语音输入按钮区域内容", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2026-07-13 03:07:02", + "update_time": "2026-07-13 03:07: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": "Slots", + "platform_framework_text": [ + "Miniprogram", + "UniApp" + ], + "field_type_text": [] + }, + { + "id": 1783912078, + "platform_framework": [ + "64", + "128" + ], + "component": "ChatRecord", + "field_category": 512, + "field_name": "speech-no-auth", + "field_type": [], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "语音授权按钮插槽,自定义语音授权按钮区域内容", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2026-07-13 03:07:58", + "update_time": "2026-07-13 03:07: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": "Slots", + "platform_framework_text": [ + "Miniprogram", + "UniApp" + ], + "field_type_text": [] + }, { "id": 1762419565, "platform_framework": [ @@ -30510,6 +30841,45 @@ "Boolean" ] }, + { + "id": 1783911226, + "platform_framework": [ + "64", + "128" + ], + "component": "ChatSender", + "field_category": 1, + "field_name": "allowSpeech", + "field_type": [ + "4" + ], + "field_default_value": "false", + "field_enum": "", + "field_desc_zh": "是否允许语音输入。为 true 时显示语音切换按钮,语音输入 UI 由开发者通过 speech 插槽自行提供", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2026-07-13 02:53:46", + "update_time": "2026-07-13 02:53:46", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "{\n\"Miniprogram\": \"1.16.0\",\n\"UniApp\": \"0.11.0\"\n}", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram", + "UniApp" + ], + "field_type_text": [ + "Boolean" + ] + }, { "id": 1762419289, "platform_framework": [ diff --git a/packages/scripts/map.json b/packages/scripts/map.json index c77270225..70eabcf1d 100644 --- a/packages/scripts/map.json +++ b/packages/scripts/map.json @@ -429,6 +429,10 @@ "value": "ChatReasoning", "label": "对话思考过程" }, + { + "value": "ChatRecord", + "label": "语音输入" + }, { "value": "ChatSender", "label": "对话输入" diff --git a/packages/server/controllers/ComponentApi/const.ts b/packages/server/controllers/ComponentApi/const.ts index 34ebbcf89..df0d48d17 100644 --- a/packages/server/controllers/ComponentApi/const.ts +++ b/packages/server/controllers/ComponentApi/const.ts @@ -40,54 +40,54 @@ const API_CATEGORY_CSS_VAR_API = 256; const API_CATEGORY_SLOT_API = 512; export const API_CATEGORY: MapOptions = { - [API_CATEGORY_PROPS]: 'Props', - [API_CATEGORY_EVENTS]: 'Events', - [API_CATEGORY_FUNCTIONS]: 'Functions', - // [API_CATEGORY_PLUGIN_API]: 'PluginAPI', - [API_CATEGORY_EXTENDS_API]: 'Extends', - [API_CATEGORY_RETURN_API]: 'Return', - [API_CATEGORY_T_API]: '', - [API_CATEGORY_CLASS_API]: 'External Classes', - [API_CATEGORY_CSS_VAR_API]: 'CSS Variables', - [API_CATEGORY_SLOT_API]: 'Slots', + [API_CATEGORY_PROPS]: 'Props', + [API_CATEGORY_EVENTS]: 'Events', + [API_CATEGORY_FUNCTIONS]: 'Functions', + // [API_CATEGORY_PLUGIN_API]: 'PluginAPI', + [API_CATEGORY_EXTENDS_API]: 'Extends', + [API_CATEGORY_RETURN_API]: 'Return', + [API_CATEGORY_T_API]: '', + [API_CATEGORY_CLASS_API]: 'External Classes', + [API_CATEGORY_CSS_VAR_API]: 'CSS Variables', + [API_CATEGORY_SLOT_API]: 'Slots', }; export const PLATFORM_MAP: MapOptions = { - [PC]: 'PC', - [MOBILE]: 'Mobile', - [MINIPROGRAM]: 'MP', + [PC]: 'PC', + [MOBILE]: 'Mobile', + [MINIPROGRAM]: 'MP', }; export const FRAMEWORK_MAP: MapOptions = { - [VUE]: 'Vue', - [REACT]: 'React', - [MINIPROGRAM]: 'MP', + [VUE]: 'Vue', + [REACT]: 'React', + [MINIPROGRAM]: 'MP', }; export const FIELD_TYPE_MAP: MapOptions = { - [STRING]: 'String', - [NUMBER]: 'Number', - [BOOLEAN]: 'Boolean', - [OBJECT]: 'Object', - [ARRAY]: 'Array', - [FUNCTION]: 'Function', - [TNODE]: 'TNode', - [Date]: 'Date', - [FILE]: 'File', - [ANY]: 'any', - [BIGINT]: 'BigInt', + [STRING]: 'String', + [NUMBER]: 'Number', + [BOOLEAN]: 'Boolean', + [OBJECT]: 'Object', + [ARRAY]: 'Array', + [FUNCTION]: 'Function', + [TNODE]: 'TNode', + [Date]: 'Date', + [FILE]: 'File', + [ANY]: 'any', + [BIGINT]: 'BigInt', }; export const PLATFORM_FRAMEWORK: MapOptions = { - [P_VUE_PC]: 'Vue(PC)', - [P_REACT_PC]: 'React(PC)', - [P_VUE_MOBILE]: 'Vue(Mobile)', - [P_REACT_MOBILE]: 'React(Mobile)', - // Angular 暂未有开发计划 - // [P_ANGULAR_PC]: 'Angular(PC)', - // [P_ANGULAR_MOBILE]: 'Angular(Mobile)', - [P_MINIPROGRAM]: 'Miniprogram', - [P_UNI_APP]: 'UniApp', + [P_VUE_PC]: 'Vue(PC)', + [P_REACT_PC]: 'React(PC)', + [P_VUE_MOBILE]: 'Vue(Mobile)', + [P_REACT_MOBILE]: 'React(Mobile)', + // Angular 暂未有开发计划 + // [P_ANGULAR_PC]: 'Angular(PC)', + // [P_ANGULAR_MOBILE]: 'Angular(Mobile)', + [P_MINIPROGRAM]: 'Miniprogram', + [P_UNI_APP]: 'UniApp', }; /** @@ -96,375 +96,376 @@ export const PLATFORM_FRAMEWORK: MapOptions = { * FormRule 纯TS类型,非组件 */ export const COMPONENTS_PC: Array = [ - { value: 'Button', label: '按钮' }, - { value: 'Link', label: '链接' }, - { value: 'Input', label: '输入框' }, - { value: 'InputGroup', label: '输入框组' }, - { value: 'RangeInput', label: '范围输入框' }, - { value: 'RangeInputPopup', label: '范围输入框触发器' }, - { value: 'TagInput', label: '标签输入框' }, - { value: 'SelectInput', label: '筛选器输入框' }, - { value: 'Pagination', label: '分页' }, - { value: 'Dialog', label: '对话框' }, - { value: 'DialogOptions', label: '对话框插件参数', type: 'TS' }, - { value: 'DialogInstance', label: '对话框插件实例', type: 'TS' }, - { value: '$Dialog', label: '对话框插件', type: 'plugin' }, - { value: '$Dialog.confirm', label: '对话框插件', type: 'plugin' }, - { value: '$Dialog.alert', label: '对话框插件', type: 'plugin' }, - { value: 'Message', label: '全局提醒' }, - { value: 'MessageOptions', label: '全局提醒数据类型', type: 'TS' }, - { value: '$Message', label: '全局提醒插件', type: 'plugin' }, - { value: '$Message.close', label: '关闭全局提醒', type: 'plugin' }, - { value: '$Message.closeAll', label: '关闭所有全局提醒', type: 'plugin' }, - { value: '$Message.info', label: '全局提醒插件', type: 'plugin' }, - { value: '$Message.success', label: '全局提醒插件', type: 'plugin' }, - { value: '$Message.warning', label: '全局提醒插件', type: 'plugin' }, - { value: '$Message.error', label: '全局提醒插件', type: 'plugin' }, - { value: '$Message.question', label: '全局提醒插件', type: 'plugin' }, - { value: '$Message.loading', label: '全局提醒插件', type: 'plugin' }, - { value: '$Message.config', label: '全局提醒插件', type: 'plugin' }, - { value: '$Popup', label: '全局气泡框插件', type: 'plugin' }, - { value: 'Icon', label: '图标' }, - { value: 'IconSVG', label: '图标(IconSVG)' }, - { value: 'IconFont', label: '图标(IconFont)' }, - { value: 'Dropdown', label: '下拉菜单' }, - { value: 'DropdownItem', label: '下拉菜单选项' }, - { value: 'Popup', label: '气泡框' }, - { value: 'Popconfirm', label: '气泡确认框' }, - { value: 'Switch', label: '开关' }, - { value: 'Steps', label: '步骤条' }, - { value: 'StepItem', label: '步骤' }, - { value: 'Checkbox', label: '多选框' }, - { value: 'CheckboxGroup', label: '多选框组' }, - { value: 'Radio', label: '单选框' }, - { value: 'RadioGroup', label: '单选框组' }, - { value: 'Table', label: '表格', type: 'TS' }, - { value: 'TableCol', label: '表格列', type: 'TS' }, - { value: 'TableEditableCellConfig', label: '表格可编辑列配置', type: 'TS' }, - { value: 'TableTreeConfig', label: '表格树形结构配置', type: 'TS' }, - { value: 'TableColumnFilter', label: '表格列过滤条件配置', type: 'TS' }, - { - value: 'TableColumnController', - label: '表格自定义显示列配置', - type: 'TS', - }, - { value: 'InfinityScroll', label: '无限滚动配置', type: 'TS' }, - { value: 'TScroll', label: '滚动配置', type: 'TS' }, - { value: 'BaseTable', label: '基础表格' }, - { value: 'BaseTableCol', label: '基础表格列', type: 'TS' }, - { value: 'PrimaryTable', label: '主表格' }, - { value: 'PrimaryTableCol', label: '主表格列', type: 'TS' }, - { value: 'EnhancedTable', label: '增强表格' }, - { value: 'EnhancedTableCol', label: '增强表格列', type: 'TS' }, - { value: 'TableRowState', label: '表格行数据状态', type: 'TS' }, - { value: 'Select', label: '选择器' }, - { value: 'Option', label: '选择器选项' }, - { value: 'OptionGroup', label: '选择器选项组' }, - { value: 'Tag', label: '标签' }, - { value: 'CheckTag', label: '可选标签' }, - { value: 'CheckTagGroup', label: '可选标签组' }, - { value: 'Breadcrumb', label: '面包屑' }, - { value: 'BreadcrumbItem', label: '面包屑项' }, - { value: 'Menu', label: '侧边导航菜单' }, - { value: 'HeadMenu', label: '顶部导航菜单' }, - { value: 'Submenu', label: '二级导航' }, - { value: 'MenuItem', label: '导航菜单选项' }, - { value: 'MenuGroup', label: '导航菜单组' }, - { value: 'Alert', label: '警告提示' }, - // { value: 'AlertSwiper', label: '警告提示轮播' }, - { value: 'List', label: '列表' }, - { value: 'Upload', label: '上传' }, - { value: 'UploadFile', label: '上传文件类型', type: 'TS' }, - { value: 'UploadRequestOptions', label: '文件上传参数', type: 'TS' }, - { value: 'Notification', label: '消息通知' }, - { value: 'NotificationOptions', label: '全局提醒数据类型', type: 'TS' }, - { value: '$Notification', label: '消息通知插件', type: 'plugin' }, - { value: '$Notification.close', label: '关闭消息通知', type: 'plugin' }, - { - value: '$Notification.closeAll', - label: '关闭所有消息通知', - type: 'plugin', - }, - { value: '$Notification.info', label: '消息通知插件', type: 'plugin' }, - { value: '$Notification.success', label: '消息通知插件', type: 'plugin' }, - { value: '$Notification.warning', label: '消息通知插件', type: 'plugin' }, - { value: '$Notification.error', label: '消息通知插件', type: 'plugin' }, - { value: '$Notification.config', label: '消息通知插件', type: 'plugin' }, - { value: 'Search', label: '搜索' }, - { value: 'Tabs', label: '选项卡' }, - { value: 'TabPanel', label: '选项卡面板' }, - { value: 'Layout', label: '布局' }, - { value: 'Header', label: '布局-头部' }, - { value: 'Aside', label: '布局-侧边栏' }, - { value: 'Content', label: '布局-内容' }, - { value: 'Footer', label: '布局-底部内容' }, - { value: 'Grid', label: '栅格' }, - { value: 'Row', label: '栅格-横向' }, - { value: 'Col', label: '栅格-纵向' }, - { value: 'Divider', label: '分割线' }, - { value: 'Form', label: '表单' }, - { - value: 'FormInstance', - label: '表单示例', - type: 'TS', - framework: ['React(PC)', 'React(Mobile)'], - }, - { value: 'FormItem', label: '表单元素' }, - { value: 'FormList', label: '动态表单元素' }, - { value: 'FormRule', label: '表单校验规则', type: 'TS' }, - { value: 'FormErrorMessage', label: '表单校验规则', type: 'TS' }, - { value: 'Tree', label: '树' }, - { value: 'TreeNodeState', label: '树节点', type: 'TS' }, - { value: 'TreeNodeModel', label: '树节点类', type: 'TS' }, - { value: 'Tooltip', label: '文字提示' }, - { value: 'TooltipLite', label: '文字提示简版' }, - { value: 'Loading', label: '加载中' }, - { value: '$Loading', label: '加载中插件', type: 'plugin' }, - { value: 'Badge', label: '徽标数' }, - { value: 'DatePicker', label: '日期选择器' }, - { value: 'DateRangePicker', label: '日期范围选择器' }, - { value: 'DatePickerPanel', label: '日期选择器面板' }, - { value: 'DateRangePickerPanel', label: '日期范围选择器面板' }, - { value: 'Timeline', label: '时间轴' }, - { value: 'TimelineItem', label: '时间轴' }, - { value: 'TimePicker', label: '时间选择器' }, - { value: 'TimeRangePicker', label: '时间范围选择器' }, - { value: 'TimePickerPanel', label: '时间选择器面板' }, - { value: 'TimeRangePickerPanel', label: '时间范围选择器面板' }, - { value: 'Transfer', label: '穿梭框' }, - { value: 'TreeSelect', label: '树选择' }, - { value: 'Drawer', label: '模态抽屉' }, - { value: 'DrawerOptions', label: '模态抽屉插件参数', type: 'TS' }, - { value: 'DrawerInstance', label: '对话框插件实例', type: 'TS' }, - { value: '$Drawer', label: '对话框插件', type: 'plugin' }, - { value: 'Anchor', label: '锚点' }, - { value: 'AnchorItem', label: '锚点项' }, - { value: 'AnchorTarget', label: '锚点目标' }, - { value: 'Calendar', label: '日历' }, - { value: 'CalendarController', label: '日历控制器', type: 'TS' }, - { value: 'CalendarCell', label: '日历项参数', type: 'TS' }, - { value: 'Cascader', label: '级联选择' }, - { value: 'Chat', label: '对话' }, - { value: 'ChatAction', label: '对话操作' }, - { value: 'ChatItem', label: '对话单元' }, - { value: 'ChatInput', label: '对话输入框' }, - { value: 'ChatReasoning', 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: '进度条' }, - { value: 'Slider', label: '滑块' }, - { value: 'Avatar', label: '头像' }, - { value: 'AvatarGroup', label: '头像组' }, - { value: 'Carousel', label: '走马灯' }, - { value: 'Typography', label: '排版' }, - { value: 'TypographyEllipsis', label: '排版省略配置', type: 'TS' }, - { value: 'TypographyCopyable', label: '排版复制配置', type: 'TS' }, - { value: 'Space', label: '间距' }, - { value: 'Swiper', label: '轮播' }, - { value: 'SwiperItem', label: '轮播项' }, - { value: 'SwiperNavigation', label: '轮播导航配置', type: 'TS' }, - { value: 'StepLoading', label: '分步加载' }, - { value: 'StickyTool', label: '侧边固钉' }, - { value: 'StickyItem', label: '侧边固钉项' }, - { value: 'Affix', label: '固钉' }, - { value: 'PageHeader', label: '页头' }, - { value: 'AutoComplete', label: '自动填充' }, - { value: 'Mentions', label: '提及' }, - { value: 'Rate', label: '评分' }, - { value: 'Comment', label: '评论' }, - { value: 'Collapse', label: '折叠' }, - { value: 'CollapsePanel', label: '折叠面板' }, - { value: 'Card', label: '卡片' }, - { value: 'Guide', label: '引导' }, - { value: 'GuideStep', label: '引导步骤', type: 'TS' }, - { value: 'Descriptions', label: '描述列表' }, - { value: 'DescriptionsItem', label: '描述项' }, - { value: 'Empty', label: '空状态' }, - { value: 'Statistic', label: '统计数值' }, - { value: 'Result', label: '结果' }, - { value: 'Skeleton', label: '骨架屏' }, - { value: 'Watermark', label: '水印' }, - { value: 'Typography', label: '排版' }, - { value: 'Text', label: '文本' }, - { value: 'Title', label: '标题' }, - { value: 'Paragraph', label: '段落' }, - { value: 'Anchor', label: '锚点' }, - { value: 'BackTop', label: '回到顶部' }, - { value: 'Container', label: '布局容器' }, - { value: 'ColorPicker', label: '颜色选择器' }, - { value: 'ColorPickerPanel', label: '颜色选择器面板' }, - { value: 'InputAdornment', label: '输入装饰器' }, - { value: 'ConfigProvider', label: '全局配置', type: 'TS' }, - { - value: 'GlobalConfigProvider', - label: '全局配置(是 ConfigProvider 的别名)', - type: 'TS', - }, - { value: 'PaginationConfig', label: '分页全局配置', type: 'TS' }, - { value: 'InputConfig', label: '输入框全局配置', type: 'TS' }, - { value: 'CalendarConfig', label: '日历全局配置', type: 'TS' }, - { value: 'CascaderConfig', label: '级联选择全局配置', type: 'TS' }, - { value: 'ColorPickerConfig', label: '颜色选择器全局配置', type: 'TS' }, - { value: 'TransferConfig', label: '穿梭框全局配置', type: 'TS' }, - { value: 'TimePickerConfig', label: '时间选择器全局配置', type: 'TS' }, - { value: 'DatePickerConfig', label: '日期选择器全局配置', type: 'TS' }, - { value: 'DialogConfig', label: '对话框全局配置', type: 'TS' }, - { value: 'DrawerConfig', label: '抽屉全局配置', type: 'TS' }, - { value: 'PopconfirmConfig', label: '气泡确认框全局配置', type: 'TS' }, - { value: 'TableConfig', label: '表格全局配置', type: 'TS' }, - { value: 'SelectConfig', label: '选择器全局配置', type: 'TS' }, - { value: 'TreeConfig', label: '树全局配置', type: 'TS' }, - { value: 'TreeSelectConfig', label: '树选择全局配置', type: 'TS' }, - { value: 'UploadConfig', label: '上传组件全局配置', type: 'TS' }, - { value: 'UploadConfigDragger', label: '上传组件全局拖拽配置', type: 'TS' }, - { - value: 'UploadConfigProgress', - label: '上传组件进度全局配置', - type: 'TS', - }, - { - value: 'UploadConfigFileList', - label: '上传组件文件列表全局配置', - type: 'TS', - }, - { - value: 'UploadConfigImage', - label: '上传组件图片风格全局配置', - type: 'TS', - }, - { - value: 'UploadConfigFile', - label: '上传组件文件风格全局配置', - type: 'TS', - }, - { value: 'ListConfig', label: '列表全局配置', type: 'TS' }, - { value: 'LoadingConfig', label: '加载中全局配置', type: 'TS' }, - { value: 'FormConfig', label: '表单全局配置', type: 'TS' }, - { value: 'TagConfig', label: '标签全局配置', type: 'TS' }, - { value: 'StepsConfig', label: '步骤条全局配置', type: 'TS' }, - { value: 'AlertConfig', label: '警告提醒全局配置', type: 'TS' }, - { value: 'DescriptionsConfig', label: '描述全局配置', type: 'TS' }, - { value: 'MessageConfig', label: '消息全局配置', type: 'TS' }, - { value: 'GuideConfig', label: '引导全局配置', type: 'TS' }, - { value: 'AnchorConfig', label: '锚点全局配置', type: 'TS' }, - { value: 'ImageConfig', label: '图片全局配置', type: 'TS' }, - { value: 'ImageViewerConfig', label: '图片全局配置', type: 'TS' }, - { value: 'RateConfig', label: '评分全局配置', type: 'TS' }, - { value: 'EmptyConfig', label: '空状态全局配置', type: 'TS' }, - { value: 'ActionSheetItem', label: '动作面板项的配置', type: 'TS' }, - { value: 'WatermarkText', label: '水印文字配置', type: 'TS' }, - { value: 'WatermarkImage', label: '水印图片配置', type: 'TS' }, - { value: 'TypographyConfig', label: '排版全局配置', type: 'TS' }, - { value: 'AutoCompleteConfig', label: '自动填充全局配置', type: 'TS' }, - { value: 'QRCode', label: '二维码' }, - { value: 'QRCodeConfig', label: '二维码全局配置', type: 'TS' }, + { value: 'Button', label: '按钮' }, + { value: 'Link', label: '链接' }, + { value: 'Input', label: '输入框' }, + { value: 'InputGroup', label: '输入框组' }, + { value: 'RangeInput', label: '范围输入框' }, + { value: 'RangeInputPopup', label: '范围输入框触发器' }, + { value: 'TagInput', label: '标签输入框' }, + { value: 'SelectInput', label: '筛选器输入框' }, + { value: 'Pagination', label: '分页' }, + { value: 'Dialog', label: '对话框' }, + { value: 'DialogOptions', label: '对话框插件参数', type: 'TS' }, + { value: 'DialogInstance', label: '对话框插件实例', type: 'TS' }, + { value: '$Dialog', label: '对话框插件', type: 'plugin' }, + { value: '$Dialog.confirm', label: '对话框插件', type: 'plugin' }, + { value: '$Dialog.alert', label: '对话框插件', type: 'plugin' }, + { value: 'Message', label: '全局提醒' }, + { value: 'MessageOptions', label: '全局提醒数据类型', type: 'TS' }, + { value: '$Message', label: '全局提醒插件', type: 'plugin' }, + { value: '$Message.close', label: '关闭全局提醒', type: 'plugin' }, + { value: '$Message.closeAll', label: '关闭所有全局提醒', type: 'plugin' }, + { value: '$Message.info', label: '全局提醒插件', type: 'plugin' }, + { value: '$Message.success', label: '全局提醒插件', type: 'plugin' }, + { value: '$Message.warning', label: '全局提醒插件', type: 'plugin' }, + { value: '$Message.error', label: '全局提醒插件', type: 'plugin' }, + { value: '$Message.question', label: '全局提醒插件', type: 'plugin' }, + { value: '$Message.loading', label: '全局提醒插件', type: 'plugin' }, + { value: '$Message.config', label: '全局提醒插件', type: 'plugin' }, + { value: '$Popup', label: '全局气泡框插件', type: 'plugin' }, + { value: 'Icon', label: '图标' }, + { value: 'IconSVG', label: '图标(IconSVG)' }, + { value: 'IconFont', label: '图标(IconFont)' }, + { value: 'Dropdown', label: '下拉菜单' }, + { value: 'DropdownItem', label: '下拉菜单选项' }, + { value: 'Popup', label: '气泡框' }, + { value: 'Popconfirm', label: '气泡确认框' }, + { value: 'Switch', label: '开关' }, + { value: 'Steps', label: '步骤条' }, + { value: 'StepItem', label: '步骤' }, + { value: 'Checkbox', label: '多选框' }, + { value: 'CheckboxGroup', label: '多选框组' }, + { value: 'Radio', label: '单选框' }, + { value: 'RadioGroup', label: '单选框组' }, + { value: 'Table', label: '表格', type: 'TS' }, + { value: 'TableCol', label: '表格列', type: 'TS' }, + { value: 'TableEditableCellConfig', label: '表格可编辑列配置', type: 'TS' }, + { value: 'TableTreeConfig', label: '表格树形结构配置', type: 'TS' }, + { value: 'TableColumnFilter', label: '表格列过滤条件配置', type: 'TS' }, + { + value: 'TableColumnController', + label: '表格自定义显示列配置', + type: 'TS', + }, + { value: 'InfinityScroll', label: '无限滚动配置', type: 'TS' }, + { value: 'TScroll', label: '滚动配置', type: 'TS' }, + { value: 'BaseTable', label: '基础表格' }, + { value: 'BaseTableCol', label: '基础表格列', type: 'TS' }, + { value: 'PrimaryTable', label: '主表格' }, + { value: 'PrimaryTableCol', label: '主表格列', type: 'TS' }, + { value: 'EnhancedTable', label: '增强表格' }, + { value: 'EnhancedTableCol', label: '增强表格列', type: 'TS' }, + { value: 'TableRowState', label: '表格行数据状态', type: 'TS' }, + { value: 'Select', label: '选择器' }, + { value: 'Option', label: '选择器选项' }, + { value: 'OptionGroup', label: '选择器选项组' }, + { value: 'Tag', label: '标签' }, + { value: 'CheckTag', label: '可选标签' }, + { value: 'CheckTagGroup', label: '可选标签组' }, + { value: 'Breadcrumb', label: '面包屑' }, + { value: 'BreadcrumbItem', label: '面包屑项' }, + { value: 'Menu', label: '侧边导航菜单' }, + { value: 'HeadMenu', label: '顶部导航菜单' }, + { value: 'Submenu', label: '二级导航' }, + { value: 'MenuItem', label: '导航菜单选项' }, + { value: 'MenuGroup', label: '导航菜单组' }, + { value: 'Alert', label: '警告提示' }, + // { value: 'AlertSwiper', label: '警告提示轮播' }, + { value: 'List', label: '列表' }, + { value: 'Upload', label: '上传' }, + { value: 'UploadFile', label: '上传文件类型', type: 'TS' }, + { value: 'UploadRequestOptions', label: '文件上传参数', type: 'TS' }, + { value: 'Notification', label: '消息通知' }, + { value: 'NotificationOptions', label: '全局提醒数据类型', type: 'TS' }, + { value: '$Notification', label: '消息通知插件', type: 'plugin' }, + { value: '$Notification.close', label: '关闭消息通知', type: 'plugin' }, + { + value: '$Notification.closeAll', + label: '关闭所有消息通知', + type: 'plugin', + }, + { value: '$Notification.info', label: '消息通知插件', type: 'plugin' }, + { value: '$Notification.success', label: '消息通知插件', type: 'plugin' }, + { value: '$Notification.warning', label: '消息通知插件', type: 'plugin' }, + { value: '$Notification.error', label: '消息通知插件', type: 'plugin' }, + { value: '$Notification.config', label: '消息通知插件', type: 'plugin' }, + { value: 'Search', label: '搜索' }, + { value: 'Tabs', label: '选项卡' }, + { value: 'TabPanel', label: '选项卡面板' }, + { value: 'Layout', label: '布局' }, + { value: 'Header', label: '布局-头部' }, + { value: 'Aside', label: '布局-侧边栏' }, + { value: 'Content', label: '布局-内容' }, + { value: 'Footer', label: '布局-底部内容' }, + { value: 'Grid', label: '栅格' }, + { value: 'Row', label: '栅格-横向' }, + { value: 'Col', label: '栅格-纵向' }, + { value: 'Divider', label: '分割线' }, + { value: 'Form', label: '表单' }, + { + value: 'FormInstance', + label: '表单示例', + type: 'TS', + framework: ['React(PC)', 'React(Mobile)'], + }, + { value: 'FormItem', label: '表单元素' }, + { value: 'FormList', label: '动态表单元素' }, + { value: 'FormRule', label: '表单校验规则', type: 'TS' }, + { value: 'FormErrorMessage', label: '表单校验规则', type: 'TS' }, + { value: 'Tree', label: '树' }, + { value: 'TreeNodeState', label: '树节点', type: 'TS' }, + { value: 'TreeNodeModel', label: '树节点类', type: 'TS' }, + { value: 'Tooltip', label: '文字提示' }, + { value: 'TooltipLite', label: '文字提示简版' }, + { value: 'Loading', label: '加载中' }, + { value: '$Loading', label: '加载中插件', type: 'plugin' }, + { value: 'Badge', label: '徽标数' }, + { value: 'DatePicker', label: '日期选择器' }, + { value: 'DateRangePicker', label: '日期范围选择器' }, + { value: 'DatePickerPanel', label: '日期选择器面板' }, + { value: 'DateRangePickerPanel', label: '日期范围选择器面板' }, + { value: 'Timeline', label: '时间轴' }, + { value: 'TimelineItem', label: '时间轴' }, + { value: 'TimePicker', label: '时间选择器' }, + { value: 'TimeRangePicker', label: '时间范围选择器' }, + { value: 'TimePickerPanel', label: '时间选择器面板' }, + { value: 'TimeRangePickerPanel', label: '时间范围选择器面板' }, + { value: 'Transfer', label: '穿梭框' }, + { value: 'TreeSelect', label: '树选择' }, + { value: 'Drawer', label: '模态抽屉' }, + { value: 'DrawerOptions', label: '模态抽屉插件参数', type: 'TS' }, + { value: 'DrawerInstance', label: '对话框插件实例', type: 'TS' }, + { value: '$Drawer', label: '对话框插件', type: 'plugin' }, + { value: 'Anchor', label: '锚点' }, + { value: 'AnchorItem', label: '锚点项' }, + { value: 'AnchorTarget', label: '锚点目标' }, + { value: 'Calendar', label: '日历' }, + { value: 'CalendarController', label: '日历控制器', type: 'TS' }, + { value: 'CalendarCell', label: '日历项参数', type: 'TS' }, + { value: 'Cascader', label: '级联选择' }, + { value: 'Chat', label: '对话' }, + { value: 'ChatAction', label: '对话操作' }, + { value: 'ChatItem', label: '对话单元' }, + { value: 'ChatInput', label: '对话输入框' }, + { value: 'ChatReasoning', 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: 'ChatRecord', label: '语音输入' }, + { value: 'ConfigProvider', label: '全局特性配置' }, + { value: 'InputNumber', label: '数字输入框' }, + { value: 'Progress', label: '进度条' }, + { value: 'Slider', label: '滑块' }, + { value: 'Avatar', label: '头像' }, + { value: 'AvatarGroup', label: '头像组' }, + { value: 'Carousel', label: '走马灯' }, + { value: 'Typography', label: '排版' }, + { value: 'TypographyEllipsis', label: '排版省略配置', type: 'TS' }, + { value: 'TypographyCopyable', label: '排版复制配置', type: 'TS' }, + { value: 'Space', label: '间距' }, + { value: 'Swiper', label: '轮播' }, + { value: 'SwiperItem', label: '轮播项' }, + { value: 'SwiperNavigation', label: '轮播导航配置', type: 'TS' }, + { value: 'StepLoading', label: '分步加载' }, + { value: 'StickyTool', label: '侧边固钉' }, + { value: 'StickyItem', label: '侧边固钉项' }, + { value: 'Affix', label: '固钉' }, + { value: 'PageHeader', label: '页头' }, + { value: 'AutoComplete', label: '自动填充' }, + { value: 'Mentions', label: '提及' }, + { value: 'Rate', label: '评分' }, + { value: 'Comment', label: '评论' }, + { value: 'Collapse', label: '折叠' }, + { value: 'CollapsePanel', label: '折叠面板' }, + { value: 'Card', label: '卡片' }, + { value: 'Guide', label: '引导' }, + { value: 'GuideStep', label: '引导步骤', type: 'TS' }, + { value: 'Descriptions', label: '描述列表' }, + { value: 'DescriptionsItem', label: '描述项' }, + { value: 'Empty', label: '空状态' }, + { value: 'Statistic', label: '统计数值' }, + { value: 'Result', label: '结果' }, + { value: 'Skeleton', label: '骨架屏' }, + { value: 'Watermark', label: '水印' }, + { value: 'Typography', label: '排版' }, + { value: 'Text', label: '文本' }, + { value: 'Title', label: '标题' }, + { value: 'Paragraph', label: '段落' }, + { value: 'Anchor', label: '锚点' }, + { value: 'BackTop', label: '回到顶部' }, + { value: 'Container', label: '布局容器' }, + { value: 'ColorPicker', label: '颜色选择器' }, + { value: 'ColorPickerPanel', label: '颜色选择器面板' }, + { value: 'InputAdornment', label: '输入装饰器' }, + { value: 'ConfigProvider', label: '全局配置', type: 'TS' }, + { + value: 'GlobalConfigProvider', + label: '全局配置(是 ConfigProvider 的别名)', + type: 'TS', + }, + { value: 'PaginationConfig', label: '分页全局配置', type: 'TS' }, + { value: 'InputConfig', label: '输入框全局配置', type: 'TS' }, + { value: 'CalendarConfig', label: '日历全局配置', type: 'TS' }, + { value: 'CascaderConfig', label: '级联选择全局配置', type: 'TS' }, + { value: 'ColorPickerConfig', label: '颜色选择器全局配置', type: 'TS' }, + { value: 'TransferConfig', label: '穿梭框全局配置', type: 'TS' }, + { value: 'TimePickerConfig', label: '时间选择器全局配置', type: 'TS' }, + { value: 'DatePickerConfig', label: '日期选择器全局配置', type: 'TS' }, + { value: 'DialogConfig', label: '对话框全局配置', type: 'TS' }, + { value: 'DrawerConfig', label: '抽屉全局配置', type: 'TS' }, + { value: 'PopconfirmConfig', label: '气泡确认框全局配置', type: 'TS' }, + { value: 'TableConfig', label: '表格全局配置', type: 'TS' }, + { value: 'SelectConfig', label: '选择器全局配置', type: 'TS' }, + { value: 'TreeConfig', label: '树全局配置', type: 'TS' }, + { value: 'TreeSelectConfig', label: '树选择全局配置', type: 'TS' }, + { value: 'UploadConfig', label: '上传组件全局配置', type: 'TS' }, + { value: 'UploadConfigDragger', label: '上传组件全局拖拽配置', type: 'TS' }, + { + value: 'UploadConfigProgress', + label: '上传组件进度全局配置', + type: 'TS', + }, + { + value: 'UploadConfigFileList', + label: '上传组件文件列表全局配置', + type: 'TS', + }, + { + value: 'UploadConfigImage', + label: '上传组件图片风格全局配置', + type: 'TS', + }, + { + value: 'UploadConfigFile', + label: '上传组件文件风格全局配置', + type: 'TS', + }, + { value: 'ListConfig', label: '列表全局配置', type: 'TS' }, + { value: 'LoadingConfig', label: '加载中全局配置', type: 'TS' }, + { value: 'FormConfig', label: '表单全局配置', type: 'TS' }, + { value: 'TagConfig', label: '标签全局配置', type: 'TS' }, + { value: 'StepsConfig', label: '步骤条全局配置', type: 'TS' }, + { value: 'AlertConfig', label: '警告提醒全局配置', type: 'TS' }, + { value: 'DescriptionsConfig', label: '描述全局配置', type: 'TS' }, + { value: 'MessageConfig', label: '消息全局配置', type: 'TS' }, + { value: 'GuideConfig', label: '引导全局配置', type: 'TS' }, + { value: 'AnchorConfig', label: '锚点全局配置', type: 'TS' }, + { value: 'ImageConfig', label: '图片全局配置', type: 'TS' }, + { value: 'ImageViewerConfig', label: '图片全局配置', type: 'TS' }, + { value: 'RateConfig', label: '评分全局配置', type: 'TS' }, + { value: 'EmptyConfig', label: '空状态全局配置', type: 'TS' }, + { value: 'ActionSheetItem', label: '动作面板项的配置', type: 'TS' }, + { value: 'WatermarkText', label: '水印文字配置', type: 'TS' }, + { value: 'WatermarkImage', label: '水印图片配置', type: 'TS' }, + { value: 'TypographyConfig', label: '排版全局配置', type: 'TS' }, + { value: 'AutoCompleteConfig', label: '自动填充全局配置', type: 'TS' }, + { value: 'QRCode', label: '二维码' }, + { value: 'QRCodeConfig', label: '二维码全局配置', type: 'TS' }, ].sort((a, b) => a.value.localeCompare(b.value)); export const COMPONENTS_MOBILE: Array = [ - { value: 'ActionSheet', label: '动作面板' }, - { value: 'ActionSheetConfig', label: '动作面板全局配置', type: 'TS' }, - { value: 'Badge', label: '徽标' }, - { value: 'Breadcrumb', label: '面包屑' }, - { value: 'BreadcrumbItem', label: '面包屑项' }, - { value: 'Button', label: '按钮' }, - { value: 'Calendar', label: '日历' }, - { value: 'CalendarConfig', label: '日历组件全局配置', type: 'TS' }, - { value: 'Carousel', label: '走马灯' }, - { value: 'Cell', label: '单元格' }, - { value: 'CellGroup', label: '单元格组' }, - { value: 'Checkbox', label: '多选框' }, - { value: 'CheckboxGroup', label: '多选框组' }, - { value: 'Col', label: '栅格-纵向' }, - { value: 'Collapse', label: '折叠面板' }, - { value: 'CountDown', label: '倒计时' }, - { value: 'DateTimePicker', label: '日期时间选择器' }, - { value: 'DateTimePickerConfig', label: '时间选择器全局配置', type: 'TS' }, - { value: 'DateTimeRangePicker', label: '日期时间范围选择器' }, - { value: 'Dialog', label: '对话框' }, - { value: 'DialogCard', label: '对话框卡片' }, - { value: 'Drawer', label: '抽屉' }, - { value: 'DropdownMenu', label: '下拉菜单' }, - { value: 'DropdownMenuConfig', label: '下拉菜单全局配置', type: 'TS' }, - { value: 'Fab', label: '悬浮按钮' }, - { value: 'Grid', label: '宫格' }, - { value: 'GridItem', label: '宫格子项' }, - { value: 'Image', label: '图片' }, - { value: 'ImageViewer', label: '图片预览' }, - { value: 'Indexes', label: '索引' }, - { value: 'IndexesAnchor', label: '索引锚点' }, - { value: 'Input', label: '输入框' }, - { value: 'InputNumber', label: '数字输入框' }, - { value: 'Layout', label: '布局' }, - { value: 'Loading', label: '加载' }, - { value: 'List', label: '列表' }, - { value: 'ListItem', label: '列表项' }, - { value: 'ListItemMeta', label: '带图片的列表项' }, - { value: 'Message', label: '消息通知' }, - { value: 'Navbar', label: '导航条' }, - { value: 'NoticeBar', label: '公告栏' }, - { value: 'Overlay', label: '遮罩层' }, - { value: 'Pagination', label: '分页' }, - { value: 'PaginationMini', label: '迷你分页' }, - { value: 'Picker', label: '选择器' }, - { value: 'PickerConfig', label: '选择器全局配置', type: 'TS' }, - { value: 'PickerItem', label: '选择器选项' }, - { value: 'Popover', label: '气泡弹出框' }, - { value: 'Progress', label: '进度条' }, - { value: 'PullDownRefresh', label: '下拉刷新' }, - { value: 'PullDownRefreshConfig', label: '下拉刷新全局配置', type: 'TS' }, - { value: 'QRCode', label: '二维码' }, - { value: 'QRCodeConfig', label: '二维码全局配置', type: 'TS' }, - { value: 'Radio', label: '单选框' }, - { value: 'RadioGroup', label: '单选框组' }, - { value: 'Rate', label: '评分' }, - { value: 'Row', label: '栅格-横向' }, - { value: 'SearchField', label: '搜索框' }, - { value: 'Segmented', label: '分段控制器' }, - { value: 'ScrollView', label: '滚动容器' }, - { value: 'Skeleton', label: '骨架屏' }, - { value: 'Slider', label: '滑块' }, - { value: 'SideBar', label: '侧边导航' }, - { value: 'SideBarItem', label: '侧边导航项' }, - { value: 'SwipeCell', label: '滑动操作' }, - { value: 'Swiper', label: '轮播' }, - { value: 'SwiperNav', label: '轮播导航' }, - { value: 'SwiperNavigation', label: '轮播导航配置', type: 'TS' }, - { value: 'Stepper', label: '步进器' }, - { value: 'Sticky', label: '吸顶容器' }, - { value: 'Switch', label: '开关' }, - { value: 'Table', label: '表格' }, - { value: 'TableCol', label: '表格列' }, - { value: 'Tab', label: '选项卡' }, - { value: 'TabBar', label: '标签栏' }, - { value: 'TabBarConfig', label: '标签栏全局配置', type: 'TS' }, - { value: 'TabBarItem', label: '标签栏选项' }, - { value: 'Tag', label: '标签' }, - { value: 'Textarea', label: '文本输入框' }, - { value: 'Toast', label: '轻提示' }, - { value: 'ToastOptions', label: '轻提示插件参数', type: 'TS' }, - { value: 'Transition', label: '动画' }, - { value: 'Upload', label: '上传' }, - { value: 'AttachmentsConfig', label: '文件附件全局配置', type: 'TS' }, - { value: 'ChatActionbarConfig', label: '对话操作全局配置', type: 'TS' }, - { value: 'ChatSenderConfig', label: '对话输入全局配置', type: 'TS' }, - { value: 'ChatThinkingConfig', label: '思考过程全局配置', type: 'TS' }, + { value: 'ActionSheet', label: '动作面板' }, + { value: 'ActionSheetConfig', label: '动作面板全局配置', type: 'TS' }, + { value: 'Badge', label: '徽标' }, + { value: 'Breadcrumb', label: '面包屑' }, + { value: 'BreadcrumbItem', label: '面包屑项' }, + { value: 'Button', label: '按钮' }, + { value: 'Calendar', label: '日历' }, + { value: 'CalendarConfig', label: '日历组件全局配置', type: 'TS' }, + { value: 'Carousel', label: '走马灯' }, + { value: 'Cell', label: '单元格' }, + { value: 'CellGroup', label: '单元格组' }, + { value: 'Checkbox', label: '多选框' }, + { value: 'CheckboxGroup', label: '多选框组' }, + { value: 'Col', label: '栅格-纵向' }, + { value: 'Collapse', label: '折叠面板' }, + { value: 'CountDown', label: '倒计时' }, + { value: 'DateTimePicker', label: '日期时间选择器' }, + { value: 'DateTimePickerConfig', label: '时间选择器全局配置', type: 'TS' }, + { value: 'DateTimeRangePicker', label: '日期时间范围选择器' }, + { value: 'Dialog', label: '对话框' }, + { value: 'DialogCard', label: '对话框卡片' }, + { value: 'Drawer', label: '抽屉' }, + { value: 'DropdownMenu', label: '下拉菜单' }, + { value: 'DropdownMenuConfig', label: '下拉菜单全局配置', type: 'TS' }, + { value: 'Fab', label: '悬浮按钮' }, + { value: 'Grid', label: '宫格' }, + { value: 'GridItem', label: '宫格子项' }, + { value: 'Image', label: '图片' }, + { value: 'ImageViewer', label: '图片预览' }, + { value: 'Indexes', label: '索引' }, + { value: 'IndexesAnchor', label: '索引锚点' }, + { value: 'Input', label: '输入框' }, + { value: 'InputNumber', label: '数字输入框' }, + { value: 'Layout', label: '布局' }, + { value: 'Loading', label: '加载' }, + { value: 'List', label: '列表' }, + { value: 'ListItem', label: '列表项' }, + { value: 'ListItemMeta', label: '带图片的列表项' }, + { value: 'Message', label: '消息通知' }, + { value: 'Navbar', label: '导航条' }, + { value: 'NoticeBar', label: '公告栏' }, + { value: 'Overlay', label: '遮罩层' }, + { value: 'Pagination', label: '分页' }, + { value: 'PaginationMini', label: '迷你分页' }, + { value: 'Picker', label: '选择器' }, + { value: 'PickerConfig', label: '选择器全局配置', type: 'TS' }, + { value: 'PickerItem', label: '选择器选项' }, + { value: 'Popover', label: '气泡弹出框' }, + { value: 'Progress', label: '进度条' }, + { value: 'PullDownRefresh', label: '下拉刷新' }, + { value: 'PullDownRefreshConfig', label: '下拉刷新全局配置', type: 'TS' }, + { value: 'QRCode', label: '二维码' }, + { value: 'QRCodeConfig', label: '二维码全局配置', type: 'TS' }, + { value: 'Radio', label: '单选框' }, + { value: 'RadioGroup', label: '单选框组' }, + { value: 'Rate', label: '评分' }, + { value: 'Row', label: '栅格-横向' }, + { value: 'SearchField', label: '搜索框' }, + { value: 'Segmented', label: '分段控制器' }, + { value: 'ScrollView', label: '滚动容器' }, + { value: 'Skeleton', label: '骨架屏' }, + { value: 'Slider', label: '滑块' }, + { value: 'SideBar', label: '侧边导航' }, + { value: 'SideBarItem', label: '侧边导航项' }, + { value: 'SwipeCell', label: '滑动操作' }, + { value: 'Swiper', label: '轮播' }, + { value: 'SwiperNav', label: '轮播导航' }, + { value: 'SwiperNavigation', label: '轮播导航配置', type: 'TS' }, + { value: 'Stepper', label: '步进器' }, + { value: 'Sticky', label: '吸顶容器' }, + { value: 'Switch', label: '开关' }, + { value: 'Table', label: '表格' }, + { value: 'TableCol', label: '表格列' }, + { value: 'Tab', label: '选项卡' }, + { value: 'TabBar', label: '标签栏' }, + { value: 'TabBarConfig', label: '标签栏全局配置', type: 'TS' }, + { value: 'TabBarItem', label: '标签栏选项' }, + { value: 'Tag', label: '标签' }, + { value: 'Textarea', label: '文本输入框' }, + { value: 'Toast', label: '轻提示' }, + { value: 'ToastOptions', label: '轻提示插件参数', type: 'TS' }, + { value: 'Transition', label: '动画' }, + { value: 'Upload', label: '上传' }, + { value: 'AttachmentsConfig', label: '文件附件全局配置', type: 'TS' }, + { value: 'ChatActionbarConfig', label: '对话操作全局配置', type: 'TS' }, + { value: 'ChatSenderConfig', label: '对话输入全局配置', type: 'TS' }, + { value: 'ChatThinkingConfig', label: '思考过程全局配置', type: 'TS' }, ].sort((a, b) => a.value.localeCompare(b.value)); export default { - PLATFORM_MAP, - FRAMEWORK_MAP, - FIELD_TYPE_MAP, - PLATFORM_FRAMEWORK, - COMPONENTS_PC, - COMPONENTS_MOBILE, - API_CATEGORY, + PLATFORM_MAP, + FRAMEWORK_MAP, + FIELD_TYPE_MAP, + PLATFORM_FRAMEWORK, + COMPONENTS_PC, + COMPONENTS_MOBILE, + API_CATEGORY, };