0.0.12 • Published 7 years ago

react-fast-upload v0.0.12

Weekly downloads
46
License
-
Repository
github
Last release
7 years ago

react-fast-upload

React Upload

🔗 Live demo
🕐 Releases

Build Status NPM version NPM downloads

🌀 Example 🌀 Doc 🌀 Test

📦 Install

npm i react-fast-upload --save

API

nametypedefaultdescription
actionStringfrom action url
nameStringfile name
typeStringfilefile type
dataobjectother data object to post
headersobjecthttp headers to post, available in modern browsers
multipleBooleanfalse多文件, available in modern browsers
clspStringrf更改原有样式classname前缀
wrapClassNameString自定义样式
onStartfunctionstart callback
onSuccessfunctionsuccess callback
onProgressfunctionprogress callback
onErrorfunctionerror callback

📄 Usage

var React = require('react')
var ReactDOM = require('react-dom')
var Some = require('react-fast-upload')
ReactDOM.render(<Some />, document.getElementById('demo'))

🔨 development

npm i -g fis3 --registry=https://registry.npm.taobao.org
# Install dependencies | 安装依赖
npm run dep
    # > Suggested Use `yarn` replace `npm run dep` | 建议使用 `yarn` 替代 `npm run dep`
    # npm i -g yarn
    # npm run yi

# Server
npm run fs

# Build
npm run dev


# 构建 gh-pages 版本 到 output/
npm run gh
# 将 output/** 发布到 gh-pages 分支
npm run gh-push
# 构建 npm 要发布的代码到 output/
npm run npm

Build based on fast-boot

For npm owner: npm publish Need to be in ./output

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

8 years ago