twpulgin

a form pulgin for vue

Usage no npm install needed!

<script type="module">
  import twpulgin from 'https://cdn.skypack.dev/twpulgin';
</script>

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.