element-form-builder
Build powerful vue form with JSON schema and composition api. Any custom input components and popular ui frameworks such as Element UI are supported.
Example
Core Features
- 📺 Powerful - use composition api to manage complex form state
- 📷 Flexible - support any custom input components
- ⌚️ Adaptable - different ui frameworks can be used out of the box through the adapters
- 📻 Reliable - has been used in multiple applications in the production environment
Quick Start
First you need a vue application like Vue Admin Next.
Install
npm i element-form-builder
Registration
Global Registration
;; Vue; // form-builderVue; // el-form-adaptor
Local Registration
Use the factory method based on the specified component:
;;; name: 'awesome-form' components: FormBuilder:
Build Form
Vue template:
Vue component:
; components: FormBuilder: { const form = ; return form ; } { return formConfig: component: 'div' fields: name: 'comment' component: 'ElFormAdaptor' label: 'Normal Input' rules: required: true props: placeholder: 'Render with el-input component' ; };
Docs
TODO
Built With
License
Copyright (c) 2018 - present, Felix Yang