dva-tools

0.0.1 • Public • Published

dva-tools

提供Dva及Antd的一些辅助工具

如需详细了解请自行查阅源码:

https://coding.net/u/ncbql/p/dva-tools/git

require('dva-tools')

import {
  getUrl,
  getAction,
  getState,
  toRequest,
  getCookie,
  onError
} = require('dva-tools')

require('dva-tools/autoform')

import {
  getFields, // redux.dispatch
  getValues, // redux.dispatch
  setValues, // redux.dispatch
  setErrors, // redux.dispatch
  formPlugin, // Dva Plugin
  autoform // React HOC
} = require('dva-tools/autoform')

require('dva-tools/request')

import request = require('dva-tools/request')

request(url, options, args = [
  { a: 1 }, // request body
  (dispatch, errors, message) => {}
])

协议

MIT

Readme

Keywords

Package Sidebar

Install

npm i dva-tools

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • ncbql