@lljj/vue3-form-element

基于 Vue3 、ElementPlus、JsonSchema快速构建一个带完整校验的form表单
17,244 2,267
Install
npm install @lljj/vue3-form-element
Latest Version:1.19.0
License:Apache-2.0
Last Updated:May 20, 2026
Links: GitHub  ·  npm
Maintainer: lljj

@lljj/vue3-form-element

基于 Element Plus 、Vue3、 JSON Schema 生成表单

通过 @lljj/vue3-form-core 适配 ElementPlus 库

安装

## npm
npm install --save @lljj/vue3-form-element

## yarn
yarn add @lljj/vue3-form-element

使用

<VueForm
    v-model="formData"
    :schema="schema"
>
</VueForm>
//  使用
import VueForm from '@lljj/vue3-form-element';

export default {
    name: 'Demo',
    components: {
        VueForm
    },
    data() {
        return {
            formData: {},
            schema: {
                type: 'object',
                required: [
                    'userName',
                    'age',
                ],
                properties: {
                    userName: {
                        type: 'string',
                        title: '用户名',
                        default: 'Liu.Jun',
                    },
                    age: {
                        type: 'number',
                        title: '年龄'
                    },
                    bio: {
                        type: 'string',
                        title: '签名',
                        minLength: 10,
                        default: '知道的越多、就知道的越少',
                        'ui:options': {
                            placeholder: '请输入你的签名',
                            type: 'textarea',
                            rows: 1
                        }
                    }
                }
            }
        };
    }
};

License

Apache-2.0

Related Packages

@ederzeel/nuxt-schema-form-nightly

A runtime form generator for nuxt

5,610 0
@lljj/vue3-form-core

基于 Vue3 、JsonSchema快速构建一个带完整校验的form表单,vue3版本基础框架

33,693 2,267
@lljj/vue2-form-core

基于 Vue 、JsonSchema快速构建一个带完整校验的form表单,vue2版本基础框架

33,277 2,267
@lljj/vue-json-schema-form

基于 Vue 、ElementUi、JsonSchema快速构建一个带完整校验的form表单

33,030 2,267
@lljj/vue3-form-ant

基于 Vue3 、Antdv、JsonSchema快速构建一个带完整校验的form表单

8,871 2,267

Version History

Version Released License
1.19.0 Apache-2.0
1.18.0 Apache-2.0
1.17.1 Apache-2.0
1.17.0 Apache-2.0
1.14.2 Apache-2.0