twpulgin
v1.0.5
Published
a form pulgin for vue
Downloads
1
Readme
TwFormEngine
A plugin for Vue
@author
Build Setup
// install this pulgin
npm install tw-form-engine
// import this pulugin and use
import 'TwFormEngine' from 'tw-form-engine'
Vue.use(TwFormEngine,options)
// 当Vue,use的时候options必传,关于options参数接口如下
interface options{
httpService(params):Promise
}
// 定义httpService函数的的时候形参为params接口
inteface params{
query:object
stype:string
}
// httpService函数必须return Promise;
function httpService(args:params):promise{
swich(args.stype):
case(SELECT_REMOTE_OPTIONS) :
}
For detailed explanation on how things work, consult the docs for vue-loader.