# yxy-code-generator

> 基于vue、ant-design-vue的表单设计器

Latest version **3.6.0** (published 2020-03-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install yxy-code-generator
pnpm add yxy-code-generator
yarn add yxy-code-generator
bun add yxy-code-generator
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; large bundle.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.6.0 |
| Published | 2020-03-30 |
| First published | 2020-03-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 11 |
| Unpacked size | 11.7 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | kchengz |
| Maintainers | tang1421 |
| Keywords | ant-design, form, k-form-design, 表单设计器, 表单设计, 工作流 |

## Links

- npm: https://www.npmjs.com/package/yxy-code-generator
- npm.io page: https://npm.io/package/yxy-code-generator

## Dependencies (11)

- [vue](https://npm.io/package/vue.md) ^2.6.10
- [moment](https://npm.io/package/moment.md) ^2.24.0
- [core-js](https://npm.io/package/core-js.md) ^2.6.5
- [clipboard](https://npm.io/package/clipboard.md) ^2.0.6
- [vue-router](https://npm.io/package/vue-router.md) ^3.0.3
- [vuedraggable](https://npm.io/package/vuedraggable.md) ^2.23.2
- [k-form-design](https://npm.io/package/k-form-design.md) ^3.3.2
- [babel-polyfill](https://npm.io/package/babel-polyfill.md) ^6.26.0
- [vue-quill-editor](https://npm.io/package/vue-quill-editor.md) ^3.0.6
- [babel-plugin-import](https://npm.io/package/babel-plugin-import.md) ^1.13.0
- [vue-codemirror-lite](https://npm.io/package/vue-codemirror-lite.md) ^1.0.4

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 3.6.0 (latest) — 2020-03-30
- 3.5.0 — 2020-03-30
- 3.4.0 — 2020-03-30

## README

# 表单设计器 k-form-design

<p align="center">
  <a href="https://github.com/vuejs/vue">
    <img src="https://img.shields.io/badge/vue-2.6.10-brightgreen.svg" alt="vue">
  </a>
  <a href="https://github.com/vueComponent/ant-design-vue">
    <img src="https://img.shields.io/badge/Ant%20Design%20Vue-1.5.0%20rc4-blue" alt="ant-design-vue">
  </a>
  <a href="https://github.com/Kchengz/k-form-design/blob/master/LICENSE">
    <img src="https://img.shields.io/github/license/mashape/apistatus.svg" alt="license">
  </a>
</p>

![](http://cdn.kcz66.com/demo.gif)

## 简介

参考项目[vue-form-making](https://github.com/GavinZhuLei/vue-form-making)，基于vue和ant-design-vue实现的表单设计器，样式使用less作为开发语言，主要功能是能通过简单操作来生成配置表单，生成可保存的JSON数据，并能将JSON还原成表单，使表单开发更简单更快速

- [github](https://github.com/Kchengz/k-form-design)
- [码云](https://gitee.com/kcz66/k-form-design)
- [项目预览](http://cdn.kcz66.com/k-form-design.html)
- [项目文档 Github Pages](https://kchengz.github.io/k-form-design/)
- [项目文档 Gitee Pages 较快](http://kcz66.gitee.io/k-form-design/#/)

## 特性
- 可视化配置页面
- 提供栅格、表格等布局
- 布局嵌套使用
- 提供预览、保存、生成json、生成可执行代码等操作
- 支持表单验证
- 快速获取表单数据
- 自定义组件插入
- 自定义主题色

## 组件
- KFormDesign 表单设计器（基于可视化操作快速设计出表单页面，生成配置json或页面）
- KFormBuild 表单构建器（根据设计器中获取的配置json数据，快速构建出表单页面）



## 安装
```cmd
# 使用yarn 
yarn add k-form-design

# 使用npm 
npm i k-form-design --save
```

## 引入组件
``` javascript
// 在main.js引入

import KFormDesign from 'k-form-design'
import 'k-form-design/lib/k-form-design.css'
Vue.use(KFormDesign)
```

## 使用组件
``` html
<template>
  <div>
   <k-form-design />
  </div>
</template>
```

## 交流
点击链接加入qq群聊，可以直接提问及反馈bug
[【k-form-desgin交流群：1020643215】](https://jq.qq.com/?_wv=1027&k=5BeoFAr)

License
---
[MIT](https://github.com/Kchengz/k-form-design/blob/master/LICENSE)
Copyright (c) 2019 Kchengz

---
_Source: https://npm.io/package/yxy-code-generator · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
