Coder Social home page Coder Social logo

1xiyu / element-form-builder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openfext/vue-form-builder

0.0 2.0 0.0 2.23 MB

Build element-ui forms with JSON schema.

Home Page: https://element-form-builder.now.sh

License: MIT License

JavaScript 100.00%

element-form-builder's Introduction

element-form-builder

Version License Dependencies

Build element-ui forms with JSON schema.

๐Ÿ‡บ๐Ÿ‡ธ English | ๐Ÿ‡จ๐Ÿ‡ณ ็ฎ€ไฝ“ไธญๆ–‡

Example

โšก Live Preview | ๐Ÿ“– Docs

Screen Capture

Quick Start

First you need to have an element-ui project. If not, it is recommended to create one quickly using the preset below.

vue create --preset codetrial/vue-cli-plugin-element your-project

Install

yarn add element-form-builder
# OR
npm i element-form-builder

Registry

import FormBuilder from 'element-form-builder'

Vue.use(FormBuilder)

Witness the miracle moment

Vue template:

<el-form-builder :config="formConfig" v-model="formValues" label-width="80px">
</el-form-builder>

Vue component:

export default {
  data() {
    return {
      formValues: {
        title: 'Some Awesome Title'
      },

      formConfig: {
        rules: {
          title: [{ required: true, message: 'Please enter the title' }]
        },
        elements: [
          {
            tag: 'el-input',
            item: {
              label: 'Title'
            },
            detail: {
              name: 'title'
            }
          }
        ]
      }
    }
  }
}

Core Features

  • ๐Ÿ“ท Any Component
  • ๐Ÿ“บ Form Validation
  • โŒš Form Model
  • ๐Ÿ“ป Custom Slot

Contributing

Looking forward to your pull requests.

Built With

License

MIT

Copyright (c) 2018 - present, Felix Yang

element-form-builder's People

Contributors

felixpy avatar

Watchers

James Cloos avatar Allen Smith avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.