Skip to content

image upload(使用react上传图片的组件)

Notifications You must be signed in to change notification settings

datianyun/react-upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-upload

图片上传组件

alt text 在线demo

Installation

npm install reactui-upload

API

props

name type default description
onDrop function - 拖拽后的回调
onUpload function - 上传中回调
className string - 上传控件自定义样式的className
maxSize string - 最大图片尺寸
style object - 控件样式
supportClick boolean true 是否支持点击
accept string 上传类型
multiple boolean false 是否可多次上传
onComplete function 上传完成的回调
uploadUrl string 上传的url

Demo

npm run start

http://localhost:8888/example/

Usage

import Upload from 'reactui-upload'
<Upload />

About

image upload(使用react上传图片的组件)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published