1.2.0 • Published 1 year ago

ajfg v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

AJFG

JSON Schema based form generator built with vue 3

Installation

yarn add ajfg # npm i ajfg

Basic Usage

<JsonSchema :schema="schema" v-model="value"/>
schema = {
    type: 'object',
    properties: {
      aaa: { type: 'string', minLength: 1 },
      bbb: { type: 'boolean' },
      ccc: { type: 'string', enum: ['1', '2', '3'] },
      ddd: {
        type: 'object',
        title: '',
        properties: {
          a1: { type: 'string', minLength: 1, maxLength: 5 },
          b2: { type: 'boolean', default: true },
          ddd: {
            type: 'object',
            properties: {
              a1: { type: 'string', default: 'aaa' },
              b2: { type: 'boolean' }
            }
          }
        }
      }
    }
}

Credits

1.2.0

1 year ago

1.1.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago