Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified db/TDesign.db
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -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 | \-
Original file line number Diff line number Diff line change
@@ -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 | 语音授权按钮插槽,自定义语音授权按钮区域内容
Original file line number Diff line number Diff line change
@@ -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;
Original file line number Diff line number Diff line change
@@ -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;
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ const props: TdChatSenderProps = {
type: Boolean,
value: false,
},
/** 是否允许语音输入。为 true 时显示语音切换按钮,语音输入 UI 由开发者通过 speech 插槽自行提供 */
allowSpeech: {
type: Boolean,
value: false,
},
/** 附件列表属性 */
attachmentsProps: {
type: Object,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ export interface TdChatSenderProps {
type: BooleanConstructor;
value?: boolean;
};
/**
* 是否允许语音输入。为 true 时显示语音切换按钮,语音输入 UI 由开发者通过 speech 插槽自行提供
* @default false
*/
allowSpeech?: {
type: BooleanConstructor;
value?: boolean;
};
/**
* 附件列表属性
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -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 | \-
Original file line number Diff line number Diff line change
@@ -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 | 语音授权按钮插槽,自定义语音授权按钮区域内容
Original file line number Diff line number Diff line change
@@ -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: () => ({}),
},
};
Original file line number Diff line number Diff line change
@@ -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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import type { TdChatSenderProps } from './type';
export default {
/** 默认键盘弹起不会把页面顶起来 */
adjustPosition: Boolean,
/** 是否允许语音输入。为 true 时显示语音切换按钮,语音输入 UI 由开发者通过 speech 插槽自行提供 */
allowSpeech: Boolean,
/** 附件列表属性 */
attachmentsProps: {
type: Object,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ export interface TdChatSenderProps {
* @default false
*/
adjustPosition?: boolean;
/**
* 是否允许语音输入。为 true 时显示语音切换按钮,语音输入 UI 由开发者通过 speech 插槽自行提供
* @default false
*/
allowSpeech?: boolean;
/**
* 附件列表属性
*/
Expand Down
Loading