百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
V

vue-dynamic-forms

> 前端框架
开源

基于不同的业务对象模型,在 Vue 中动态创建响应式表单的简单方法

389 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

基于不同的业务对象模型,在 Vue 中动态创建响应式表单的简单方法

Vue 3.x.x Dynamic Forms

Implementing handcrafted forms can be:

  1. Costly
  2. Time-consuming

Especially if you need to create a very large form, in which the inputs are similar to each other, and they change frequently to meet rapidly changing business and regulatory requirements.

So, wouldn't it be more economical to create the forms dynamically? Based on metadata that describes the business object model?

That's Vue Dynamic Forms.

Status: Stable

This is the Vue 3.x.x compatible version. Out of the box Typescript support, tree shakeable, improved accessibility and lighter in size. For Vue 2.x.x please use the library tags 2.x.

Documentation

Complete documentation and examples available at

  • Documentation
  • Demos or if you prefer online here
  • Stackblitz
  • Code Sandbox
  • Migration Guide

You can help me keep working on this project

  • Become a Sponsor on GitHub
  • One-time donation via PayPal

Generous Unicorns

Accesible Benevolents

Installation

bash
$ npm install @asigloo/vue-dynamic-forms

or if you prefer yarn

bash
$ yarn add @asigloo/vue-dynamic-forms

Usage

The installation and usage has change to align with new Vue 3 plugin installation.

To create a new Dynamic Form instance, use the createDynamicForms function;

javascript
import { createApp } from 'vue'
import { createDynamicForms } from '@asigloo/vue-dynamic-forms'

const VueDynamicForms = createDynamicForms()

export const app = createApp(App)

app.use(VueDynamicForms)

In your component:

javascript

  

Demos

We've prepared some demos to show different use cases of the library and how to use each type of input field.

To check them just run the command bellow which run the app at http://localhost:3000/

bash
yarn run serve
  • General Form
  • Text Fields
  • Number Fields
  • Select Fields
  • Textarea Fields
  • Radio Fields
  • Login
  • Custom Fields
  • Axios form (Retrieve form structure from an API)
  • TailwindCSS styling

Development

Project setup

bash
yarn install

Compiles and hot-reloads

bash
yarn run serve

Compiles and minifies for production

bash
yarn run build

Generate types

bash
yarn run build:dts

Lints and fixes files

bash
yarn run lint

Run your unit tests

bash
yarn run test

Run your e2e tests

bash
yarn run test

Contributing

If you find this library useful and you want to help improve it, maintain it or just want a new feature, feel free to contact me, or feel free to do a PR .

Todolist

  • Update docs

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptdynamic-formsformform-validationsform-validator

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架