@lambo-design/shared 1.0.0-beta.32 → 1.0.0-beta.320

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 (236) hide show
  1. package/config/config.js +20 -3
  2. package/config/index.js +7 -2
  3. package/config/locale.js +61 -0
  4. package/config/themes/atrovirens/atrovirens.css +589 -0
  5. package/config/themes/atrovirens/atrovirens.css.map +1 -0
  6. package/config/themes/atrovirens/atrovirens.less +680 -0
  7. package/config/themes/atrovirens/var.less +688 -0
  8. package/config/themes/blue/blue.css +589 -0
  9. package/config/themes/blue/blue.css.map +1 -0
  10. package/config/themes/blue/blue.less +683 -0
  11. package/config/themes/blue/var.less +691 -0
  12. package/config/themes/blue-white/blue-white.css +589 -0
  13. package/config/themes/blue-white/blue-white.css.map +1 -0
  14. package/config/themes/blue-white/blue-white.less +684 -0
  15. package/config/themes/blue-white/var.less +690 -0
  16. package/config/themes/blue-white-big/blue-white-big.css +589 -0
  17. package/config/themes/blue-white-big/blue-white-big.css.map +1 -0
  18. package/config/themes/blue-white-big/blue-white-big.less +684 -0
  19. package/config/themes/blue-white-big/var.less +690 -0
  20. package/config/themes/blue-white-tight/blue-white-tight.css +590 -0
  21. package/config/themes/blue-white-tight/blue-white-tight.css.map +1 -0
  22. package/config/themes/blue-white-tight/blue-white-tight.less +684 -0
  23. package/config/themes/blue-white-tight/var.less +692 -0
  24. package/config/themes/canglan/canglan.css +588 -0
  25. package/config/themes/canglan/canglan.css.map +1 -0
  26. package/config/themes/canglan/canglan.less +681 -0
  27. package/config/themes/canglan/var.less +692 -0
  28. package/config/themes/cuiwei/cuiwei.css +589 -0
  29. package/config/themes/cuiwei/cuiwei.css.map +1 -0
  30. package/config/themes/cuiwei/cuiwei.less +681 -0
  31. package/config/themes/cuiwei/var.less +690 -0
  32. package/config/themes/danqing/danqing.css +589 -0
  33. package/config/themes/danqing/danqing.css.map +1 -0
  34. package/config/themes/danqing/danqing.less +681 -0
  35. package/config/themes/danqing/danqing.wxss +576 -0
  36. package/config/themes/danqing/var.less +695 -0
  37. package/config/themes/deep/deep.css +589 -0
  38. package/config/themes/deep/deep.css.map +1 -0
  39. package/config/themes/deep/deep.less +681 -0
  40. package/config/themes/deep/var.less +693 -0
  41. package/config/themes/default/default.css +403 -57
  42. package/config/themes/default/default.css.map +1 -1
  43. package/config/themes/default/default.less +380 -16
  44. package/config/themes/default/var.less +389 -11
  45. package/config/themes/eap/eap.css +589 -0
  46. package/config/themes/eap/eap.css.map +1 -0
  47. package/config/themes/eap/eap.less +684 -0
  48. package/config/themes/eap/var.less +692 -0
  49. package/config/themes/gold/gold.css +589 -0
  50. package/config/themes/gold/gold.css.map +1 -0
  51. package/config/themes/gold/gold.less +684 -0
  52. package/config/themes/gold/var.less +385 -5
  53. package/config/themes/index.js +26 -4
  54. package/config/themes/lime/lime.css +589 -0
  55. package/config/themes/lime/lime.css.map +1 -0
  56. package/config/themes/lime/lime.less +684 -0
  57. package/config/themes/lime/var.less +384 -5
  58. package/config/themes/orange/orange.css +353 -7
  59. package/config/themes/orange/orange.css.map +1 -1
  60. package/config/themes/orange/orange.less +365 -0
  61. package/config/themes/orange/var.less +385 -5
  62. package/config/themes/red/red.css +353 -7
  63. package/config/themes/red/red.css.map +1 -1
  64. package/config/themes/red/red.less +365 -0
  65. package/config/themes/red/var.less +385 -5
  66. package/config/themes/sichuan/sichuan.css +589 -0
  67. package/config/themes/sichuan/sichuan.css.map +1 -0
  68. package/config/themes/sichuan/sichuan.less +684 -0
  69. package/config/themes/sichuan/var.less +690 -0
  70. package/config/themes/theme-atrovirens.js +571 -0
  71. package/config/themes/theme-blue.js +571 -0
  72. package/config/themes/theme-bw.js +571 -0
  73. package/config/themes/theme-bwb.js +571 -0
  74. package/config/themes/theme-bwt.js +572 -0
  75. package/config/themes/theme-canglan.js +573 -0
  76. package/config/themes/theme-cuiwei.js +573 -0
  77. package/config/themes/theme-danqing.js +574 -0
  78. package/config/themes/theme-deep.js +571 -0
  79. package/config/themes/theme-default.js +378 -60
  80. package/config/themes/theme-eap.js +571 -0
  81. package/config/themes/theme-gold.js +326 -8
  82. package/config/themes/theme-lime.js +326 -8
  83. package/config/themes/theme-orange.js +560 -29
  84. package/config/themes/theme-red.js +563 -33
  85. package/config/themes/theme-sichuan.js +571 -0
  86. package/config/themes/theme-white.js +571 -0
  87. package/config/themes/white/var.less +691 -0
  88. package/config/themes/white/white.css +589 -0
  89. package/config/themes/white/white.css.map +1 -0
  90. package/config/themes/white/white.less +684 -0
  91. package/directives/module/print.js +1 -0
  92. package/directives/module/vue-print-nb/README.md +63 -0
  93. package/directives/module/vue-print-nb/print.js +94 -0
  94. package/directives/module/vue-print-nb/printarea.js +532 -0
  95. package/index.js +7 -1
  96. package/nstyles/common.less +197 -0
  97. package/nstyles/components/404.less +46 -0
  98. package/nstyles/components/button.less +34 -0
  99. package/nstyles/components/date-picker.less +41 -0
  100. package/nstyles/components/drawer.less +20 -0
  101. package/nstyles/components/dropdown.less +18 -0
  102. package/nstyles/components/excel-flow.less +72 -0
  103. package/nstyles/components/form.less +314 -0
  104. package/nstyles/components/index.less +23 -0
  105. package/nstyles/components/layout/collect.less +10 -0
  106. package/nstyles/components/layout/detail-view.less +107 -0
  107. package/nstyles/components/layout/full-screen.less +7 -0
  108. package/nstyles/components/layout/index.less +7 -0
  109. package/nstyles/components/layout/other-menu.less +142 -0
  110. package/nstyles/components/layout/page-view.less +101 -0
  111. package/nstyles/components/layout/sider-trigger.less +41 -0
  112. package/nstyles/components/layout/tags-nav.less +113 -0
  113. package/nstyles/components/modal.less +90 -0
  114. package/nstyles/components/n-button.less +131 -0
  115. package/nstyles/components/n-image-preview.less +131 -0
  116. package/nstyles/components/n-model/index.less +19 -0
  117. package/nstyles/components/n-model/report-index.less +43 -0
  118. package/nstyles/components/n-panel.less +41 -0
  119. package/nstyles/components/n-picker.less +37 -0
  120. package/nstyles/components/n-sign.less +17 -0
  121. package/nstyles/components/n-tooltip.less +10 -0
  122. package/nstyles/components/panel.less +31 -0
  123. package/nstyles/components/select.less +3 -0
  124. package/nstyles/components/sign.less +27 -0
  125. package/nstyles/components/table.less +413 -0
  126. package/nstyles/components/tree.less +166 -0
  127. package/nstyles/components/upload.less +174 -0
  128. package/nstyles/index.less +5 -0
  129. package/nstyles/reset.less +73 -0
  130. package/nstyles/third/ag.less +226 -0
  131. package/nstyles/third/icons/sort-desc.svg +1 -0
  132. package/nstyles/third/icons/sort-up.svg +1 -0
  133. package/nstyles/third/icons/sorting.svg +1 -0
  134. package/nstyles/third/index.less +11 -0
  135. package/nstyles/third/view-design.less +378 -0
  136. package/nstyles/variables/base.less +143 -0
  137. package/nstyles/variables/index.less +4 -0
  138. package/nstyles/variables/theme/default/button.less +7 -0
  139. package/nstyles/variables/theme/default/common.less +60 -0
  140. package/nstyles/variables/theme/default/index.less +7 -0
  141. package/nstyles/variables/theme/default/layout.less +40 -0
  142. package/nstyles/variables/theme/default/table.less +37 -0
  143. package/nstyles/variables/theme/default/tag.less +3 -0
  144. package/nstyles/variables/theme/default/upload.less +3 -0
  145. package/nstyles/variables/theme/index.less +13 -0
  146. package/nstyles/variables/theme/lsv/button.less +7 -0
  147. package/nstyles/variables/theme/lsv/common.less +39 -0
  148. package/nstyles/variables/theme/lsv/index.less +5 -0
  149. package/nstyles/variables/theme/lsv/layout.less +21 -0
  150. package/nstyles/variables/theme/lsv/table.less +20 -0
  151. package/nstyles/variables/theme/lsv/tag.less +3 -0
  152. package/nstyles/variables/theme/small/button.less +7 -0
  153. package/nstyles/variables/theme/small/common.less +41 -0
  154. package/nstyles/variables/theme/small/index.less +5 -0
  155. package/nstyles/variables/theme/small/layout.less +21 -0
  156. package/nstyles/variables/theme/small/table.less +17 -0
  157. package/nstyles/variables/theme/small/tag.less +3 -0
  158. package/package.json +28 -7
  159. package/plugin/index.js +12 -0
  160. package/plugin/module/date-format.js +30 -0
  161. package/plugin/module/loading.js +26 -0
  162. package/plugin/module/warn-handler.js +11 -0
  163. package/styles/image/indicator-card-header.png +0 -0
  164. package/styles/image/inspur.png +0 -0
  165. package/styles/image/lan_navigator.png +0 -0
  166. package/styles/image/layout-header-bg-canglan.png +0 -0
  167. package/styles/image/layout-header-bg-cuiwei.png +0 -0
  168. package/styles/image/lv_navigator.png +0 -0
  169. package/utils/ajax/abort-controller.js +70 -0
  170. package/utils/ajax/cancel-reason.js +25 -0
  171. package/utils/ajax/cancel-token.js +83 -0
  172. package/utils/ajax/content-type.js +30 -0
  173. package/utils/ajax/headers.js +11 -0
  174. package/utils/ajax/interceptors.js +45 -10
  175. package/utils/ajax/sseFetchUtil.js +118 -0
  176. package/utils/ajax/throttle.js +49 -0
  177. package/utils/assist.js +155 -27
  178. package/utils/base64.js +126 -0
  179. package/utils/blob.js +47 -0
  180. package/utils/context-menu.js +65 -0
  181. package/utils/crypto/aes.js +23 -0
  182. package/utils/crypto/index.js +10 -0
  183. package/utils/crypto/rsa.js +23 -0
  184. package/utils/date.js +334 -305
  185. package/utils/dict/built-in-dict.js +20 -0
  186. package/utils/dict/index.js +191 -0
  187. package/utils/event.js +72 -0
  188. package/utils/excel.js +502 -290
  189. package/utils/file.js +19 -0
  190. package/utils/form/validate.js +29 -0
  191. package/utils/half-year.js +68 -0
  192. package/utils/index.js +37 -0
  193. package/utils/json.js +44 -0
  194. package/utils/locale/en-US.js +174 -0
  195. package/utils/locale/zh-CN.js +174 -0
  196. package/utils/lodop.js +5 -0
  197. package/utils/menu/index.js +292 -15
  198. package/utils/mime_type.js +67 -0
  199. package/utils/modelerUtil.js +4 -1
  200. package/utils/n/api.js +38 -0
  201. package/utils/n/date.js +57 -0
  202. package/utils/n/index.js +10 -0
  203. package/utils/n/is-type.js +176 -0
  204. package/utils/n/number.js +144 -0
  205. package/utils/n/permission-cache.js +11 -0
  206. package/utils/n/reuqest/axiosN.js +17 -0
  207. package/utils/n/reuqest/content-type.js +19 -0
  208. package/utils/n/reuqest/interceptors.js +95 -0
  209. package/utils/n/reuqest/url-params.js +12 -0
  210. package/utils/n/storage.js +51 -0
  211. package/utils/n/token.js +51 -0
  212. package/utils/n/user-cache.js +11 -0
  213. package/utils/n/user.js +34 -0
  214. package/utils/n/uuid.js +16 -0
  215. package/utils/n-generator-routers.js +208 -0
  216. package/utils/n-router.js +205 -0
  217. package/utils/n-theme.js +30 -0
  218. package/utils/number.js +72 -15
  219. package/utils/oss.js +57 -0
  220. package/utils/platform.js +824 -32
  221. package/utils/quarter.js +58 -0
  222. package/utils/storage.js +198 -0
  223. package/utils/style.js +24 -0
  224. package/utils/theme.js +98 -3
  225. package/utils/transfer-queue.js +7 -0
  226. package/utils/transform.js +205 -0
  227. package/utils/type.js +102 -0
  228. package/utils/util.js +795 -0
  229. package/utils/vForm.js +349 -0
  230. package/utils/validator.js +181 -0
  231. package/config/themes/gold/default.css +0 -243
  232. package/config/themes/gold/default.css.map +0 -1
  233. package/config/themes/gold/default.less +0 -320
  234. package/config/themes/lime/default.css +0 -243
  235. package/config/themes/lime/default.css.map +0 -1
  236. package/config/themes/lime/default.less +0 -320
@@ -0,0 +1,378 @@
1
+ /*
2
+ * 更改 view-design 的默认样式
3
+ *
4
+ * @Author: huxuetong
5
+ * @Date: 2023-08-16 16:24:23
6
+ * @Last Modified by: huxuetong
7
+ * @Last Modified time: 2024-04-06 14:15:41
8
+ */
9
+
10
+ // form-item
11
+ .ivu-input {
12
+ height: var(--input-height);
13
+ }
14
+
15
+ .ivu-input-wrapper .ivu-input-icon,
16
+ .ivu-select .ivu-select-input,
17
+ .ivu-select.ivu-select .ivu-select-selection,
18
+ .ivu-select.ivu-select .ivu-select-selection .ivu-select-placeholder,
19
+ .ivu-select.ivu-select .ivu-select-selection .ivu-select-selected-value,
20
+ .ivu-select-multiple .ivu-select-selection .ivu-select-placeholder,
21
+ .ivu-input-wrapper .ivu-input-prefix i,
22
+ .ivu-select.ivu-select-multiple .ivu-select-selection .ivu-select-placeholder,
23
+ .ivu-select.ivu-select-multiple .ivu-select-selection .ivu-select-selected-value,
24
+ .ivu-input-wrapper .ivu-input-suffix i {
25
+ height: var(--input-height);
26
+ line-height: var(--input-height);
27
+ }
28
+ .ivu-select .ivu-select-input,
29
+ .ivu-select.ivu-select-multiple .ivu-select-input {
30
+ top: auto;
31
+ }
32
+
33
+ .ivu-page.mini .ivu-page-total,
34
+ .ivu-page.mini .ivu-page-options-elevator,
35
+ .ivu-page.mini .ivu-page-item {
36
+ height: var(--input-height);
37
+ line-height: var(--input-height);
38
+ }
39
+
40
+ .ivu-select-default.ivu-select-multiple .ivu-select-selection {
41
+ min-height: var(--input-height) !important;
42
+ }
43
+
44
+ .ivu-page.mini .ivu-page-next,
45
+ .ivu-page.mini .ivu-page-prev,
46
+ .ivu-page.mini .ivu-page-options-elevator input {
47
+ height: var(--input-height);
48
+ line-height: calc(var(--input-height) - 2px);
49
+ }
50
+
51
+ // 双滚动条问题,加上一个像素就好
52
+ ul.ivu-page.mini {
53
+ margin-bottom: 1px !important;
54
+ }
55
+
56
+ .ivu-input,
57
+ .ivu-select-selection,
58
+ .ivu-input-number-input,
59
+ .ivu-input-number,
60
+ .ivu-radio-inner,
61
+ .ivu-checkbox-inner,
62
+ .ivu-table-cell-tree {
63
+ border-color: #ccc !important;
64
+ }
65
+
66
+ .ivu-radio-wrapper {
67
+ white-space: pre-wrap !important;
68
+ }
69
+
70
+ .ivu-radio .ivu-radio-inner::after {
71
+ top: 50%;
72
+ left: 50%;
73
+ transform: scale(1) translateX(-50%) translateY(-50%) !important;
74
+ }
75
+
76
+ .ivu-radio-checked .ivu-radio-inner,
77
+ .ivu-checkbox-checked .ivu-checkbox-inner {
78
+ border-color: #488aff !important;
79
+ }
80
+
81
+ .ivu-select-multiple .ivu-select-selection > div {
82
+ display: flex;
83
+ .ivu-tag {
84
+ position: relative;
85
+ height: var(--ind-tag-height);
86
+ line-height: var(--ind-tag-height);
87
+
88
+ .ivu-icon {
89
+ position: absolute;
90
+ top: calc(50% + 1px);
91
+ transform: translateY(-50%);
92
+ }
93
+ }
94
+ }
95
+
96
+ .ivu-select-dropdown,
97
+ .ivu-tooltip-popper {
98
+ z-index: 99999999 !important;
99
+ }
100
+
101
+ .ivu-select-dropdown,
102
+ .ivu-dropdown-transfer {
103
+ max-height: 400px;
104
+ }
105
+
106
+ .ivu-select-item {
107
+ padding-top: 4px !important;
108
+ padding-bottom: 4px !important;
109
+ }
110
+
111
+ .selected-input {
112
+ .ivu-input {
113
+ cursor: pointer;
114
+ }
115
+
116
+ &.readonly {
117
+ .ivu-input {
118
+ cursor: default;
119
+ }
120
+ }
121
+ }
122
+
123
+ // button
124
+ //全局样式,按钮高度-2022年11月11日
125
+ .ivu-btn {
126
+ height: var(--ind-button-height-md);
127
+ padding-left: var(--ind-button-padding-md);
128
+ padding-right: var(--ind-button-padding-md);
129
+ }
130
+ .ivu-btn-small {
131
+ height: var(--ind-button-height-sm);
132
+ padding-left: var(--ind-button-padding-sm);
133
+ padding-right: var(--ind-button-padding-sm);
134
+ }
135
+ .ivu-btn-icon-only.ivu-btn {
136
+ width: var(--ind-button-height-sm);
137
+ padding-left: unset;
138
+ padding-right: unset;
139
+ }
140
+
141
+ // poptip
142
+ //全局样式,树形选择框宽度-2022年11月11日
143
+ .ivu-poptip {
144
+ width: 100%;
145
+ .ivu-poptip-rel {
146
+ width: 100%;
147
+ }
148
+ }
149
+
150
+ // tooltip
151
+ // 领导让换个色 begin
152
+ .ivu-tooltip-arrow {
153
+ border-bottom-color: rgb(232, 233, 234) !important;
154
+ }
155
+ .ivu-tooltip-inner {
156
+ background-color: rgb(232, 233, 234) !important;
157
+ color: #333 !important;
158
+ }
159
+ body > .ivu-tooltip-popper {
160
+ .ivu-tooltip-inner {
161
+ white-space: pre-wrap;
162
+ }
163
+ }
164
+
165
+ // 领导让换个色 end
166
+
167
+ // card
168
+ .ivu-card:hover {
169
+ box-shadow: none !important;
170
+ }
171
+ .ivu-card,
172
+ .ivu-card-bordered {
173
+ border: 1px solid var(--ind-border-color);
174
+ .ivu-card-head {
175
+ padding: var(--ivu-card-head-padding) !important;
176
+ line-height: var(--ivu-card-head-line-height) !important;
177
+ height: var(--ivu-card-head-height) !important;
178
+ background: #ffffff;
179
+ }
180
+ }
181
+
182
+ .ivu-card-body {
183
+ padding: var(--ivu-card-body-padding);
184
+ }
185
+
186
+ // steps
187
+ .ivu-steps.ivu-steps-small .ivu-steps-title {
188
+ font-size: 14px !important;
189
+ margin-top: 2px;
190
+ }
191
+
192
+ .ivu-steps .ivu-steps-head-inner {
193
+ display: block;
194
+ width: 26px !important;
195
+ height: 26px !important;
196
+ line-height: 24px !important;
197
+ margin-right: 8px !important;
198
+ text-align: center;
199
+ border: 1px solid #ccc;
200
+ }
201
+
202
+ .ivu-steps.ivu-steps-small .ivu-steps-tail {
203
+ top: 13px !important;
204
+ padding: 0 10px !important;
205
+ }
206
+
207
+ .ivu-steps .ivu-steps-head-inner > .ivu-steps-icon.ivu-icon {
208
+ font-size: 24px !important;
209
+ }
210
+
211
+ // modal
212
+ .ivu-modal-close .ivu-icon-ios-close {
213
+ color: #444;
214
+ }
215
+
216
+ // row
217
+ // 栅格布局的宽度为啥不是100%呢
218
+ .ivu-row {
219
+ width: 100%;
220
+ // min-height: 100%;
221
+ }
222
+
223
+ // menu
224
+ .ivu-menu-vertical .ivu-menu-item,
225
+ .ivu-menu-vertical .ivu-menu-submenu-title {
226
+ padding-left: 8px;
227
+ }
228
+
229
+ .ivu-spin-fix {
230
+ // z-index: 999999998 !important;
231
+ }
232
+
233
+ // message
234
+ .ivu-message {
235
+ zoom: 2;
236
+ z-index: 999999999 !important;
237
+ }
238
+
239
+ .ind-modal:has(.ivu-modal-confirm) {
240
+ z-index: 999999998 !important;
241
+ }
242
+
243
+ // tabs
244
+ .ivu-tabs {
245
+ display: flex;
246
+ flex-direction: column;
247
+
248
+ &.ivu-tabs-auto-height {
249
+ height: 100%;
250
+ }
251
+
252
+ .ivu-tabs-bar {
253
+ flex-shrink: 0;
254
+ margin-bottom: 0px !important;
255
+ background-color: #f5f7f9;
256
+ border-bottom: 1px solid #bebebe;
257
+ }
258
+
259
+ .ivu-tabs-content {
260
+ flex-grow: 1;
261
+ }
262
+ }
263
+
264
+ // collapse
265
+ .ivu-collapse .ivu-collapse-item {
266
+ .ivu-collapse-header {
267
+ padding: var(--ivu-card-head-padding) !important;
268
+ line-height: var(--ivu-card-head-line-height);
269
+ height: var(--ivu-card-head-height);
270
+ // padding-bottom: 17px;
271
+ background-color: #ecf0f4;
272
+ border: 1px solid #d2dbe4;
273
+ border-bottom: none;
274
+ font-size: 16px;
275
+ font-weight: bold;
276
+ color: #333333;
277
+ }
278
+ &:last-child {
279
+ .ivu-collapse-header {
280
+ border-bottom: 1px solid #d2dbe4;
281
+ }
282
+ .ivu-collapse-content {
283
+ border-bottom: 1px solid #d2dbe4;
284
+ }
285
+ }
286
+ }
287
+ .ivu-collapse-content {
288
+ border: 1px solid #d2dbe4;
289
+ border-bottom: none;
290
+ }
291
+
292
+ // menu
293
+ .ivu-menu {
294
+ .ivu-menu {
295
+ border-top: 1px solid var(--menu-black-active-bg);
296
+ border-bottom: none;
297
+ }
298
+ }
299
+
300
+ .ivu-menu-dark {
301
+ background: var(--menu-dark-active-bg) !important;
302
+ }
303
+ .ivu-menu-submenu-title {
304
+ background: var(--menu-dark-active-bg);
305
+ }
306
+
307
+ .ivu-menu-item > i {
308
+ margin-right: 12px !important;
309
+ }
310
+
311
+ .ivu-menu-submenu > .ivu-menu > .ivu-menu-item > i {
312
+ margin-right: 8px !important;
313
+ }
314
+
315
+ // layout
316
+ .ivu-layout-sider-children {
317
+ margin-right: 1px;
318
+ background-color: var(--menu-black-active-bg);
319
+ overflow-y: auto;
320
+
321
+ &::-webkit-scrollbar {
322
+ width: 0;
323
+ }
324
+ .ivu-menu-dark.ivu-menu-vertical .ivu-menu-item:hover,
325
+ .ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu-title:hover,
326
+ .ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu .ivu-menu-item:hover {
327
+ color: var(--main-color);
328
+ background: var(--selected-background-hover) !important;
329
+ }
330
+ .ivu-menu-dark.ivu-menu-vertical .ivu-menu-item,
331
+ .ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu-title,
332
+ .ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu .ivu-menu-item {
333
+ font-size: var(--ivu-menu-item-font-size);
334
+ background-color: var(--menu-black-active-bg) !important;
335
+ }
336
+ .ivu-menu-dark.ivu-menu-vertical .ivu-menu-child-item-active > .ivu-menu-submenu-title {
337
+ color: black;
338
+ font-size: 14px;
339
+ }
340
+ .ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu .ivu-menu-item-active,
341
+ .ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu .ivu-menu-item-active:hover {
342
+ background: var(--selected-background) !important;
343
+ border-right: 3px solid var(--deep-mian-color);
344
+ color: var(--deep-menu-color) !important;
345
+ }
346
+ .ivu-menu-vertical .ivu-menu-submenu-title-icon {
347
+ right: 0px;
348
+ }
349
+ }
350
+
351
+ // table
352
+ .ivu-table {
353
+ line-height: unset !important;
354
+ }
355
+
356
+ .ivu-input::-webkit-input-placeholder {
357
+ font-size: 12px;
358
+ // font-size: 14px;
359
+ }
360
+
361
+ .ivu-spin-large.ivu-spin-fix.ivu-spin-fullscreen{
362
+ background-color:rgba(255,255,255,0.1)
363
+ }
364
+ .extend-height{
365
+ min-height: calc(100vh - 85px);
366
+ }
367
+
368
+ .ivu-card-extra {
369
+ top: var(--ivu-card-extra, 3px) !important;
370
+ }
371
+
372
+ .ag-cell .ivu-table-cell-tooltip-content {
373
+ display: block;
374
+ overflow: hidden;
375
+ text-overflow: ellipsis;
376
+ white-space: nowrap;
377
+ line-height: 1.2;
378
+ }
@@ -0,0 +1,143 @@
1
+ /*
2
+ * 一些基础变量的定义,分为配色、边距长度、字体、边框圆角、阴影、动画
3
+ * 配色和边距不建议直接使用,而是在 theme 中定义具有业务意义的变量
4
+ *
5
+ * --Author: huxuetong
6
+ * --Date: 2023-08-16 16:23:06
7
+ * --Last Modified by: huxuetong
8
+ * --Last Modified time: 2023-08-19 16:48:38
9
+ */
10
+
11
+ @ind-blue: #488aff;
12
+
13
+ :root {
14
+ // 基础样式修改
15
+ // Color Palette
16
+ --ind-white: #fff;
17
+ --ind-white-1: var(--ind-white);
18
+ --ind-white-2: rgba(255, 255, 255, 0.85);
19
+ --ind-white-3: rgba(255, 255, 255, 0.7);
20
+ --ind-white-4: rgba(255, 255, 255, 0.5);
21
+ --ind-white-5: rgba(255, 255, 255, 0.3);
22
+ --ind-white-6: rgba(255, 255, 255, 0.1);
23
+
24
+ --ind-black: #333;
25
+ --ind-gray: #333;
26
+ --ind-gray-1: #f5f7f9;
27
+ --ind-gray-2: #efefef;
28
+ --ind-gray-3: #e6e6e6;
29
+ --ind-gray-4: var(--ind-gray);
30
+ --ind-gray-5: #999;
31
+ --ind-gray-6: #555;
32
+ --ind-gray-7: var(--ind-black);
33
+
34
+ --ind-blue: @ind-blue;
35
+ --ind-blue-1: #a3ccfe;
36
+ --ind-blue-2: #81b1ff;
37
+ --ind-blue-3: #79adff;
38
+ --ind-blue-4: #1d70f5;
39
+ --ind-blue-5: var(--ind-blue);
40
+ --ind-blue-6: #02328f;
41
+ --ind-blue-7: #002b7b;
42
+ --ind-blue-8: #0c3d98;
43
+ --ind-blue-9: #001d55;
44
+ --ind-blue-10: #002874;
45
+
46
+ --ind-green: #34b11c;
47
+ --ind-green-1: #c8fbcb;
48
+ --ind-green-2: #94f7a2;
49
+ --ind-green-3: #5ce87e;
50
+ --ind-green-4: #34d169;
51
+ --ind-green-5: var(--ind-green);
52
+ --ind-green-6: #009953;
53
+ --ind-green-7: #008052;
54
+ --ind-green-8: #00674c;
55
+ --ind-green-9: #005548;
56
+
57
+ --ind-orange: #ff976a;
58
+ --ind-orange-1: #fffbe8;
59
+ --ind-orange-2: #fbcd65;
60
+ --ind-orange-3: #fbcd65;
61
+ --ind-orange-4: #f7b73e;
62
+ --ind-orange-5: var(--ind-orange);
63
+ --ind-orange-6: #ed6a0c;
64
+ --ind-orange-8: #ae5e00;
65
+ --ind-orange-8: #8c4600;
66
+ --ind-orange-9: #743500;
67
+ --ind-orange-light: var(--ind-orange-1);
68
+ --ind-orange-dark: var(--ind-orange-6);
69
+
70
+ --ind-red: #d32913;
71
+ --ind-red-1: #fce2ce;
72
+ --ind-red-2: #fabf9f;
73
+ --ind-red-3: #f1926d;
74
+ --ind-red-4: #e46648;
75
+ --ind-red-5: var(--ind-red);
76
+ --ind-red-6: #b5130d;
77
+ --ind-red-7: #970910;
78
+ --ind-red-8: #7a0614;
79
+ --ind-red-9: #650317;
80
+
81
+ // Gradient Colors
82
+ --ind-gradient-blue-linear: linear-gradient(to right, #548eff, #6bc5ff);
83
+ --ind-gradient-green-linear: linear-gradient(to right, #32c67c, #4edda1);
84
+ --ind-gradient-orange-linear: linear-gradient(to right, #ffa724, #e0ac5e);
85
+ --ind-gradient-red-linear: linear-gradient(to right, #ff5e67, #ff8fa4);
86
+ --ind-gradient-blue-radial: radial-gradient(circle at 50% 84%, #225ed2 0%, #083da3 109%);
87
+
88
+ // Padding
89
+ --ind-padding-base: 4px;
90
+ --ind-padding-xs: 8px;
91
+ --ind-padding-sm: 16px;
92
+ --ind-padding-md: 24px;
93
+ --ind-padding-lg: 32px;
94
+ --ind-padding-xl: 48px;
95
+
96
+ // Font
97
+ --ind-font-size-xs: 10px;
98
+ --ind-font-size-sm: 12px;
99
+ --ind-font-size-md: 14px;
100
+ --ind-font-size-lg: 16px;
101
+ --ind-font-size-xl: 18px;
102
+ --ind-font-size-xxl: 20px;
103
+ --ind-font-weight-normal: 400;
104
+ --ind-font-weight-bold: 600;
105
+ --ind-font-weight-bolder: 900;
106
+ --ind-line-height-xs: 14px;
107
+ --ind-line-height-sm: 18px;
108
+ --ind-line-height-md: 22px;
109
+ --ind-line-height-lg: 24px;
110
+ // --ind-base-font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
111
+ // Helvetica, Segoe UI, Arial, Roboto, 'PingFang SC', 'miui',
112
+ // 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;
113
+ // --ind-price-integer-font-family: Avenir-Heavy, PingFang SC, Helvetica Neue,
114
+ // Arial, sans-serif;
115
+
116
+ // Border
117
+ --ind-border-width-base: 1px;
118
+ --ind-border-radius-xs: 2px;
119
+ --ind-border-radius-sm: 4px;
120
+ --ind-border-radius-md: 8px;
121
+ --ind-border-radius-lg: 14px;
122
+ --ind-border-radius-xl: 20px;
123
+ --ind-border-radius-xxl: 32px;
124
+ --ind-border-radius-max: 999px;
125
+ --ind-border-radius-round: 50%;
126
+
127
+ // Box Shadow
128
+ --ind-box-shadow-sm-1: 0px 1px 2px -2px rgba(0, 0, 0, 0.16);
129
+ --ind-box-shadow-md-1: 0px 3px 6px 0px rgba(0, 0, 0, 0.12);
130
+ --ind-box-shadow-lg-1: 0px 5px 12px 4px rgba(0, 0, 0, 0.09);
131
+ --ind-box-shadow-sm-2: 0px 3px 6px -4px rgba(0, 0, 0, 0.12);
132
+ --ind-box-shadow-md-2: 0px 6px 16px 0px rgba(0, 0, 0, 0.08);
133
+ --ind-box-shadow-lg-2: 0px 9px 28px 8px rgba(0, 0, 0, 0.05);
134
+ --ind-box-shadow-sm-3: 0px 6px 6px -8px rgba(0, 0, 0, 0.08);
135
+ --ind-box-shadow-md-3: 0px 9px 28px 0px rgba(0, 0, 0, 0.05);
136
+ --ind-box-shadow-lg-3: 0px 12px 48px 16px rgba(0, 0, 0, 0.03);
137
+
138
+ // Animation
139
+ --ind-animation-duration-base: 0.3s;
140
+ --ind-animation-duration-fast: 0.2s;
141
+ --ind-animation-timing-function-enter: ease-out;
142
+ --ind-animation-timing-function-leave: ease-in;
143
+ }
@@ -0,0 +1,4 @@
1
+ // 基础变量
2
+ @import './base.less';
3
+ // 主题变量
4
+ @import './theme/index.less';
@@ -0,0 +1,7 @@
1
+ :root {
2
+ --ind-button-height-md: 32px;
3
+ --ind-button-padding-md: 15px;
4
+
5
+ --ind-button-height-sm: 32px;
6
+ --ind-button-padding-sm: 7px;
7
+ }
@@ -0,0 +1,60 @@
1
+ :root {
2
+ // 颜色
3
+ --ind-primary-color: var(--ind-blue);
4
+ --ind-primary-color-tint20: tint(@ind-blue, 20%);
5
+ --ind-primary-color-tint70: tint(@ind-blue, 70%);
6
+ --ind-primary-color-tint80: tint(@ind-blue, 80%);
7
+ --ind-primary-color-tint90: tint(@ind-blue, 90%);
8
+ --ind-primary-color-fade20: fade(@ind-blue, 20%);
9
+ --ind-primary-color-fade90: fade(@ind-blue, 90%);
10
+ --ind-primary-color-tint95-fade50: fade(tint(@ind-blue, 95%), 50%);
11
+ --ind-primary-color-shade5: shade(@ind-blue, 5%);
12
+ --ind-primary-color-fade90-shade10: shade(fade(@ind-blue, 90%), 10%);
13
+
14
+ --ind-bg-color-light: var(--ind-white);
15
+ --ind-bg-color-dark: var(--ind-gray-1);
16
+ --ind-text-color: var(--ind-black);
17
+ --ind-link-hover-color: var(--ind-primary-color-tint20);
18
+ --ind-link-active-color: var(--ind-primary-color-shade5);
19
+ --ind-desc-color: var(--ind-gray-6);
20
+
21
+ --ind-border-color: #ebedf2;
22
+
23
+ // 页面的边距
24
+ --ind-page-padding: var(--ind-padding-xs);
25
+ --ind-sc-padding-top: var(--ind-padding-xs);
26
+ --ind-menu-desc-margin-top: 4px;
27
+
28
+ // card的样式
29
+ --ivu-card-head-padding: 12px 16px;
30
+ --ivu-card-head-line-height: 28px;
31
+ --ivu-card-head-height: 52px;
32
+ --ivu-card-body-padding: 16px;
33
+
34
+ // 表单的样式
35
+ --ivu-form-item-label-padding: 10px 12px 10px 0;
36
+ --ivu-form-v6stle-item-label-paddingleft: 20px;
37
+ --ivu-form-item-content-padding: 6px 12px;
38
+ --ivu-form-item-label-before-left: 8px;
39
+ --ivu-form-item-content-line-height: 32px;
40
+
41
+ // tree样式
42
+ --ind-tree-wrapper-width: 98%;
43
+ --tree-content-padding: 8px;
44
+ --ivu-tree-margin: 8px 0;
45
+
46
+ // drawer样式
47
+ --ind-drawer-content-padding: 16px;
48
+ --ind-drawer-footer-padding: 10px 16px;
49
+
50
+ // 报表指标样式
51
+ --report-index-model-panel-padding: 8px;
52
+ --report-index-options-padding-right: 18px;
53
+
54
+ // 表格
55
+ --ind-table-button-padding: var(--ind-padding-base);
56
+ --input-height-table: var(--input-height); // 表格输入框的高度
57
+
58
+ // 树
59
+ --ivu-tree-ul-padding: 0px 0px 0px 18px; // 树形左侧错落的间距
60
+ }
@@ -0,0 +1,7 @@
1
+ @import './common.less';
2
+
3
+ @import './button.less';
4
+ @import './layout.less';
5
+ @import './table.less';
6
+ @import './tag.less';
7
+ @import './upload.less';
@@ -0,0 +1,40 @@
1
+ :root {
2
+ // basic layout 系统布局变量 -begin
3
+ --main-color: var(--ind-blue);
4
+ --deep-mian-color: #2b85e4;
5
+ --selected-background: #1890ff;
6
+ --selected-background-hover: #384568;
7
+ --header-height: 48px;
8
+ --header-bg: linear-gradient(90deg, #1d42ab, #2173dc, #1e93ff);
9
+ --header-color: hsla(0, 0%, 100%, 0.7);
10
+ --header-color-hover: var(--ind-white);
11
+ --header-border-bottom-color: #4fe3c1;
12
+
13
+ --ind-main-sider-width: 200px;
14
+ --ind-main-sider-collapsed-width: 68px;
15
+ --menu-black-active-bg: var(--ind-white); //#263353;
16
+ --menu-white-group-title-color: var(--ind-text-color); //#B6B6B8;
17
+ --ivu-menu-item-font-size: var(--ind-font-size-md);
18
+
19
+ --menu-select-bg: #f0faff;
20
+ --deep-menu-color: var(--ind-primary-color); //@text-color; //#F3F2F0;
21
+ --selected-background: var(--menu-select-bg); //@primary-color;
22
+ --selected-background-hover: var(--menu-select-bg); //#384568;
23
+ --menu-icon-margin-right: 8px;
24
+ --menu-white-group-title-color: #b6b6b8;
25
+ // basic layout 系统布局变量 -end
26
+
27
+ // page-view layout 系统布局变量 -begin
28
+ --ind-panel-vertical-margin: 12px;
29
+ --ind-panel-horizon-margin: 16px;
30
+ // page-view layout 系统布局变量 -end
31
+
32
+ --input-height: 32px; // small 24px
33
+ --search-margin-bottom: 24px; // small 16px
34
+ --search-button-margin: 16px;
35
+
36
+ --menu-name-padding: 15px 28px 15px 30px; // 标题行padding
37
+ --menu-title-font-size: 20px;
38
+ --menu-title-color: #17233d;
39
+ --page-content-padding: 12px;
40
+ }
@@ -0,0 +1,37 @@
1
+ :root {
2
+ // table layout 系统布局变量 -begin
3
+ --check-border: #dcdee2;
4
+
5
+ --table-td-hover-bg: tint(#488aff, 90%);
6
+
7
+ /*
8
+ * ag-grid合计行颜色变量
9
+ */
10
+ --ag-sum-row-color-10: #cccfd7;
11
+ --ag-sum-row-color-5: #dcdfe6;
12
+ --ag-sum-row-color-1: #ebedf2;
13
+ --ind-table-padding: 16px;
14
+ // table layout 系统布局变量 -end
15
+
16
+ --ind-ag-grid-size: 6px;
17
+ --ind-ag-cell-widget-spacing: 12px;
18
+ --ind-ag-font-size: var(--ind-font-size-md);
19
+ // --ind-ag-list-item-height: 42px;
20
+ --ind-ag-odd-row-background-color: #fcfdfe;
21
+ --ind-ag-row-hover-color: rgba(0, 0, 0, 0.05);
22
+ --ind-ag-column-hover-color: rgba(0, 0, 0, 0.05);
23
+ --ind-ag-cell-header-horizontal-padding: 12px;
24
+ --ind-ag-cell-horizontal-padding: 13px;
25
+ --ind-ag-row-group-indent-size: 28px;
26
+ --ind-ag-selected-row-background-color: #c8dcff;
27
+ --ind-ag-header-background-color: #f8f8f9;
28
+ --ind-ag-odd-row-background-color: #fff;
29
+
30
+ // 以下是 ag 没有的
31
+ --ind-ag-cell-icon-margin-left: var(--ind-ag-grid-size);
32
+ // --ind-ag-cell-header-horizontal-padding: var(--ag-cell-horizontal-padding);
33
+ --ind-ag-cell-line-height: 20px;
34
+
35
+ --ind-unit-switch-bottom: 6px;
36
+ --ind-other-button-top: 6px;
37
+ }
@@ -0,0 +1,3 @@
1
+ :root {
2
+ --ind-tag-height: 24px;
3
+ }
@@ -0,0 +1,3 @@
1
+ :root {
2
+ --file-line-height: 41px;
3
+ }
@@ -0,0 +1,13 @@
1
+ /*
2
+ * 定义不同主题变量,其中default基本等于全局变量
3
+ * 别的主题应在default基础上更改
4
+ * 若已有主题变量不满足情况,应在default里添加原样式的变量后,在新主题里更改对应的值
5
+ *
6
+ * @Author: huxuetong
7
+ * @Date: 2024-03-12 20:10:04
8
+ * @Last Modified by: huxuetong
9
+ * @Last Modified time: 2024-03-12 20:11:26
10
+ */
11
+
12
+ @import './default/index.less';
13
+ @import './small/index.less';