GithubHelp home page GithubHelp logo

zengxiaoqi / formlabel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lihongze/formlabel

0.0 1.0 0.0 19 KB

A set of custom tags that can convert back-end pojo classes into front-end form configurations

Java 100.00%

formlabel's Introduction

FormLabel

A set of custom annotations is implemented, which can convert the back-end pojo class to the front-end form configuration data format Contains several custom core tags @FormField, @FormGroup, @Rule, and a FormResolver class for label parsing and packaging can realize the conversion of business model classes into front-end recognizable form data structures, which are suitable for managing the conversion scenarios of back-end complex configuration forms

@FormField (Used to identify a single configuration item)

  • type : form type (text、radio、checkbox)
  • label : form description
  • options : form options

@FormGroup (Used to identify the embedded configuration group)

  • label : description

@Rule (Used to identify configuration item verification rules)

  • required : is it required
  • type : field type(etc:number)
  • message : prompt information
  • trigger : trigger config(change、blur)

Note: The rule tag attribute has not yet been defined to standardize the entity class, and the attributes can be flexibly changed with the front-end requirements

formlabel's People

Contributors

lihongze avatar

Watchers

James Cloos 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.