@gonsin/gview 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,12 +1,18 @@
1
1
  # GView
2
2
 
3
+ <a href="https://www.npmjs.com/package/@gonsin/gview">
4
+ <img src="https://img.shields.io/npm/v/@gonsin/gview.svg?sanitize=true" alt="Version">
5
+ </a>
6
+
7
+ GView 项目的前端部分,接收处理来自服务器的 JSON 格式数据快速生成对应的表单、表格等视图。
8
+
3
9
  ## 安装依赖
4
10
 
5
11
  ```sh
6
12
  npm install
7
13
  ```
8
14
 
9
- ## 项目测试
15
+ ## 项目开发
10
16
 
11
17
  ```sh
12
18
  npm run serve
@@ -24,6 +30,14 @@ npm run build
24
30
  npm publish
25
31
  ```
26
32
 
33
+ ## 实例项目运行
34
+
35
+ ```sh
36
+ cd example
37
+ npm install
38
+ npm run serve
39
+ ```
40
+
27
41
  ## 使用方法:
28
42
 
29
43
  详细参考 `example` 项目。
@@ -64,3 +78,10 @@ proxy: {
64
78
  },
65
79
 
66
80
  ```
81
+
82
+ 另外 GView 提供了已经封装好的 axios 工具,可以直接引入使用:
83
+
84
+ ```js
85
+ // 引入提供的axios封装工具
86
+ import { http } from "@gonsin/gview";
87
+ ```