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
9 changes: 9 additions & 0 deletions packages/pro-components/chat/chat-sender/README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,12 @@ keyboardheightchange | `(detail: {height: number, duration: number})` | \-
send | `(value: string, context: {\| KeyboardEvent })` | \-
stop | `(value: string)` | \-
upload-click | \- | \-

### ChatSender Slots

name | Description
-- | --
footer-prefix | \-
header | \-
input-prefix | \-
suffix | \-
9 changes: 9 additions & 0 deletions packages/pro-components/chat/chat-sender/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,12 @@ keyboardheightchange | `(detail: {height: number, duration: number})` | 选择
send | `(value: string, context: {\| KeyboardEvent })` | 点击消息发送的回调方法
stop | `(value: string)` | 点击消息终止的回调方法
upload-click | \- | 【实验】点击上传按钮时触发

### ChatSender Slots

名称 | 描述
-- | --
footer-prefix | 输入框底部左侧插槽,自定义输入框底部区域内容
header | 输入框顶部插槽,自定义输入框顶部区域内容
input-prefix | 输入框左侧插槽,自定义输入框左侧区域内容
suffix | 输入框底部操作插槽,自定义输入框底部操作区域区域内容
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,12 @@ stop | `(value: string, context: { e: MouseEvent })` | \-
update-value | `(value: boolean)` | \-
update-visible | `(value: boolean)` | \-
upload-click | \- | \-

### ChatSender Slots

name | Description
-- | --
footer-prefix | \-
header | \-
input-prefix | \-
suffix | \-
9 changes: 9 additions & 0 deletions packages/uniapp-pro-components/chat/chat-sender/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,12 @@ stop | `(value: string, context: { e: MouseEvent })` | 点击消息终止的回
update-value | `(value: boolean)` | 输入框值发生变化时触发
update-visible | `(value: boolean)` | 上传面板可见性发生变化时触发
upload-click | \- | 【实验】点击上传按钮时触发

### ChatSender Slots

名称 | 描述
-- | --
footer-prefix | 输入框底部左侧插槽,自定义输入框底部区域内容
header | 输入框顶部插槽,自定义输入框顶部区域内容
input-prefix | 输入框左侧插槽,自定义输入框左侧区域内容
suffix | 输入框底部操作插槽,自定义输入框底部操作区域区域内容
4 changes: 2 additions & 2 deletions packages/uniapp-pro-components/chat/chat-sender/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ export default {
/** 预设发送区渲染配置,用于灵活配置发送区的上传入口和发送按钮,支持自定义类型、顺序、样式 */
renderPresets: {
type: Array,
default: () => [{name: 'upload', presets: ['uploadCamera', 'uploadImage', 'uploadAttachment'], status: ''},{ name: 'send', type: 'icon'}],
default: [{name: 'upload', presets: ['uploadCamera', 'uploadImage', 'uploadAttachment'], status: ''},{ name: 'send', type: 'icon'}],
},
/** 透传给 Textarea 组件的属性,autosize数值单位为 rpx */
textareaProps: {
type: [Boolean, Object],
default: () =>({ autosize: { maxHeight: 264, minHeight: 48 } }) as TdChatSenderProps['textareaProps'],
default: { autosize: { maxHeight: 264, minHeight: 48 } } as TdChatSenderProps['textareaProps'],
},
/** 输入框的值 */
value: {
Expand Down
Loading