0.0.6 • Published 4 years ago
custom-form-vue v0.0.6
custom-form-vue
安装
npm install custom-form-vue
引入
具体使用请参考examples/App.vue
main.js中
import Vue from "vue"
import CustomFormVue from "custom-form-vue"
Vue.use(CustomFormVue)
项目文件中
<template>
<CustomFormDesign v-model="componentList" />
<CustomFormFill v-model="formValue" :componentList="componentList" />
</template>
使用指南
CustomFormFill
自定义表单填写器
props
参数 | 说明 | 格式 |
---|---|---|
v-model | 表单编辑获得的表单内容 | { id:"",value:" } |
componentList | 表单设计器生成的表单内容 | 参考表单生成器 |
CustomFormDesign
自定义表单设计器
props
参数 | 说明 | 格式 |
---|---|---|
v-model | 表单生成器获得的表单 | { name:"",componentName:"",props:{} } |