miniprogress
1.1.3 • Public • Published 顶部进度条插件
first:
then:
import miniprogress from 'miniprogress'
import 'miniprogress/lib/progress.css'
there are several APIs below:
name |
arg |
type |
argDesrc |
featurs |
start |
none |
--- |
--- |
start |
inc |
none |
--- |
--- |
increase by 8% per time |
set |
exist |
Int |
$gt:0 && $lt:1 |
custom set percent |
done |
exist |
String |
if successful is null(mean don't input anything),if fail only input 'fail' |
end with success or fail |
miniprogress.start()
miniprogress.inc()
miniprogress.set(0.5)
miniprogress.done()
miniprogress.done('fail')
all of the above is what i hope you expect :)
Package Sidebar
Install
Weekly Downloads