# vue-json-schema-form **Repository Path**: chen_0520/vue-json-schema-form ## Basic Information - **Project Name**: vue-json-schema-form - **Description**: 基于Vue,Json Schema和ElementUi构建了HTML Form 表单,适用于可视活动编辑器、h5编辑器等数据配置。 - **Primary Language**: JavaScript - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://github.com/lljj-x/vue-json-schema-form - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 4 - **Created**: 2022-08-13 - **Last Updated**: 2022-08-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # vue-json-schema-form Quickly building HTML form based on `Vue`, `JSON Schema` and `ElementUi`. ## Experience quickly * [Live playground](https://form.lljj.me/ "Vue JSON Schema Form Demo") * [Document](https://vue-json-schema-form.lljj.me/en/ "Vue JSON Schema Docs") * [Github](https://github.com/lljj-x/vue-json-schema-form "Vue JSON Schema github") * [Usage scenario - visual activity editor](https://form.lljj.me/vue-editor.html) * [Todo](https://vue-json-schema-form.lljj.me/en/guide/todo.html) ![](https://7.luochongfei.top/vue-json-schema-form.gif?1) ``` bash # npm npm install --save @lljj/vue-json-schema-form # yarn yarn add @lljj/vue-json-schema-form ``` ```vue ``` ## Run demo ```ssh # Install yarn install # Run (Run form editor and activity editor at the same time) # Form editor http://127.0.0.1:8800/ # Activity editor http://127.0.0.1:8800/vue-editor.html yarn run demo:dev # Only run form editor yarn run demo:dev --dir=index # Only run activity editor yarn run demo:dev --dir=vue-editor ``` ### Description * Follow the JSON Schema specification, only need to give the `JSON Schema`, you can generate the corresponding form * Quickly configure personalized UI views and check error messages, which can be adapted to commonly used UI libraries. The default view of the current version depends on `ElementUi`. * Uses the [ajv validator](https://github.com/epoberezkin/ajv) * Design ideas and reference to the schema analysis index [react-jsonschema-form](https://github.com/rjsf-team/react-jsonschema-form) ## Relevant [JSON Schema](https://json-schema.org/understanding-json-schema/index.html) | [Vue](https://cn.vuejs.org/) | [Element Ui](https://element.eleme.io/) ### Why Originated from shop decoration scenes, it can also be called front-end visual editing. In order to solve the universality of the component data configuration form, the form is generated through `JSON Schema`. The advantage of this is to solve the repetitive work of each configuration form, and the server can also maintain the same verification rules as the front-end based on the same schema. ## License Apache-2.0