Skip to content
This repository was archived by the owner on May 11, 2021. It is now read-only.

Commit 66ee7c1

Browse files
committed
完善文档
1 parent e32916d commit 66ee7c1

File tree

6 files changed

+64
-36
lines changed

6 files changed

+64
-36
lines changed

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 二当家的
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.m

README.md

+29-29
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
# test
2-
3-
## Project setup
4-
```
5-
npm install
6-
```
7-
8-
### Compiles and hot-reloads for development
9-
```
10-
npm run serve
11-
```
12-
13-
### Compiles and minifies for production
14-
```
15-
npm run build
16-
```
17-
18-
### Run your tests
19-
```
20-
npm run test
21-
```
22-
23-
### Lints and fixes files
24-
```
25-
npm run lint
26-
```
27-
28-
### Customize configuration
29-
See [Configuration Reference](https://cli.vuejs.org/config/).
1+
# vue-ele-form-generator | vue-ele-form 的表单设计器
2+
3+
## 介绍
4+
5+
vue-ele-form-generator 是专为 [vue-ele-form](https://github.com/dream2023/vue-ele-form) 开发的可视化表单设计工具, 让表单开发的效率更上一层楼!
6+
7+
在线设计地址: [https://dream2023.github.io/form/](https://dream2023.github.io/form/)
8+
9+
> 因为是存放到 GitHub, 如果觉得您觉得访问过慢, 可以自己本地编译
10+
11+
![image](https://raw.githubusercontent.com/dream2023/images/master/vue-ele-form-generator.4j3mllhqkds.gif)
12+
13+
## 特性
14+
15+
- 可视化配置页面
16+
- 提供基础组件 和 高级组件
17+
- 一键生成配置 json 数据
18+
- 一键生成.vue 格式内容
19+
20+
## 链接
21+
22+
- [vue-ele-form](https://github.com/dream2023/vue-ele-form)
23+
- [element-ui](http://element-cn.eleme.io)
24+
25+
## 捐赠
26+
27+
如果觉得还不错,请作者喝杯咖啡吧 Thanks♪(・ω・)ノ
28+
29+
![image](https://raw.githubusercontent.com/dream2023/images/master/donation.61k4s17xdft.jpg)

package.json

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
{
2-
"name": "test",
2+
"name": "vue-ele-form-generator",
33
"version": "0.1.0",
4-
"private": true,
4+
"private": false,
5+
"license": "MIT",
56
"scripts": {
67
"serve": "vue-cli-service serve",
78
"build": "vue-cli-service build",
89
"lint": "vue-cli-service lint"
910
},
11+
"repository": {
12+
"type": "git",
13+
"url": "https://github.com/dream2023/vue-ele-form-generator"
14+
},
1015
"dependencies": {
1116
"clipboard-copy": "^3.1.0",
1217
"core-js": "^2.6.5",
1318
"element-ui": "^2.11.1",
1419
"lodash.clonedeep": "^4.5.0",
1520
"normalize.css": "^8.0.1",
16-
"sprintf-js": "^1.1.2",
1721
"vue": "^2.6.10",
1822
"vue-ele-form": "^0.3.8",
1923
"vue-ele-form-bmap": "^0.1.0",

src/components/AppHeader.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
<div class="app-header-container">
33
<el-link
44
:underline="false"
5-
href="https://github.com/dream2023/vue-ele-form"
5+
href="https://github.com/dream2023/vue-ele-form-generator"
66
target="_blank"
77
type="primary"
88
>
99
<h1 class="app-header-title">VUE-ELE-FORM 表单生成器</h1>
1010
</el-link>
1111
<el-link
12-
href="https://github.com/dream2023/vue-ele-form"
12+
href="https://github.com/dream2023/vue-ele-form-generator"
1313
target="_blank"
1414
type="primary"
1515
>GitHub</el-link>

src/components/AppType.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default {
4242
const formDesc = {
4343
field: {
4444
type: 'input',
45-
label: '字段'
45+
label: '数据字段'
4646
},
4747
label: {
4848
type: 'input',
@@ -78,7 +78,7 @@ export default {
7878
methods: {
7979
addFormItem (data) {
8080
data = cloneDeep(data)
81-
data.field = data.type + this.globalId++
81+
data.field = 'key_' + this.globalId++
8282
const formDesc = cloneDeep(this.formDesc)
8383
if (data.defaultType) {
8484
formDesc.default.type = data.defaultType

vue.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
publicPath: process.env.NODE_ENV === 'production' ? '/form/' : '/'
3+
}

0 commit comments

Comments
 (0)