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
VFG: Vue3 Form&Page Generator (based on Element-Plus).
Usage
- Install
vfg
pnpm install vfg
- 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')
- Page use vfg
<template>
<div>
<FormGenerator device="pc" />
</div>
</template>
<script lang="ts" setup>
</script>
- 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

Related Packages
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 | |
| 0.0.10 | ^3.5.11 | MIT | |
| 0.0.9 | ^3.5.11 | MIT | |
| 0.0.8 | ^3.5.11 | MIT | |
| 0.0.7 | ^3.5.11 | MIT | |
| 0.0.6 | ^3.5.11 | MIT | |
| 0.0.5 | ^3.5.11 | MIT | |
| 0.0.4 | ^3.5.11 | MIT | |
| 0.0.3 | ^3.5.11 | MIT | |
| 0.0.2 | ^3.5.11 | MIT | |
| 0.0.1 | ^3.5.11 | MIT |