|
|
@ -1,7 +1,7 @@
|
|
|
|
import React, { useState } from 'react';
|
|
|
|
|
|
|
|
import { Upload } from 'antd';
|
|
|
|
import { Upload } from 'antd';
|
|
|
|
import ImgCrop from 'antd-img-crop';
|
|
|
|
import ImgCrop from 'antd-img-crop';
|
|
|
|
import type { RcFile, UploadFile, UploadProps } from 'antd/es/upload/interface';
|
|
|
|
import type { RcFile, UploadFile, UploadProps } from 'antd/es/upload/interface';
|
|
|
|
|
|
|
|
import React, { useState } from 'react';
|
|
|
|
|
|
|
|
|
|
|
|
const App: React.FC = () => {
|
|
|
|
const App: React.FC = () => {
|
|
|
|
const [fileList, setFileList] = useState<UploadFile[]>([
|
|
|
|
const [fileList, setFileList] = useState<UploadFile[]>([
|
|
|
@ -33,7 +33,7 @@ const App: React.FC = () => {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<ImgCrop rotate>
|
|
|
|
<ImgCrop rotationSlider>
|
|
|
|
<Upload
|
|
|
|
<Upload
|
|
|
|
action="https://www.mocky.io/v2/5cc8019d300000980a055e76"
|
|
|
|
action="https://www.mocky.io/v2/5cc8019d300000980a055e76"
|
|
|
|
listType="picture-card"
|
|
|
|
listType="picture-card"
|
|
|
|