• Stars
    star
    231
  • Rank 173,434 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 6 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🎩A data-driven dynamic and complex form solution

el-form-renderer

Build Status NPM Download NPM Version NPM License PRs Welcome Automated Release Notes by gren

中文文档

Table of Contents

Introduction

WHAT

el-form-renderer is based on element-ui, but not limited element-ui components. On the basis of completely inheriting the form attribute of element-ui, extension is made. Some non-form components or custom components, such as picture uploading and rich text editor, can also be integrated, thus, users can render a complete form by using a piece of json.

WHY

In our daily development, there are lots page with form, and usually the form structure is similar, the logic is repeated. el-form-renderer does not have complicated logic. It only convert JSON to render form item, save time and energy to write business logic, and reduce duplicate code.

Features

  • Render form with json
  • Support integrate with custom components
  • Support batch update form data with updateForm method
  • Support setOptions method, dynamically change select options
  • Content support inputFormat , outputFormat , trim to process component's input and output values
  • Support v-model

Back to Top

Links

Back to Top

Quick Start

yarn add @femessage/el-form-renderer
<template>
  <el-form-renderer :content="content"></el-form-renderer>
</template>
<script>
  import ElFormRenderer from '@femessage/el-form-renderer'
  export default {
    components: {
      ElFormRenderer,
    },
    data() {
      return {
        content: [],
      }
    },
  }
</script>

Back to Top

Inspiration

thanks to element-patch

Contributing

For those who are interested in contributing to this project, such as:

  • report a bug
  • request new feature
  • fix a bug
  • implement a new feature

Please refer to our contributing guide.

Back to Top

Contributors

Thanks goes to these wonderful people (emoji key):


Alvin

💻 👀 🐛 📝 🤔

levy

👀 🚇 🤔 🚧

EVILLT

💻 🐛 📝 🤔

Donald Shen

💻 📖 💡 📝

ColMugX

💻 ⚠️ 📖

OuZuYu

🐛

Han

💻 📖

yolofit

🐛

chengaopan

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT

Back to Top

More Repositories

1

el-data-table

🥘Base on element-ui, makes crud easily
Vue
486
star
2

nuxt-micro-frontend

🎳Nuxt module for micro-frontend solution
JavaScript
121
star
3

log-viewer

💻View terminal logs in browser
JavaScript
110
star
4

v-gantt

📊Gantt chart
Vue
101
star
5

dique

🐦移动端语雀,你的掌上知识库
Dart
70
star
6

v-img

📸Use webp and lazyload images
JavaScript
48
star
7

hire

🤝 Join us
JavaScript
47
star
8

create-nuxt-app

⚡️Create deepexi style nuxt app in seconds
JavaScript
44
star
9

el-data-tree

🌴Base on element-ui, makes tree component crud easily
Vue
29
star
10

update-popup

💬Display an update message at right bottom
JavaScript
24
star
11

upload-to-ali

☁️Upload to ali-oss easily
Vue
21
star
12

v-editor

📝Write md or rich text easily
JavaScript
21
star
13

data-list

📜Load more list items easily
Vue
16
star
14

el-select-area

🇨🇳Chinese area select component(including Taiwan、Hongkong、Macao)
JavaScript
15
star
15

blog

📖团队博客
JavaScript
13
star
16

app-download

build your app's download page easily
JavaScript
9
star
17

excel-it

⬇️import/export excel easily
JavaScript
9
star
18

el-semver-input

🖊Semantic version input component
Vue
8
star
19

img-preview

🖼Preview your img  easily
JavaScript
7
star
20

dockerize-cli

🐳 Dockerize your web project in one minute
JavaScript
4
star
21

direct-mail

📧Send DirectMail with Node.js
JavaScript
4
star
22

serverless-nestjs-starter

🚀 serverless + nestjs + postgres
TypeScript
1
star
23

nuxt-jest-puppeteer

JavaScript
1
star
24

release-script

🖨Process FEMessage's release stuff
Shell
1
star
25

el-number-range

🔢Number range input component
JavaScript
1
star