# exercise-form
**Repository Path**: pxhgood/exercise-form
## Basic Information
- **Project Name**: exercise-form
- **Description**: Exercise Form是一款vue 3基于Element Plus组件库,借鉴Variant Form的表单构建器
- **Primary Language**: TypeScript
- **License**: MIT
- **Default Branch**: dev
- **Homepage**: https://pxhnice.github.io/exercise-form-docs.github.io/
- **GVP Project**: No
## Statistics
- **Stars**: 19
- **Forks**: 8
- **Created**: 2023-12-01
- **Last Updated**: 2025-05-23
## Categories & Tags
**Categories**: Uncategorized
**Tags**: Vue, TypeScript, vite, element-plus
## README
## Exercise Form for Vue3.x and Element-plus
### 立即体验

[项目演示](https://pxhnice.github.io/exercise-form.github.io/)
### 安装依赖
```
pnpm install
```
### 开发调试
```
pnpm dev
```
### 生成打包
```
pnpm build
```
### 使用
#### 1.安装
```
npm install exercise-form
```
#### 2.引入并全局注册
```ts
//main.ts
import { createApp } from "vue";
import ElementPlus from "element-plus";
import ExerciseForm from "exercise-form"; // 组件引入
import "element-plus/dist/index.css";
import "exercise-form/dist/index.css"; // 样式引入
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import App from "./App.vue";
const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component);
}
app.use(ElementPlus);
app.use(ExerciseForm);
app.mount("#app");
```
#### 3.在模板中使用构建器组件
```vue
```
#### 4.在模板中使用渲染器组件
```vue
```
### 资源链接
- 项目演示:[https://pxhnice.github.io/exercise-form.github.io/](https://pxhnice.github.io/exercise-form.github.io/)
- 项目文档:[https://pxhnice.github.io/exercise-form-docs.github.io/](https://pxhnice.github.io/exercise-form-docs.github.io/)