com-progress
a react progress component
install
npm install --save com-progress
usage
import MyProgress from 'com-progress';
<MyProgress title={'加载中...'} width={'360px'} allTime={300000} status={'active'} type={'line'}/>
development
npm install
npm start
publish
npm publish
参数
Option | Type | Description |
---|---|---|
title | string | 提示语 |
width | string | 长度('100px') |
allTime | number | 进度条总时长(毫秒)(必传) |
status | string | 状态success exception active normal |
type | string | 类型,可选 line circle dashboard |
isrefresh | boolean | true刷新 |