0.0.6 • Published 4 years ago

custom-form-vue v0.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

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:{} }