Former provides an adapter for the mainstream UI library form
components and the ability from JSON schema
to Vue
view.
This module is distributed via npm which is bundled with node and
should be installed as one of your project's dependencies
:
$ npm install --save @xizhouh/formler
// main.js
import Vue from 'vue';
import Former from '@xizhouh/former';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
// or use iView
// import iView from 'iview';
// import 'iview/dist/styles/iview.css';
// Vue.use(iView);
Vue.component('Former', Former);
For more information like adapting other UI librarys, please refer to Quick Start in our documentation.
Modern browsers and Internet Explorer 10+.
WTFPL