import React, { useState } from 'react'; import { Upload, Button, Icon } from '@btri-ui/base'; import { UploadFile, UploadProps } from 'antd'; export default () => { const [fileList, setFileList] = useState([]); const handleChange: UploadProps['onChange'] = ({ fileList: newFileList, event, }) => { console.log(event, 444); setFileList(newFileList); }; const uploadButton = (
点击上传图片
); return ( <> { window.open( 'https://static-dist-pub.oss-cn-hangzhou.aliyuncs.com/ibuilding-ui/static/images/ImageDemoPic1.png', ); }} > {uploadButton} ); };