@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.
Files changed (73) hide show
  1. package/README.md +66 -13
  2. package/dist/fonts/element-icons.313f7dac.woff +0 -0
  3. package/dist/fonts/element-icons.45201881.ttf +0 -0
  4. package/dist/index.js +335 -0
  5. package/package.json +6 -2
  6. package/.browserslistrc +0 -2
  7. package/babel.config.js +0 -5
  8. package/gonsin-gview-1.0.1.tgz +0 -0
  9. package/postcss.config.js +0 -5
  10. package/public/css/theme/animate.min.css +0 -7
  11. package/public/css/theme/brownishTheme.css +0 -10
  12. package/public/css/theme/coffeeTheme.css +0 -10
  13. package/public/css/theme/cyanTheme.css +0 -10
  14. package/public/css/theme/defaultTheme.css +0 -10
  15. package/public/css/theme/greenTheme.css +0 -16
  16. package/public/css/theme/greyTheme.css +0 -10
  17. package/public/css/theme/orangeTheme.css +0 -10
  18. package/public/css/theme/purpleTheme.css +0 -10
  19. package/public/css/theme/skyblueTheme.css +0 -10
  20. package/public/favicon.ico +0 -0
  21. package/public/imgs/antOutline-border.png +0 -0
  22. package/public/imgs/bg.png +0 -0
  23. package/public/imgs/logo.png +0 -0
  24. package/public/imgs/menu.png +0 -0
  25. package/public/index.html +0 -17
  26. package/src/App.vue +0 -143
  27. package/src/api/api.js +0 -28
  28. package/src/api/index.js +0 -31
  29. package/src/api/request.js +0 -210
  30. package/src/assets/font/font.scss +0 -12
  31. package/src/assets/font/font_dev.scss +0 -12
  32. package/src/assets/font/icon.scss +0 -179
  33. package/src/assets/images/svg/color.svg +0 -1
  34. package/src/assets/logo.png +0 -0
  35. package/src/assets/scss/common.scss +0 -338
  36. package/src/assets/scss/themeColor.scss +0 -35
  37. package/src/components/MyDialog.vue +0 -251
  38. package/src/components/MyForm.vue +0 -324
  39. package/src/components/MyFormAutocomplete.vue +0 -135
  40. package/src/components/MyFormCascader.vue +0 -107
  41. package/src/components/MyFormCheckBox.vue +0 -67
  42. package/src/components/MyFormEditor.vue +0 -85
  43. package/src/components/MyFormInput.vue +0 -68
  44. package/src/components/MyFormLine.vue +0 -49
  45. package/src/components/MyFormRadio.vue +0 -92
  46. package/src/components/MyFormSelect.vue +0 -122
  47. package/src/components/MyFormSelectDate.vue +0 -72
  48. package/src/components/MyFormSelectDateTime.vue +0 -82
  49. package/src/components/MyFormSelectTime.vue +0 -84
  50. package/src/components/MyFormSwitch.vue +0 -60
  51. package/src/components/MyFormTag.vue +0 -67
  52. package/src/components/MyFormTree.vue +0 -137
  53. package/src/components/MyFormUploads.vue +0 -91
  54. package/src/components/MyHeader.vue +0 -176
  55. package/src/components/MyMenus.vue +0 -150
  56. package/src/components/MyPageHeader.vue +0 -344
  57. package/src/components/MyTab.vue +0 -69
  58. package/src/components/MyTable.vue +0 -244
  59. package/src/components/Templatess.vue +0 -630
  60. package/src/index.js +0 -23
  61. package/src/main.js +0 -86
  62. package/src/router.js +0 -52
  63. package/src/store/index.js +0 -71
  64. package/src/utils/common.js +0 -96
  65. package/src/utils/permission.js +0 -36
  66. package/src/views/GView.vue +0 -185
  67. package/src/views/Home.vue +0 -26
  68. package/src/views/Login.vue +0 -249
  69. package/src/websocket/test.js +0 -140
  70. package/src/websocket/websocket.js +0 -141
  71. package/src/websocket/websocket1.js +0 -117
  72. package/src/websocket/websocket2.js +0 -128
  73. package/vue.config.js +0 -42
package/README.md CHANGED
@@ -1,26 +1,79 @@
1
- # gview
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
- ## Project setup
4
- ```
13
+ ## 安装依赖
14
+
15
+ ```sh
5
16
  npm install
6
17
  ```
7
18
 
8
- ### Compiles and hot-reloads for development
9
- ```
19
+ ## 项目测试
20
+
21
+ ```sh
10
22
  npm run serve
11
23
  ```
12
24
 
13
- ### Compiles and minifies for production
14
- ```
25
+
26
+ ## 项目打包
27
+
28
+ ```sh
15
29
  npm run build
16
30
  ```
17
31
 
18
- ### Run your tests
19
- ```
20
- npm run test
21
- ```
32
+ ## 项目发布
22
33
 
23
- ### Lints and fixes files
34
+ ```sh
35
+ npm publish
24
36
  ```
25
- npm run lint
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
+ ```