LastPoem / Restart

2 stars 0 forks source link

form-create #34

Open LastPoem opened 4 years ago

LastPoem commented 4 years ago

form-create是一个表单生成器

在main.js中引入form-create:

import Vue from 'vue';
import iView from 'iview';
import 'iview/dist/styles/iview.css';

//iviewUI
import formCreate from 'form-create'
//获取生成器
import { maker } from 'form-create'

//ElementUI
//import formCreate from 'form-create/element'
//获取生成器
//import { maker } from 'form-create/element'

//三级联动数据,不用可以不引入
import 'form-create/district/province_city_area.js'

Vue.use(iView);
Vue.use(formCreate)

有三种方式创建表单: 组件模式,Vue原型方法,Window全局方法