基于Vue和Element UI实现的轻量级自定义表单搭建,支持无限嵌套表单、动态增删组件、自定义组件自动注入等,支持v-model双向绑定,是一款简单高效的表单开发工具。
<template>
<common-form :schema="schema" v-model="form" />
</template>
<script>
import commonForm from '@/components/form/commonForm'
export default {
components: {
commonForm
},
data() {
return {
form: {},
schema: {
children: [
{
model: "A1",
label: "A1 Input 输入框",
type: "el-input",
}
]
},
};
},
}
</script>
npm install
npm run serve
npm run build
npm run lint