j2u
J2U
JSON Schema based form generator built with vue 3
Installation
yarn add j2u # npm i j2u
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
- inspired by vue-jsonschema-form and ncform
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.7.9 | ^3.2.45 | MIT | |
| 1.7.8 | ^3.2.45 | MIT | |
| 1.7.7 | ^3.2.45 | MIT | |
| 1.7.6 | ^3.2.45 | MIT | |
| 1.7.5 | ^3.2.45 | MIT | |
| 1.7.4 | ^3.2.45 | MIT | |
| 1.7.3 | ^3.2.45 | MIT | |
| 1.7.2 | ^3.2.45 | MIT | |
| 1.7.1 | ^3.2.45 | MIT | |
| 1.7.0 | ^3.2.45 | MIT | |
| 1.6.0 | ^3.2.45 | MIT | |
| 1.5.2 | ^3.2.45 | MIT | |
| 1.5.1 | ^3.2.45 | MIT | |
| 1.5.0 | ^3.2.45 | MIT | |
| 1.4.1 | ^3.2.45 | MIT | |
| 1.4.0 | ^3.2.45 | MIT | |
| 1.3.3 | ^3.2.45 | MIT | |
| 1.3.2 | ^3.2.45 | MIT | |
| 1.3.1 | ^3.2.45 | MIT | |
| 1.3.0 | ^3.2.45 | MIT |