/** * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 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 declare type ChatActionButtons = Array; export declare type ChatActionButton = UploadButton | SendButton; export interface UploadButton { name: 'upload'; presets: string[]; status?: string; } export interface SendButton { name: 'send'; type: 'icon' | 'text'; }