dva-tools
v0.0.1
Published
提供Dva及Antd的一些辅助工具
Downloads
1
Readme
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