DyForm 1.0.6
dotnet add package DyForm --version 1.0.6
NuGet\Install-Package DyForm -Version 1.0.6
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DyForm" Version="1.0.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DyForm" Version="1.0.6" />
<PackageReference Include="DyForm" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DyForm --version 1.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DyForm, 1.0.6"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DyForm@1.0.6
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DyForm&version=1.0.6
#tool nuget:?package=DyForm&version=1.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DyForm
一个基于 .NET + Vue 3 的低代码动态表单配置系统,提供可视化的表单设计、分组管理、脚本自定义和执行能力。
技术栈
后端
- 框架: ASP.NET Core (C#)
- ORM: FreeSql
- 数据库: SQLite
- 其他: OpenAPI
前端
- 框架: Vue 3 + TypeScript
- 构建工具: Vite
- UI 组件库: Element Plus
- 样式方案: UnoCSS
- HTTP 客户端: Alova
- 代码编辑器: Monaco Editor
- 路由: Vue Router
功能特性
- 表单组管理 — 可视化创建、编辑、管理表单组
- 表单项配置 — 灵活的表单项增删改查
- 实体管理 — 数据实体的定义与维护
- 脚本配置 — 支持自定义脚本逻辑执行
- 通用 CRUD — 基于 ORM 的通用增删改查能力
- 文件下载/上传 — 内置文件操作工具方法
- 树结构处理 — 扁平数组转树形结构等工具方法
项目结构
├── api/ # 后端服务 (.NET)
│ ├── Program.cs # 入口与服务注册
│ └── data/ # SQLite 数据目录
├── DyForm/ # 实体模型与数据访问
├── ui/ # 前端应用 (Vue 3)
│ ├── src/ # 源码
│ └── vite.config.ts # Vite 配置
└── dyform.slnx # 解决方案文件
快速开始
环境要求
- .NET SDK 8.0+
- Node.js 18+
- npm / pnpm
后端
cd api
dotnet run
后端默认监听 http://localhost:5026,首次运行会自动创建 SQLite 数据库文件。
前端
cd ui
npm install
npm run dev
前端开发服务器默认在 http://localhost:5173,配置了代理将 /api 请求转发至后端,/api/dyform/ui 请求转发至自身静态资源。
构建生产版本
cd ui
npm run build
本地开发
前端 vite.config.ts 中的代理配置:
| 路径前缀 | 目标地址 |
|---|---|
/api |
http://localhost:5026 |
/api/dyform/ui |
http://localhost:5173 (自身) |
API 路由通过 MapDyFormRoutes() 扩展方法注册。
许可
MIT License — Copyright (c) 2025 tanch
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- FreeSql (>= 3.5.309)
- FreesqlSimpleExtension (>= 1.0.5)
- Jint (>= 4.9.0)
- Nanoid (>= 3.1.0)
- Newtonsoft.Json (>= 13.0.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.