1.0.5 • Published 3 years ago

twpulgin v1.0.5

Weekly downloads
1
License
MIT
Repository
-
Last release
3 years ago

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.