/* eslint-disable react/display-name */ import React, { PropsWithChildren } from 'react' import { Button, Upload, DragUpload, UploadData } from 'react-icecream' import { AddThinIcon, UploadIcon } from 'react-icecream/icons' import cns from 'classnames' import './demo.less' export default () => { const onChange = (data: UploadData[]) => { console.log('files', data) } return (
() => undefined} multiple accept="image/png" onChange={onChange} disabled> () => undefined} onChange={onChange} multiple disabled>
) } const DragContent = ({ title, dragStatus = '', disabled = false }: { title: string, dragStatus?: string, disabled?: boolean}) => (
{dragStatus !== 'dragover' || disabled ?
{title},或拖拽文件到此处上传
:
释放文件并开始上传
}
视频大小控制在100Mb以内
) function Line({ children }: PropsWithChildren<{}>) { return
{children}
}