/*
 * @Author: your name
 * @Date: 2021-09-17 18:18:58
 * @LastEditTime: 2021-09-18 15:34:40
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /MedicalWisdomCheckSys/src/components/MccsUpload/index.tsx
 */


import React from 'react'
import { Upload, message, Button } from 'antd';
import { UploadOutlined } from '@ant-design/icons';

const MccsUpload: React.FC<MccsUpload.propsType> = (props)=>{
    
    const {children,value:fileList,...rest} = props;

    const config = {
        // onChange :(info:any)=>{
        //     console.log({info});
            
        // },
        // onRemove:(file:any)=>{
        //     console.log({file});
        // }
    }



    return (
        <Upload  defaultFileList={fileList} {...config}  {...rest}>
              {
                  children || (
                    <Button icon={<UploadOutlined />}>上传文件</Button>
                  )
              }
        </Upload>
    )
}

export default MccsUpload
