chore: speech to text

This commit is contained in:
jialin
2024-11-22 10:00:34 +08:00
parent f24aef300b
commit c3473673da
47 changed files with 3364 additions and 904 deletions
@@ -7,14 +7,19 @@ import '../style/input-list.less';
interface InputListProps {
ref?: any;
textList: { text: string; uid: number | string; name: string }[];
extra?: (data: any) => React.ReactNode;
textList: {
text: string;
uid: number | string;
name: string;
}[];
onChange?: (
textList: { text: string; uid: number | string; name: string }[]
) => void;
}
const InputList: React.FC<InputListProps> = forwardRef(
({ textList, onChange }, ref) => {
({ textList, onChange, extra }, ref) => {
const intl = useIntl();
const messageId = useRef(0);
@@ -82,6 +87,7 @@ const InputList: React.FC<InputListProps> = forwardRef(
></Button>
</Tooltip>
</span>
{extra?.(text)}
</div>
);
})}