kn-cli 1.0.56 → 1.0.58

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 (218) hide show
  1. package/build/cli.config.js +5 -0
  2. package/build/webpack.config.js +4 -3
  3. package/package.json +3 -1
  4. package/readme.md +8 -0
  5. package/src/build.js +1 -0
  6. package/templates/template_oa/.DS_Store +0 -0
  7. package/templates/template_oa/build.sh +2 -0
  8. package/templates/template_oa/cli.config.js +24 -0
  9. package/templates/template_oa/dev.sh +89 -0
  10. package/templates/template_oa/frontend_build.sh +83 -0
  11. package/templates/template_oa/init/prepare-commit-msg +5 -0
  12. package/templates/template_oa/init.sh +33 -0
  13. package/templates/template_oa/jsconfig.json +10 -0
  14. package/templates/template_oa/package-lock.json +1925 -0
  15. package/templates/template_oa/package.json +24 -0
  16. package/templates/template_oa/public/.DS_Store +0 -0
  17. package/templates/template_oa/public/404.html +26 -0
  18. package/templates/template_oa/public/favicon.ico +0 -0
  19. package/templates/template_oa/public/favicon.png +0 -0
  20. package/templates/template_oa/public/index.html +43 -0
  21. package/templates/template_oa/public/pluginjs/.DS_Store +0 -0
  22. package/templates/template_oa/public/src/.DS_Store +0 -0
  23. package/templates/template_oa/public/src/_antd.less +237 -0
  24. package/templates/template_oa/public/src/_reset.less +131 -0
  25. package/templates/template_oa/public/src/_variable.less +84 -0
  26. package/templates/template_oa/public/src/assets/.DS_Store +0 -0
  27. package/templates/template_oa/public/src/assets/iconfont/.DS_Store +0 -0
  28. package/templates/template_oa/public/src/assets/iconfont/iconfont.eot +0 -0
  29. package/templates/template_oa/public/src/assets/iconfont/iconfont.less +57 -0
  30. package/templates/template_oa/public/src/assets/iconfont/iconfont.svg +36 -0
  31. package/templates/template_oa/public/src/assets/iconfont/iconfont.ttf +0 -0
  32. package/templates/template_oa/public/src/assets/iconfont/iconfont.woff +0 -0
  33. package/templates/template_oa/public/src/assets/iconfont/iconfont.woff2 +0 -0
  34. package/templates/template_oa/public/src/assets/images/.DS_Store +0 -0
  35. package/templates/template_oa/public/src/assets/images/avatar.png +0 -0
  36. package/templates/template_oa/public/src/assets/images/loading.svg +40 -0
  37. package/templates/template_oa/public/src/components/.DS_Store +0 -0
  38. package/templates/template_oa/public/src/components/Alert/index.jsx +0 -0
  39. package/templates/template_oa/public/src/components/Alert/index.less +0 -0
  40. package/templates/template_oa/public/src/components/Auth/index.jsx +44 -0
  41. package/templates/template_oa/public/src/components/Footer/index.jsx +17 -0
  42. package/templates/template_oa/public/src/components/Footer/index.less +28 -0
  43. package/templates/template_oa/public/src/components/IFrame/index.jsx +37 -0
  44. package/templates/template_oa/public/src/components/IFrame/index.less +4 -0
  45. package/templates/template_oa/public/src/components/IconFont/index.jsx +10 -0
  46. package/templates/template_oa/public/src/components/IconFont/index.less +5 -0
  47. package/templates/template_oa/public/src/components/Layout/.DS_Store +0 -0
  48. package/templates/template_oa/public/src/components/Layout/Basic/index.jsx +31 -0
  49. package/templates/template_oa/public/src/components/Layout/Basic/index.less +74 -0
  50. package/templates/template_oa/public/src/components/Layout/CenterBody/index.jsx +15 -0
  51. package/templates/template_oa/public/src/components/Layout/CenterBody/index.less +36 -0
  52. package/templates/template_oa/public/src/components/Layout/FormBlock/index.jsx +23 -0
  53. package/templates/template_oa/public/src/components/Layout/FormBlock/index.less +34 -0
  54. package/templates/template_oa/public/src/components/Layout/Provider/index.jsx +12 -0
  55. package/templates/template_oa/public/src/components/Layout/index.jsx +26 -0
  56. package/templates/template_oa/public/src/components/Layout/index.less +8 -0
  57. package/templates/template_oa/public/src/components/Link/index.jsx +24 -0
  58. package/templates/template_oa/public/src/components/Link/index.less +11 -0
  59. package/templates/template_oa/public/src/components/Loading/index.jsx +14 -0
  60. package/templates/template_oa/public/src/components/Loading/index.less +85 -0
  61. package/templates/template_oa/public/src/components/Nav/index.jsx +121 -0
  62. package/templates/template_oa/public/src/components/Nav/index.less +38 -0
  63. package/templates/template_oa/public/src/components/Page/.DS_Store +0 -0
  64. package/templates/template_oa/public/src/components/Page/PageLoading/index.jsx +30 -0
  65. package/templates/template_oa/public/src/components/Page/PageLoading/index.less +29 -0
  66. package/templates/template_oa/public/src/components/Popup/index.jsx +22 -0
  67. package/templates/template_oa/public/src/components/Popup/index.less +18 -0
  68. package/templates/template_oa/public/src/components/Toast/index.jsx +60 -0
  69. package/templates/template_oa/public/src/components/Toast/index.less +43 -0
  70. package/templates/template_oa/public/src/components/mask/index.jsx +47 -0
  71. package/templates/template_oa/public/src/components/mask/index.less +32 -0
  72. package/templates/template_oa/public/src/dictionary/index.js +39 -0
  73. package/templates/template_oa/public/src/hooks/.DS_Store +0 -0
  74. package/templates/template_oa/public/src/hooks/index.jsx +20 -0
  75. package/templates/template_oa/public/src/hooks/useDelay.jsx +29 -0
  76. package/templates/template_oa/public/src/hooks/useImageLoader.jsx +27 -0
  77. package/templates/template_oa/public/src/hooks/useLoading.jsx +42 -0
  78. package/templates/template_oa/public/src/hooks/useLogin.jsx +33 -0
  79. package/templates/template_oa/public/src/hooks/usePreload.jsx +66 -0
  80. package/templates/template_oa/public/src/hooks/useScrollTop.jsx +32 -0
  81. package/templates/template_oa/public/src/hooks/useSearch.jsx +137 -0
  82. package/templates/template_oa/public/src/hooks/useUpdate.jsx +11 -0
  83. package/templates/template_oa/public/src/index.jsx +50 -0
  84. package/templates/template_oa/public/src/mock/auth.js +91 -0
  85. package/templates/template_oa/public/src/mock/index.js +63 -0
  86. package/templates/template_oa/public/src/mock/user.js +70 -0
  87. package/templates/template_oa/public/src/mock/utils.js +33 -0
  88. package/templates/template_oa/public/src/pages/.DS_Store +0 -0
  89. package/templates/template_oa/public/src/pages/components/pageTitle/index.jsx +13 -0
  90. package/templates/template_oa/public/src/pages/components/pageTitle/index.less +20 -0
  91. package/templates/template_oa/public/src/pages/login/index.jsx +27 -0
  92. package/templates/template_oa/public/src/pages/login/index.less +44 -0
  93. package/templates/template_oa/public/src/pages/video/index.jsx +91 -0
  94. package/templates/template_oa/public/src/pages/video/index.less +12 -0
  95. package/templates/template_oa/public/src/provider/app.jsx +119 -0
  96. package/templates/template_oa/public/src/provider/menu.jsx +20 -0
  97. package/templates/template_oa/public/src/route.jsx +43 -0
  98. package/templates/template_oa/public/src/services/.DS_Store +0 -0
  99. package/templates/template_oa/public/src/services/auth.js +121 -0
  100. package/templates/template_oa/public/src/services/index.js +181 -0
  101. package/templates/template_oa/public/src/services/user.js +26 -0
  102. package/templates/template_oa/public/src/services/video.js +33 -0
  103. package/templates/template_oa/public/src/utils/.DS_Store +0 -0
  104. package/templates/template_oa/public/src/utils/index.js +66 -0
  105. package/templates/template_oa/public/static/.DS_Store +0 -0
  106. package/templates/template_oa/public/static/about.html +1 -0
  107. package/templates/template_oa/public/static/kssoLogin.html +22 -0
  108. package/templates/template_oa/readme.md +60 -0
  109. package/templates/template_oa/release/.DS_Store +0 -0
  110. package/templates/template_oa/report.sh +68 -0
  111. package/templates/template_oa/tools/.DS_Store +0 -0
  112. package/templates/template_oa/tools/iconfont/.DS_Store +0 -0
  113. package/templates/template_oa/tools/iconfont/dist/.DS_Store +0 -0
  114. package/templates/template_oa/tools/iconfont/gulpfile.js +70 -0
  115. package/templates/template_oa/tools/iconfont/package.json +20 -0
  116. package/templates/template_oa/tools/iconfont/run.sh +39 -0
  117. package/templates/template_oa/tools/iconfont/svg/.DS_Store +0 -0
  118. package/templates/template_oa/tools/iconfont/svg/arrowBack.svg +1 -0
  119. package/templates/template_oa/tools/iconfont/svg/check.svg +1 -0
  120. package/templates/template_oa/tools/iconfont/svg/close.svg +1 -0
  121. package/templates/template_oa/tools/iconfont/svg/down.svg +1 -0
  122. package/templates/template_oa/tools/iconfont/svg/image.svg +1 -0
  123. package/templates/template_oa/tools/iconfont/svg/play.svg +1 -0
  124. package/templates/template_oa/tools/iconfont/svg/refresh.svg +1 -0
  125. package/templates/template_oa/tools/iconfont/svg/warn.svg +1 -0
  126. package/templates/template_oa/tools/iconfont/templates/_icons.css +26 -0
  127. package/templates/template_oa/tools/iconfont/templates/_icons.less +29 -0
  128. package/templates/template_oa/tools/iconfont/templates/index.html +56 -0
  129. package/templates/template_oa/tools/tinypng/.DS_Store +0 -0
  130. package/templates/template_oa/tools/tinypng/img/.DS_Store +0 -0
  131. package/templates/template_oa/tools/tinypng/package.json +11 -0
  132. package/templates/template_oa/tools/tinypng/run.sh +15 -0
  133. package/templates/template_oa/versionPublish.sh +27 -0
  134. package/templates/template_oa/webpack.api.js +62 -0
  135. package/templates/template_offcial/.gitignore +6 -0
  136. package/templates/template_offcial/build.sh +2 -0
  137. package/templates/template_offcial/cli.config.js +25 -0
  138. package/templates/template_offcial/dev.sh +89 -0
  139. package/templates/template_offcial/frontend_build.sh +83 -0
  140. package/templates/template_offcial/init/prepare-commit-msg +5 -0
  141. package/templates/template_offcial/init.sh +33 -0
  142. package/templates/template_offcial/jsconfig.json +10 -0
  143. package/templates/template_offcial/package.json +23 -0
  144. package/templates/template_offcial/public/404.html +26 -0
  145. package/templates/template_offcial/public/favicon.ico +0 -0
  146. package/templates/template_offcial/public/favicon.png +0 -0
  147. package/templates/template_offcial/public/index.html +52 -0
  148. package/templates/template_offcial/public/src/_antd.less +4 -0
  149. package/templates/template_offcial/public/src/_reset.less +130 -0
  150. package/templates/template_offcial/public/src/_variable.less +78 -0
  151. package/templates/template_offcial/public/src/assets/iconfont/iconfont.eot +0 -0
  152. package/templates/template_offcial/public/src/assets/iconfont/iconfont.less +57 -0
  153. package/templates/template_offcial/public/src/assets/iconfont/iconfont.svg +36 -0
  154. package/templates/template_offcial/public/src/assets/iconfont/iconfont.ttf +0 -0
  155. package/templates/template_offcial/public/src/assets/iconfont/iconfont.woff +0 -0
  156. package/templates/template_offcial/public/src/assets/iconfont/iconfont.woff2 +0 -0
  157. package/templates/template_offcial/public/src/assets/images/avatar.png +0 -0
  158. package/templates/template_offcial/public/src/assets/images/loading.svg +40 -0
  159. package/templates/template_offcial/public/src/components/Alert/index.jsx +0 -0
  160. package/templates/template_offcial/public/src/components/Alert/index.less +0 -0
  161. package/templates/template_offcial/public/src/components/Footer/index.jsx +32 -0
  162. package/templates/template_offcial/public/src/components/Footer/index.less +8 -0
  163. package/templates/template_offcial/public/src/components/Header/index.jsx +68 -0
  164. package/templates/template_offcial/public/src/components/Header/index.less +76 -0
  165. package/templates/template_offcial/public/src/components/IconFont/index.jsx +10 -0
  166. package/templates/template_offcial/public/src/components/IconFont/index.less +5 -0
  167. package/templates/template_offcial/public/src/components/Layout/Provider/index.jsx +12 -0
  168. package/templates/template_offcial/public/src/components/Layout/index.jsx +20 -0
  169. package/templates/template_offcial/public/src/components/Layout/index.less +20 -0
  170. package/templates/template_offcial/public/src/components/Link/index.jsx +24 -0
  171. package/templates/template_offcial/public/src/components/Link/index.less +11 -0
  172. package/templates/template_offcial/public/src/components/Page/PageLoading/index.jsx +30 -0
  173. package/templates/template_offcial/public/src/components/Page/PageLoading/index.less +29 -0
  174. package/templates/template_offcial/public/src/components/Popup/index.jsx +22 -0
  175. package/templates/template_offcial/public/src/components/Popup/index.less +18 -0
  176. package/templates/template_offcial/public/src/components/Toast/index.jsx +60 -0
  177. package/templates/template_offcial/public/src/components/Toast/index.less +43 -0
  178. package/templates/template_offcial/public/src/hooks/index.jsx +12 -0
  179. package/templates/template_offcial/public/src/hooks/useImageLoader.jsx +27 -0
  180. package/templates/template_offcial/public/src/hooks/useInToView.jsx +55 -0
  181. package/templates/template_offcial/public/src/hooks/usePreload.jsx +66 -0
  182. package/templates/template_offcial/public/src/hooks/useScroll.jsx +66 -0
  183. package/templates/template_offcial/public/src/index.jsx +50 -0
  184. package/templates/template_offcial/public/src/mock/index.js +63 -0
  185. package/templates/template_offcial/public/src/mock/user.js +70 -0
  186. package/templates/template_offcial/public/src/mock/utils.js +33 -0
  187. package/templates/template_offcial/public/src/pages/index.jsx +23 -0
  188. package/templates/template_offcial/public/src/pages/index.less +0 -0
  189. package/templates/template_offcial/public/src/pages/mobile/index.jsx +11 -0
  190. package/templates/template_offcial/public/src/pages/mobile/index.less +0 -0
  191. package/templates/template_offcial/public/src/pages/pc/index.jsx +45 -0
  192. package/templates/template_offcial/public/src/pages/pc/index.less +42 -0
  193. package/templates/template_offcial/public/src/provider/app.jsx +26 -0
  194. package/templates/template_offcial/public/src/route.jsx +26 -0
  195. package/templates/template_offcial/public/src/services/index.js +182 -0
  196. package/templates/template_offcial/public/src/services/user.js +26 -0
  197. package/templates/template_offcial/public/src/utils/index.js +109 -0
  198. package/templates/template_offcial/public/static/about.html +1 -0
  199. package/templates/template_offcial/readme.md +59 -0
  200. package/templates/template_offcial/report.sh +68 -0
  201. package/templates/template_offcial/tools/iconfont/gulpfile.js +70 -0
  202. package/templates/template_offcial/tools/iconfont/package.json +20 -0
  203. package/templates/template_offcial/tools/iconfont/run.sh +39 -0
  204. package/templates/template_offcial/tools/iconfont/svg/arrowBack.svg +1 -0
  205. package/templates/template_offcial/tools/iconfont/svg/check.svg +1 -0
  206. package/templates/template_offcial/tools/iconfont/svg/close.svg +1 -0
  207. package/templates/template_offcial/tools/iconfont/svg/down.svg +1 -0
  208. package/templates/template_offcial/tools/iconfont/svg/image.svg +1 -0
  209. package/templates/template_offcial/tools/iconfont/svg/play.svg +1 -0
  210. package/templates/template_offcial/tools/iconfont/svg/refresh.svg +1 -0
  211. package/templates/template_offcial/tools/iconfont/svg/warn.svg +1 -0
  212. package/templates/template_offcial/tools/iconfont/templates/_icons.css +26 -0
  213. package/templates/template_offcial/tools/iconfont/templates/_icons.less +29 -0
  214. package/templates/template_offcial/tools/iconfont/templates/index.html +56 -0
  215. package/templates/template_offcial/tools/tinypng/package.json +11 -0
  216. package/templates/template_offcial/tools/tinypng/run.sh +15 -0
  217. package/templates/template_offcial/versionPublish.sh +27 -0
  218. package/templates/template_offcial/webpack.api.js +36 -0
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "template_oa",
3
+ "version": "1.0.0",
4
+ "main": "lib/index",
5
+ "scripts": {
6
+ "clean": "rm -rf ./dist"
7
+ },
8
+ "license": "MIT",
9
+ "dependencies": {
10
+ "antd": "~4.24.8",
11
+ "axios": "~1.1.3",
12
+ "moment": "~2.29.4",
13
+ "kn-hooks": "~0.0.16",
14
+ "react": "~17.0.2",
15
+ "react-dom": "~17.0.2",
16
+ "react-router": "~6.3.0",
17
+ "react-router-dom": "~6.3.0",
18
+ "unstated-next": "~1.1.0",
19
+ "vconsole": "~3.9.5"
20
+ },
21
+ "engines": {
22
+ "node": "16.18.0"
23
+ }
24
+ }
@@ -0,0 +1,26 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
7
+ <title>404</title>
8
+ <style>
9
+ body{
10
+ background-color:#444;
11
+ font-size:14px;
12
+ }
13
+ h3{
14
+ font-size:60px;
15
+ color:#eee;
16
+ text-align:center;
17
+ padding-top:30px;
18
+ font-weight:normal;
19
+ }
20
+ </style>
21
+ </head>
22
+
23
+ <body>
24
+ <h3>404,您请求的文件不存在!</h3>
25
+ </body>
26
+ </html>
@@ -0,0 +1,43 @@
1
+ <!doctype html>
2
+ <html>
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <meta name="viewport"
7
+ content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no,viewport-fit=cover" />
8
+ <meta name="format-detection" content="telephone=no,email=no,adress=no">
9
+ <meta name="apple-touch-fullscreen" content="yes">
10
+ <meta name="apple-mobile-web-app-capable" content="yes">
11
+ <meta name="apple-mobile-web-app-status-bar-style" content="black">
12
+
13
+ <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
14
+ <link rel="icon" href="favicon.png" type="image/png">
15
+ <title>网站标题</title>
16
+ </head>
17
+
18
+ <body>
19
+ <div id="main-view" />
20
+ <script>
21
+ var docEl = document.documentElement;
22
+ function setRemUnit(type) {
23
+ let w = Math.max(window.innerWidth, docEl.clientWidth, docEl.offsetWidth);
24
+ let defaultWidth = 375;//填入设计稿上的宽度
25
+ w = w > defaultWidth ? defaultWidth : w;
26
+ var rem = w / defaultWidth * 100;
27
+ docEl.style.fontSize = rem + 'px'
28
+ }
29
+ setRemUnit('init');
30
+ if (document.readyState === 'interactive') {
31
+ setRemUnit('init');
32
+ } else {
33
+ window.addEventListener('DOMContentLoaded', function () {
34
+ setRemUnit('init');
35
+ })
36
+ }
37
+ window.addEventListener("resize", function () {
38
+ setRemUnit('resize');
39
+ });
40
+ </script>
41
+ </body>
42
+
43
+ </html>
@@ -0,0 +1,237 @@
1
+ @import '~antd/dist/antd.less';
2
+
3
+ // 这里可以重写antd的主题样式变量,参考 https://4x.ant.design/docs/react/customize-theme-cn
4
+
5
+ @primary-color:#2a96fc;
6
+
7
+ @checkbox-size:18px;
8
+ @height-base: 28px;
9
+ @btn-height-base: 28px;
10
+ @input-height-base: 28px;
11
+ @font-size-base: 14px;
12
+ @border-radius-base: 4px;
13
+
14
+ @pagination-item-size:26px;
15
+
16
+
17
+
18
+ :global{
19
+ @colorTable: #32a3fa;
20
+
21
+ .ant-upload-list-picture-card .ant-upload-list-item-info:before{
22
+ left:0;
23
+ }
24
+ //Anchor
25
+ .ant-anchor-link{
26
+ position: static !important;
27
+ }
28
+ .ant-anchor-ink-ball{
29
+ width:1px;
30
+ border-radius: 0;
31
+ border-width: 1px;
32
+ height:19px;
33
+ margin-top:-5px;
34
+ }
35
+ .ant-anchor-wrapper{
36
+ box-shadow: 3px 4px 5px #ccc;
37
+ padding:10px 5px
38
+ }
39
+
40
+ //Table
41
+ .ant-table tbody > tr > td {
42
+ padding:10px;
43
+ }
44
+ .ant-table-tbody>.ant-table-row:nth-child(even) td {
45
+ background: #f9fafa
46
+ }
47
+ .ant-table thead > tr > th {
48
+ padding:0 8px;
49
+ }
50
+
51
+ .ant-table-content{
52
+ thead>tr>th{
53
+ height: 45px;
54
+ font-weight: 700;
55
+ color: @colorTable;
56
+ font-weight: 500;
57
+ background: #f9faf9!important;
58
+ background: -webkit-linear-gradient(top, #f9faf9 0, #f0f0ef 100%)!important;
59
+ }
60
+ .ant-table-cell{
61
+ font-size: 14px;
62
+ a[data-oper]{
63
+ margin-right: 10px;
64
+ &:last-child{
65
+ margin-right: 0;;
66
+ }
67
+ &[data-edit]{
68
+ color:@colorTable;
69
+ font-size: inherit;
70
+ }
71
+ &[data-view]{
72
+ color:@colorTable;
73
+ font-size: inherit;
74
+ }
75
+ &[data-cancel]{
76
+ color:#2a96fc;
77
+ font-size: inherit;
78
+ }
79
+ &:disabled{
80
+ color:#ccc;
81
+ }
82
+ }
83
+ }
84
+ }
85
+
86
+ //Pagination
87
+ .ant-pagination-item-active{
88
+ background-color: #108ee9;
89
+ a,
90
+ &:hover a,
91
+ &:focus a{
92
+ color:#fff;
93
+ }
94
+ }
95
+ .ant-pagination-next,
96
+ .ant-pagination-prev{
97
+ svg{font-size:10px;padding-bottom:2px;}
98
+ }
99
+
100
+ //Input
101
+ .ant-input-group-addon{
102
+ border:0;
103
+ background:transparent;
104
+ }
105
+
106
+
107
+
108
+ span.anticon.anticon-down.ant-input-number-handler-down-inner *,
109
+ span.anticon.anticon-up.ant-input-number-handler-up-inner *{
110
+ font-size:12px;
111
+ }
112
+
113
+
114
+ //Radio
115
+ .ant-radio {
116
+
117
+ .ant-radio-inner{
118
+ width:20px;
119
+ height:20px;
120
+ border-color:#d9d9d9;
121
+ &:after{
122
+ width:.10px;
123
+ height:10px;
124
+ top:4px;
125
+ left:4px;
126
+ background-color:#108ee9;
127
+ }
128
+ }
129
+ & .ant-radio-checked{
130
+ .ant-radio-checked{
131
+ border-color: #108ee9;
132
+ }
133
+ }
134
+ }
135
+
136
+
137
+ //Checkbox
138
+ .ant-checkbox-inner ,
139
+ .ant-checkbox-checked:after{
140
+ border-radius:0;
141
+ }
142
+
143
+ .ant-checkbox-checked .ant-checkbox-inner{
144
+ background-color:#108ee9;
145
+ border-color:#108ee9;
146
+ }
147
+ .ant-checkbox-group-item {
148
+ // margin-bottom: .08rem;
149
+ }
150
+ .ant-checkbox + span {font-weight:700;font-size:12px;}
151
+
152
+ .ant-checkbox-wrapper+.ant-checkbox-wrapper{
153
+ margin-left:0;
154
+ }
155
+ .ant-checkbox-wrapper:not(:last-child){
156
+ margin-right:8px;
157
+ }
158
+
159
+ //Select
160
+ .ant-select-arrow .anticon.anticon-down,
161
+ .ant-select-open .ant-select-arrow .anticon.anticon-down {
162
+ transform-origin: 50% 30% ;
163
+ transition:none;
164
+ }
165
+ .ant-select-selection-search-input{
166
+ border-radius: 4px;
167
+ }
168
+ .ant-select-multiple .ant-select-selection-item-remove svg{
169
+ font-size:8px;
170
+ top:-2px;
171
+ }
172
+ .ant-select-arrow .anticon > svg {
173
+ font-size:8px;
174
+ top:1px;
175
+ }
176
+
177
+
178
+
179
+
180
+
181
+
182
+ .ant-btn.ant-btn-primary[data-submit] {
183
+ color: #fff;
184
+ background-color: #3ab925;
185
+ border-color: #3ab925;
186
+ }
187
+ .ant-btn.ant-btn-primary{
188
+ // background:#2a96fc;
189
+ &:hover{
190
+ opacity: .9;
191
+ }
192
+ }
193
+
194
+ //Upload
195
+ .ant-upload-list-item-card-actions{
196
+ right:-14px;
197
+ }
198
+ .ant-upload-list-item-name{
199
+ color:#219efd;
200
+ }
201
+ .ant-upload-list{
202
+ display: flex;
203
+ align-items: center;
204
+ flex-wrap: wrap;
205
+ }
206
+
207
+ //Form.Item
208
+ //取消Form.Item下面会空一行的问题
209
+ .ant-form-item{
210
+ margin-bottom:0;
211
+ }
212
+
213
+ //label占1rem,控件占2.5rem的样式
214
+ .FORM_STYLE_08_25{
215
+ .ant-form-item{
216
+ width:370px;
217
+ .ant-form-item-label{
218
+ flex: 0 0 90px
219
+ }
220
+ .ant-form-item-control{
221
+ flex:1 1 auto;
222
+ }
223
+ }
224
+ }
225
+ .FORM_STYLE_1_25{
226
+ .ant-form-item{
227
+ width:350px;
228
+ .ant-form-item-label{
229
+ flex: 0 0 100px;
230
+ }
231
+ .ant-form-item-control{
232
+ flex:1 1 auto;
233
+ }
234
+ }
235
+ }
236
+
237
+ }
@@ -0,0 +1,131 @@
1
+
2
+ @import '~@/assets/iconfont/iconfont.less';
3
+ @import './_variable.less';
4
+
5
+ :global {
6
+ html{
7
+ // ios webview 进入后高度不正确的问题
8
+ background-color: white;
9
+ width:100vw;
10
+ height: 100%;
11
+ // height:100vh;
12
+ padding:var(--safeTop) var(--safeRight) var(--safeBottom) var(--safeLeft);
13
+ }
14
+
15
+ body,#main-view{
16
+ background-color: #f9fcff;
17
+ width:100%;
18
+ height:100%;
19
+ overflow: hidden;
20
+ position: relative;
21
+ }
22
+
23
+ #main-view{
24
+ // overflow: auto;
25
+ // overflow: scroll;
26
+ // -webkit-overflow-scrolling: touch;
27
+ // display: flex;
28
+ // flex-direction: column;
29
+ // align-items: center;
30
+ // flex-wrap: wrap;
31
+ }
32
+
33
+ u {
34
+ font-weight: inherit;
35
+ }
36
+ u,
37
+ b,
38
+ strong {
39
+ font-size: inherit;
40
+ color: inherit;
41
+ line-height: inherit;
42
+ letter-spacing: inherit;
43
+ }
44
+ *[data-inherit] {
45
+ font-weight: inherit;
46
+ font-size: inherit;
47
+ color: inherit;
48
+ line-height: inherit;
49
+ letter-spacing: inherit;
50
+ }
51
+ a{
52
+ color: var(--color-primary);
53
+ }
54
+
55
+
56
+ a,div,p,span,section,hgroup{
57
+ // -webkit-touch-callout:none;
58
+ // -webkit-user-drag:none;
59
+ // -webkit-user-select:none;
60
+ // -moz-user-select:none;
61
+ // -ms-user-select:none;
62
+ // user-select:none;
63
+ }
64
+
65
+
66
+ * {
67
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
68
+ // position: relative;
69
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
70
+ -webkit-text-size-adjust: none;
71
+ -webkit-box-sizing: border-box;
72
+ -moz-box-sizing: border-box;
73
+ -ms-box-sizing: border-box;
74
+ box-sizing: border-box;
75
+
76
+ margin: 0;
77
+ padding: 0;
78
+ border: 0;
79
+ border-spacing: 0;
80
+ outline: none;
81
+ // -webkit-font-smoothing: antialiased;
82
+ // -moz-osx-font-smoothing: grayscale;
83
+ -webkit-touch-callout: none;
84
+ // font-size:1px;
85
+ font-weight:var(--weight-Regular);
86
+ font-size:var(--font-Regular);
87
+ }
88
+
89
+ html{
90
+ font-size: 100PX;
91
+ }
92
+
93
+ *[data-weight-thin]{font-weight: var(--weight-Thin);}//极细体
94
+ *[data-weight-ultraLight]{font-weight: var(--weight-Ultralight);}//纤细体
95
+ *[data-weight-light]{font-weight: var(--weight-Light);}//细体
96
+ *[data-weight-regular]{font-weight: var(--weight-Regular);}//常规
97
+ *[data-weight-medium]{font-weight: var(--weight-Medium);}//中黑、中粗
98
+ *[data-weight-semibold]{font-weight: var(--weight-Semibold);}//中黑、中粗
99
+
100
+
101
+ #__vconsole *{
102
+ font-size:14PX;
103
+ }
104
+
105
+ body[data-debug-layout]{
106
+ border:4px solid #d64f68;
107
+ }
108
+
109
+
110
+ body[scroll]{
111
+ overflow:visible;
112
+ }
113
+ .touch-scroll {
114
+ overflow: scroll;
115
+ -webkit-overflow-scrolling: touch;
116
+ }
117
+
118
+ p,div,section,hgroup
119
+ {
120
+ &[data-text-break]{
121
+ white-space: pre-wrap;
122
+ word-break:break-all;
123
+ }
124
+ }
125
+
126
+ .wrap-space{
127
+ padding:var(--padding-small)
128
+ }
129
+
130
+ }
131
+
@@ -0,0 +1,84 @@
1
+
2
+ @pullLoadHeight:100;
3
+
4
+ :root{
5
+ --safeTop: constant(safe-area-inset-top);
6
+ --safeBottom: constant(safe-area-inset-bottom);
7
+ --safeLeft: constant(safe-area-inset-left);
8
+ --safeRight: constant(safe-area-inset-right);
9
+
10
+ --safeTop: env(safe-area-inset-top);
11
+ --safeBottom: env(safe-area-inset-bottom);
12
+ --safeLeft: env(safe-area-inset-left);
13
+ --safeRight: env(safe-area-inset-right);
14
+
15
+ --weight-Thin:100;
16
+ --weight-Ultralight:200;
17
+ --weight-Light:300;
18
+ --weight-Regular:400;
19
+ --weight-Medium:500;
20
+ --weight-Semibold:700;
21
+
22
+ --font-Regular:14px;
23
+
24
+
25
+ --color-primary-dark:#001529;
26
+ --color-primary:#2F7CFF;
27
+ --color-primary-hover:#1565c0;
28
+
29
+ --color-font-bold:#141414;
30
+ --color-font-gray:#8C8C8C;
31
+ --color-underscore:#D9D9D9;
32
+ --color-error:#d32f2f;
33
+
34
+ --color-border-hover:rgba(0, 0, 0, 0.9);
35
+ --color-text:#262626;
36
+ --color-text-hover:rgba(0,0,0,.9);
37
+ --color-menu-text:rgba(0, 0, 0, 0.45);
38
+ --color-menu-text-active:white;
39
+
40
+ --color-dropmenu-hover:rgba(0, 0, 0, 0.04);
41
+ --color-dropmenu-text:rgba(0, 0, 0, 0.7);
42
+ --color-box-shadow:#dddddd;
43
+
44
+
45
+ --color-body-background:#F0F2F3;
46
+
47
+ --radius-default: 8px;
48
+ --radius-small: 4px;
49
+
50
+ --margin-default:12px;
51
+ --margin-larger:24px;
52
+ --margin-small:8px;
53
+
54
+ --padding-default:26px;
55
+ --padding-larger:32px;
56
+ --padding-small:16px;
57
+
58
+ --padding-body:34px 24px;
59
+
60
+ --nav-width:240px;
61
+ --center-body-width:100%;
62
+ --body-width:640px;
63
+
64
+ --min-width:1200px;
65
+
66
+ --topMenu-height:64px;
67
+ --height-header:60px;
68
+ --height-input:50px;
69
+ --height-input-small:40px;
70
+
71
+ --height-footer:90px;
72
+
73
+ // 100以下为非弹出式的UI
74
+ --z-nav-pc:10;
75
+ --z-top-menu:10;
76
+ --z-nav-mobile:50;
77
+
78
+ // 100以上为弹出式的UI
79
+ --z-dropMenu:100;
80
+ --z-dialog:1040;
81
+ --z-toast:1045;
82
+
83
+
84
+ }
@@ -0,0 +1,57 @@
1
+ :global{
2
+ @font-face {
3
+ font-family: "iconfont";
4
+ src: url('~@/assets/iconfont/iconfont.eot');
5
+ src: url('~@/assets/iconfont/iconfont.eot?#iefix') format('eot'),
6
+ url('~@/assets/iconfont/iconfont.woff') format('woff'),
7
+ url('~@/assets/iconfont/iconfont.ttf') format('truetype'),
8
+ url('~@/assets/iconfont/iconfont.svg#iconfont') format('svg');
9
+ }
10
+
11
+ .iconfont:before {
12
+ font-family: "iconfont";
13
+ -webkit-font-smoothing: antialiased;
14
+ -moz-osx-font-smoothing: grayscale;
15
+ font-style: normal;
16
+ font-variant: normal;
17
+ font-weight: normal;
18
+ /* speak: none; only necessary if not using the private unicode range (firstGlyph option) */
19
+ text-decoration: none;
20
+ text-transform: none;
21
+ }
22
+
23
+
24
+ .icon-arrowBack:before {
25
+ content: "\E001";
26
+ }
27
+
28
+ .icon-check:before {
29
+ content: "\E002";
30
+ }
31
+
32
+ .icon-close:before {
33
+ content: "\E003";
34
+ }
35
+
36
+ .icon-down:before {
37
+ content: "\E004";
38
+ }
39
+
40
+ .icon-image:before {
41
+ content: "\E005";
42
+ }
43
+
44
+ .icon-play:before {
45
+ content: "\E006";
46
+ }
47
+
48
+ .icon-refresh:before {
49
+ content: "\E007";
50
+ }
51
+
52
+ .icon-warn:before {
53
+ content: "\E008";
54
+ }
55
+
56
+
57
+ }
@@ -0,0 +1,36 @@
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
+ <svg xmlns="http://www.w3.org/2000/svg">
4
+ <defs>
5
+ <font id="iconfont" horiz-adv-x="191.87258461178124">
6
+ <font-face font-family="iconfont"
7
+ units-per-em="128" ascent="128"
8
+ descent="0" />
9
+ <missing-glyph horiz-adv-x="0" />
10
+ <glyph glyph-name="arrowBack"
11
+ unicode="&#xE001;"
12
+ horiz-adv-x="128" d="M39.955 63.998L81.957 105.999L87.613 100.343L45.612 58.34zM45.652 69.692L88.149 27.196L82.492 21.539L39.995 64.036z" />
13
+ <glyph glyph-name="check"
14
+ unicode="&#xE002;"
15
+ horiz-adv-x="128" d="M51.382857125 40.68571425C53.4034285 37.8514285 57.61828575 37.8514285 59.648 40.68571425L93.348571375 87.40571425A1.28 1.28 0 0 1 92.30628575 89.444571375H84.8A5.092571375 5.092571375 0 0 1 80.65828575 87.31428575L55.515428625 52.43428575L44.132571375 68.24228575A5.12 5.12 0 0 1 39.98171425 70.363428625H32.484571375A1.28 1.28 0 0 1 31.44228575 68.33371425L51.37371425 40.68571425zM122.88 128H5.12A5.12 5.12 0 0 1 0 122.88V5.12C0 2.28571425 2.28571425 0 5.12 0H122.88C125.71428575 0 128 2.28571425 128 5.12V122.88A5.12 5.12 0 0 1 122.88 128zM116.48 11.52H11.52V116.48H116.48V11.52z" />
16
+ <glyph glyph-name="close"
17
+ unicode="&#xE003;"
18
+ horiz-adv-x="128" d="M74.56591125 63.999946625L127.611200375 125.42922875C128.496533 126.453227875 127.749866875 127.99989325 126.373868 127.999893375H110.2458815A3.338663875 3.338663875 0 0 1 107.76055025 126.87989425L64.00592 76.213269875L20.240623125 126.87989425A3.274664 3.274664 0 0 1 17.755291875 127.999893375H1.627305375C0.240639875 127.999893375 -0.506026125 126.453228 0.389973 125.42922875L53.4565955 63.999946625L0.389973 2.5706645C-0.495359625 1.546665375 0.2513065 0 1.627305375 0H17.755291875C18.715291125 0 19.611290375 0.415999625 20.240623125 1.119999125L64.00592 51.7866235L107.771216875 1.119999125A3.274664 3.274664 0 0 1 110.256548125 0H126.384534625C127.771200125 0 128.517866125 1.546665375 127.621867 2.5706645L74.5552445 63.999946625z" />
19
+ <glyph glyph-name="down"
20
+ unicode="&#xE004;"
21
+ horiz-adv-x="191.87258461178124" d="M189.9647490035717 128H171.0226685809696C169.7427983176176 128 168.5269214986842 127.36005675 167.758999415672 126.35214625L95.9902723763624 28.4568345L24.2215453370529 126.35214625A4.0635882205157 4.063639375 0 0 1 20.9738744703607 128H2.0317940477586C0.3839610415061 128 -0.5759416247583 126.14416475 0.3839610415061 124.832281125L89.4309370735613 3.3070665A8.1111780174276 8.111280125 0 0 1 102.5016125333505 3.3070665L191.580585287615 124.832281125A1.9837989019456 1.983823875 0 0 1 189.9807474271755 128z" />
22
+ <glyph glyph-name="image"
23
+ unicode="&#xE005;"
24
+ horiz-adv-x="170.63111851697565" d="M164.5781985954392 127.998613375H6.0800812704923A5.9520795555871 5.951866125 0 0 1 0 122.185410875V5.814695875C0 2.6041015 2.7200362854808 0.001493375 6.0907480279826 0.00149325H164.5888653529294A5.9520795555871 5.951866125 0 0 1 170.679613380912 5.814695875V122.185410875A5.9520795555871 5.951866125 0 0 1 164.5781985954392 127.998613375zM156.9514299885937 13.089198875H13.7175166348281V20.342369L40.0965356627626 50.219030125L68.6835842415614 17.8570915L113.164178483573 68.181292625L156.9514299885937 18.614407875V13.089198875zM156.9514299885937 36.694001L114.3268606752104 84.948915375A1.5573540938434 1.55729825 0 0 1 112.001496166931 84.948915375L68.6942509990517 35.926018375L41.2592178544 66.96532A1.5573540938434 1.55729825 0 0 1 38.9338534711252 66.96532L13.7175166348281 38.421962125V114.900241375H156.9514299885937V36.694001zM45.7179441110941 74.18649075C54.9767344892281 74.18649075 62.4755012561638 81.343663 62.4755012561638 90.18613075C62.4755012561638 99.017932 54.9767343642236 106.18577075 45.7179441110941 106.185770875S28.9497200835296 99.017932125 28.9497200835296 90.18613075C28.9497200835296 81.343663 36.4591537329601 74.18649075 45.7179441110941 74.18649075zM45.7179441110941 95.274016375C48.6726503114049 95.274016375 51.0513487321399 93.0020675 51.0513486071354 90.18613075A5.2054029061406 5.20521625 0 0 0 45.7179441110941 85.087578875A5.2054029061406 5.20521625 0 0 0 40.3845394900483 90.18613075C40.3845394900483 93.002067375 42.7632379107832 95.27401625 45.7179441110941 95.274016375z" />
25
+ <glyph glyph-name="play"
26
+ unicode="&#xE006;"
27
+ horiz-adv-x="128" d="M52.84571425 37.504L84.75428575 62.57371425C85.6685715 63.296 85.6685715 64.676571375 84.75428575 65.408L52.84571425 90.496A1.81028575 1.81028575 0 0 1 49.92 89.088V38.93028575C49.92 37.421714375 51.657142875 36.5805715 52.84571425 37.504zM122.88 128H5.12A5.12 5.12 0 0 1 0 122.88V5.12C0 2.28571425 2.28571425 0 5.12 0H122.88C125.71428575 0 128 2.28571425 128 5.12V122.88A5.12 5.12 0 0 1 122.88 128zM116.48 11.52H11.52V116.48H116.48V11.52z" />
28
+ <glyph glyph-name="refresh"
29
+ unicode="&#xE007;"
30
+ horiz-adv-x="128" d="M85.504 77.568Q83.328 78.592 83.52 80.32T84.992 83.072Q85.376 83.328 87.488 85.056T92.672 89.216Q87.296 95.36 79.872 98.88T63.744 102.4Q55.68 102.4 48.64 99.392T36.352 91.136T28.096 78.848T25.088 63.744Q25.088 55.808 28.096 48.768T36.352 36.48T48.64 28.224T63.744 25.216Q70.4 25.216 76.352 27.328T87.232 33.28T95.68 42.304T100.864 53.632Q101.76 56.576 104.192 58.496T109.952 60.416Q113.92 60.416 116.672 57.6T119.424 50.944Q119.424 49.152 118.784 47.488Q116.096 38.528 110.848 30.976T98.368 17.984T82.304 9.472T63.744 6.4Q51.84 6.4 41.344 10.88T23.104 23.168T10.816 41.408T6.272 63.744T10.816 86.144T23.104 104.384T41.344 116.672T63.744 121.216Q76.928 121.216 88.192 115.776T107.392 100.992Q110.336 103.168 112.32 104.768T114.816 106.752Q115.584 107.392 116.48 107.712T118.144 107.712T119.488 106.368T120.32 103.296Q120.448 102.144 120.576 99.392T120.832 92.992T120.96 85.44T120.832 78.08Q120.704 73.728 118.784 71.808Q117.76 70.784 115.712 70.656T111.36 71.04Q107.904 71.808 103.744 72.704T95.808 74.56T89.152 76.352T85.504 77.568z" />
31
+ <glyph glyph-name="warn"
32
+ unicode="&#xE008;"
33
+ horiz-adv-x="128" d="M64 128A64 64 0 1 1 128 64A64 64 0 0 1 64 128zM64 25.6A6.4 6.4 0 1 0 70.4 32A6.4 6.4 0 0 0 64 25.6zM70.4 44.8H57.6V102.4H70.4z" />
34
+ </font>
35
+ </defs>
36
+ </svg>