/// import type { TextAreaProps as AntdMobileTextAreaProps } from 'antd-mobile'; import type { FunctionProps } from './Functions'; import type { SpeechToTextBaseProps } from '../AudioInput/SpeechToText'; import type { AffixProps } from './Affix'; type BaseTextAreaProps = Omit; export interface TextAreaProps extends BaseTextAreaProps { /** * 功能列表(联网搜索、深度思考等) * @type { false | FunctionProps } * @default true */ allowFunction?: false | FunctionProps; /** * 是否允许音频输入,可以是布尔值或 SpeechToTextBaseProps 对象 * @type { boolean | SpeechToTextBaseProps } * @default false */ allowAudio?: boolean | SpeechToTextBaseProps; /** * 是否允许附件上传 * @type { false | AffixesProps } * @default false */ allowAffix?: false | AffixProps; /** * 加载状态(搜索模式下有效) * @default false * @type { boolean } */ loading?: boolean; /** * 是否带边框 * @default false * @type { boolean } */ bordered?: boolean; /** * 额外自定义后置元素 * @type { React.ReactNode } * @default undefined */ suffix?: React.ReactNode; /** * 搜索模式 * @default false * @type { boolean } */ search?: boolean; /** * 搜索回调 * @param { string } value 多值类型 * @description 搜索回调,返回包含文本、功能、文件、音频的多值类型数据 * @returns { void } */ onSearch?: (value: string) => void; /** * 暂停加载回调 * @description 暂停加载回调,用于在搜索模式下暂停加载状态 * @returns { void } */ onPauseLoading?: () => void; } export {};