vfg

VFG: Vue3 Form Generator (element-plus).
657 2
Install
npm install vfg
Latest Version:0.1.2
Vue:3
License:MIT
Last Updated:Jan 21, 2025
Links: GitHub  ·  npm
Maintainer: aborn.jiang

VFG

Docs Download Version License

VFG: Vue3 Form&Page Generator (based on Element-Plus).

Usage

  1. Install vfg
pnpm install vfg
  1. Config main.js
import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'; // 三方依赖
import 'element-plus/theme-chalk/index.css';
import * as ElIcon from '@element-plus/icons-vue'
import zhCn from 'element-plus/es/locale/lang/zh-cn';

const app = createApp(App);
app.use(ElementPlus, {
    locale: zhCn,
});
Object.keys(ElIcon).forEach((key) => {
    app.component(key, ElIcon[key])
})

// vfg settings.
import { setupVFG } from "vfg"
import 'vfg/dist/assets/css/style.css';
import 'virtual:svg-icons-register'
setupVFG(app)

app.mount('#app')

  1. Page use vfg
<template>
  <div>
    <FormGenerator device="pc" />
  </div>
</template>

<script lang="ts" setup>
</script>
  1. Full example vfg-usage-demo

Coding Live

https://zhonghuitech.github.io/vfg/#/live

Project Setup

pnpm install

Compile and Hot-Reload for playground

pnpm pg

Type-Check, Compile and Minify for Production

pnpm build

Run Unit Tests with Vitest

pnpm test:unit

Tree Render Framework

framework

Related Packages

element-plus-generator

基于element-plus封装的表格、表单生成器

2,054
scalra-flexform

A flexible form module for Scalra framework

2,729
vue-gen-form-1

vue-gen-form-1

2,261 0
@schema-ts/vue

Vue form generator from schema

1,695 0
@xunserver-jsf/element-plus

Element Plus UI adapter for @xunserver-jsf/vue.

586 0

Version History

Version Released Vue License
0.1.2 ^3.5.11 MIT
0.1.1 ^3.5.11 MIT
0.1.0 ^3.5.11 MIT
0.0.12 ^3.5.11 MIT
0.0.11 ^3.5.11 MIT