Skip to content

leacoleaco/el-form-auto

Repository files navigation

Introduce

What is this

This is a library that allows you to build forms using descriptive configurations. see this demo

How to use in Vue2/3

  1. install el-form-auto.

if you use vue2, you can use this command.

npm install el-form-auto element-ui --save

if you use vue3, you can use this command.

npm install le-auto-form element-plus --save
  1. Global reg the element-ui component in main.js file.
import ElementUI from 'element-ui'

Vue.use(ElementUI)
  1. Binding data and description.

  2. Usage you can see the demo: Demo.vue

How to build lib

  1. Install dependency
npm install
  1. Run build-lib
npm run build-lib