feat: add user manager

This commit is contained in:
2025-02-28 15:31:32 +08:00
parent 5f7bd0de5f
commit bd58d5983c
26 changed files with 149 additions and 57 deletions

View File

@@ -1,6 +1,7 @@
import { useState } from 'react';
import { LoadingOutlined, PlusOutlined } from '@ant-design/icons';
import { Flex, message, Upload } from 'antd';
import { Flex, Upload } from 'antd';
import { message } from '@/modules/message';
import type { GetProp, UploadProps } from 'antd';
type FileType = Parameters<GetProp<UploadProps, 'beforeUpload'>>[0];
@@ -53,7 +54,7 @@ export const AvatarUpload = () => {
};
const customAction = (file) => {
console.log('file', file);
}
};
return (
<Flex gap='middle' wrap>
<Upload

View File

@@ -1,4 +1,4 @@
import { message } from 'antd';
import { message } from '@/modules/message';
import { useImperativeHandle, useRef, forwardRef } from 'react';
import type { GetProp, UploadProps } from 'antd';
type FileTypeOrg = Parameters<GetProp<UploadProps, 'beforeUpload'>>[0];