0.0.4 • Published 6 years ago

dva-nprogress v0.0.4

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

dva-nprogress

NPM version NPM downloads

Nprogress plugin for dva. :clap:


Install

$ npm install dva-nprogress --save

Usage

import 'nprogress/nprogress.css'
import nprogressDva from 'dva-nprogress';

const app = dva();
app.use(nprogressDva());

Then we can access loading state from store.

opts

  • opts.types: property key on action type to animation, type Array, Default ['@@router/CALL_HISTORY_METHOD']

License

MIT

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago