@gonsin/gview 1.0.1 → 1.0.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 +66 -13
- package/dist/fonts/element-icons.313f7dac.woff +0 -0
- package/dist/fonts/element-icons.45201881.ttf +0 -0
- package/dist/index.js +335 -0
- package/package.json +6 -2
- package/.browserslistrc +0 -2
- package/babel.config.js +0 -5
- package/gonsin-gview-1.0.1.tgz +0 -0
- package/postcss.config.js +0 -5
- package/public/css/theme/animate.min.css +0 -7
- package/public/css/theme/brownishTheme.css +0 -10
- package/public/css/theme/coffeeTheme.css +0 -10
- package/public/css/theme/cyanTheme.css +0 -10
- package/public/css/theme/defaultTheme.css +0 -10
- package/public/css/theme/greenTheme.css +0 -16
- package/public/css/theme/greyTheme.css +0 -10
- package/public/css/theme/orangeTheme.css +0 -10
- package/public/css/theme/purpleTheme.css +0 -10
- package/public/css/theme/skyblueTheme.css +0 -10
- package/public/favicon.ico +0 -0
- package/public/imgs/antOutline-border.png +0 -0
- package/public/imgs/bg.png +0 -0
- package/public/imgs/logo.png +0 -0
- package/public/imgs/menu.png +0 -0
- package/public/index.html +0 -17
- package/src/App.vue +0 -143
- package/src/api/api.js +0 -28
- package/src/api/index.js +0 -31
- package/src/api/request.js +0 -210
- package/src/assets/font/font.scss +0 -12
- package/src/assets/font/font_dev.scss +0 -12
- package/src/assets/font/icon.scss +0 -179
- package/src/assets/images/svg/color.svg +0 -1
- package/src/assets/logo.png +0 -0
- package/src/assets/scss/common.scss +0 -338
- package/src/assets/scss/themeColor.scss +0 -35
- package/src/components/MyDialog.vue +0 -251
- package/src/components/MyForm.vue +0 -324
- package/src/components/MyFormAutocomplete.vue +0 -135
- package/src/components/MyFormCascader.vue +0 -107
- package/src/components/MyFormCheckBox.vue +0 -67
- package/src/components/MyFormEditor.vue +0 -85
- package/src/components/MyFormInput.vue +0 -68
- package/src/components/MyFormLine.vue +0 -49
- package/src/components/MyFormRadio.vue +0 -92
- package/src/components/MyFormSelect.vue +0 -122
- package/src/components/MyFormSelectDate.vue +0 -72
- package/src/components/MyFormSelectDateTime.vue +0 -82
- package/src/components/MyFormSelectTime.vue +0 -84
- package/src/components/MyFormSwitch.vue +0 -60
- package/src/components/MyFormTag.vue +0 -67
- package/src/components/MyFormTree.vue +0 -137
- package/src/components/MyFormUploads.vue +0 -91
- package/src/components/MyHeader.vue +0 -176
- package/src/components/MyMenus.vue +0 -150
- package/src/components/MyPageHeader.vue +0 -344
- package/src/components/MyTab.vue +0 -69
- package/src/components/MyTable.vue +0 -244
- package/src/components/Templatess.vue +0 -630
- package/src/index.js +0 -23
- package/src/main.js +0 -86
- package/src/router.js +0 -52
- package/src/store/index.js +0 -71
- package/src/utils/common.js +0 -96
- package/src/utils/permission.js +0 -36
- package/src/views/GView.vue +0 -185
- package/src/views/Home.vue +0 -26
- package/src/views/Login.vue +0 -249
- package/src/websocket/test.js +0 -140
- package/src/websocket/websocket.js +0 -141
- package/src/websocket/websocket1.js +0 -117
- package/src/websocket/websocket2.js +0 -128
- package/vue.config.js +0 -42
package/README.md
CHANGED
|
@@ -1,26 +1,79 @@
|
|
|
1
|
-
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: lrm lrm@gonsin.cn
|
|
3
|
+
* @Date: 2022-10-25 15:17:48
|
|
4
|
+
* @LastEditors: lrm lrm@gonsin.cn
|
|
5
|
+
* @LastEditTime: 2022-12-05 09:21:02
|
|
6
|
+
* @FilePath: \client\README.md
|
|
7
|
+
* @Description:
|
|
8
|
+
*
|
|
9
|
+
* Copyright (c) 2022 by lrm lrm@gonsin.cn, All Rights Reserved.
|
|
10
|
+
-->
|
|
11
|
+
# GView
|
|
2
12
|
|
|
3
|
-
##
|
|
4
|
-
|
|
13
|
+
## 安装依赖
|
|
14
|
+
|
|
15
|
+
```sh
|
|
5
16
|
npm install
|
|
6
17
|
```
|
|
7
18
|
|
|
8
|
-
|
|
9
|
-
|
|
19
|
+
## 项目测试
|
|
20
|
+
|
|
21
|
+
```sh
|
|
10
22
|
npm run serve
|
|
11
23
|
```
|
|
12
24
|
|
|
13
|
-
|
|
14
|
-
|
|
25
|
+
|
|
26
|
+
## 项目打包
|
|
27
|
+
|
|
28
|
+
```sh
|
|
15
29
|
npm run build
|
|
16
30
|
```
|
|
17
31
|
|
|
18
|
-
|
|
19
|
-
```
|
|
20
|
-
npm run test
|
|
21
|
-
```
|
|
32
|
+
## 项目发布
|
|
22
33
|
|
|
23
|
-
|
|
34
|
+
```sh
|
|
35
|
+
npm publish
|
|
24
36
|
```
|
|
25
|
-
|
|
37
|
+
|
|
38
|
+
## 使用方法:
|
|
39
|
+
|
|
40
|
+
详细参考 `example` 项目。
|
|
41
|
+
|
|
42
|
+
`main.js` 配置:
|
|
43
|
+
|
|
44
|
+
```js
|
|
45
|
+
// 引入 GView 标签
|
|
46
|
+
import GView from "@gonsin/gview";
|
|
47
|
+
Vue.use(GView);
|
|
48
|
+
|
|
49
|
+
new Vue({
|
|
50
|
+
router,
|
|
51
|
+
store: GView.store, // 引入 GView 的 store
|
|
52
|
+
render: (h) => h(App),
|
|
53
|
+
}).$mount("#app");
|
|
54
|
+
|
|
26
55
|
```
|
|
56
|
+
|
|
57
|
+
根据开发修改接口的地址:
|
|
58
|
+
|
|
59
|
+
```js
|
|
60
|
+
proxy: {
|
|
61
|
+
"/api": {
|
|
62
|
+
target: "http://192.168.2.192:8088",
|
|
63
|
+
changeOrigin: true,
|
|
64
|
+
disableHostCheck: false, // 新增该配置项
|
|
65
|
+
},
|
|
66
|
+
"/restapi": {
|
|
67
|
+
target: "http://192.168.2.192:8088",
|
|
68
|
+
changeOrigin: true,
|
|
69
|
+
disableHostCheck: false, // 新增该配置项
|
|
70
|
+
},
|
|
71
|
+
// 配置websocket开发时代理
|
|
72
|
+
"/gview/websocket": {
|
|
73
|
+
target: "ws://192.168.2.192:8088",
|
|
74
|
+
changeOrigin: true,
|
|
75
|
+
disableHostCheck: false, // 新增该配置项
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
|
|
79
|
+
```
|
|
Binary file
|
|
Binary file
|