import { FC } from "react"; import { Form, Input, InputNumber, Modal, ModalProps } from "antd"; import style from "@/components/AddIndexModal/index.module.scss"; export interface EvaluationModalProps extends Omit { onCancel?: () => void; onOk?: (val: any) => void; } const { TextArea } = Input; export const EvaluationModal: FC = ({ open, onOk, onCancel, ...rest }) => { const [form] = Form.useForm(); const handleCancel = () => { form.resetFields(); onCancel?.(); }; const handleConfirm = () => { form.submit(); }; const handleSubmit = async (values: any) => { onOk?.(values); handleCancel(); }; return (