@femessage/el-form-renderer

render form-item easily


Keywords
vue, element, render, form, component, data-driven, el-form, element-ui
License
MIT
Install
npm install @femessage/el-form-renderer@1.24.0

Documentation

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