feat: upload
Some checks failed
coverage CI / build (push) Has been cancelled

This commit is contained in:
2025-09-25 13:51:24 +08:00
parent 88097e386b
commit 4e9ebc76f7
12 changed files with 687 additions and 165 deletions

View File

@@ -1,6 +1,7 @@
import type { ProFormColumnsType } from '@ant-design/pro-components';
import { BetaSchemaForm } from '@ant-design/pro-components';
import { Button, type ColProps, Drawer, Space, Typography } from 'antd';
import type { FormInstance } from 'antd/lib';
import React, { forwardRef, useImperativeHandle } from 'react';
interface ConfigurableDrawerFormProps {
@@ -38,7 +39,7 @@ const ConfigurableDrawerForm = forwardRef<
const [formData, setFormData] = React.useState(initialValues || {});
const [loading, setLoading] = React.useState<boolean>(false);
// 添加表单实例引用
const formRef = React.useRef<any>(null);
const formRef = React.useRef<FormInstance>(null);
useImperativeHandle(ref, () => ({
open: (data) => {
if (data) {