// ============================================================ // LineInput — lineEdit → Input // 用于单行文本输入(如 custom_voice_id) // 同时作为未知 widget 类型的兜底控件 // ============================================================ import { Input } from 'antd'; import type { WidgetProps } from './types'; export function LineInput({ value, onChange, disabled, config }: WidgetProps) { return ( onChange?.(e.target.value)} disabled={disabled} placeholder={(config.placeholder as string) || '请输入'} maxLength={config.maxLength as number | undefined} allowClear /> ); }