n20-common-lib 1.2.29 → 1.2.32

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 (191) hide show
  1. package/README.md +2 -2
  2. package/package.json +88 -88
  3. package/src/_qiankun/index.js +113 -113
  4. package/src/_qiankun/postMessage.js +48 -48
  5. package/src/assets/css/_coreLib.scss +35 -35
  6. package/src/assets/css/cl-anchor.scss +23 -23
  7. package/src/assets/css/cl-approve-card.scss +58 -58
  8. package/src/assets/css/cl-dialog.scss +99 -99
  9. package/src/assets/css/cl-drag-list.scss +22 -22
  10. package/src/assets/css/cl-empty.scss +10 -10
  11. package/src/assets/css/cl-expandable-pane.scss +26 -26
  12. package/src/assets/css/cl-expandable.scss +24 -24
  13. package/src/assets/css/cl-file-upload-table.scss +11 -11
  14. package/src/assets/css/cl-filter.scss +4 -4
  15. package/src/assets/css/cl-flow-step.scss +185 -185
  16. package/src/assets/css/cl-footer-box.scss +10 -10
  17. package/src/assets/css/cl-form-item.scss +612 -612
  18. package/src/assets/css/cl-general-card.scss +11 -11
  19. package/src/assets/css/cl-layout-aside.scss +92 -92
  20. package/src/assets/css/cl-layout-content.scss +16 -16
  21. package/src/assets/css/cl-layout-header.scss +73 -73
  22. package/src/assets/css/cl-layout-tabs.scss +87 -87
  23. package/src/assets/css/cl-layout.scss +97 -97
  24. package/src/assets/css/cl-login-temporary.scss +37 -37
  25. package/src/assets/css/cl-message.scss +75 -75
  26. package/src/assets/css/cl-more-tab.scss +98 -98
  27. package/src/assets/css/cl-nav-menu.scss +5 -5
  28. package/src/assets/css/cl-pagination.scss +128 -128
  29. package/src/assets/css/cl-secondary-tab.scss +53 -53
  30. package/src/assets/css/cl-showcolumn.scss +23 -23
  31. package/src/assets/css/cl-sifting.scss +51 -51
  32. package/src/assets/css/cl-statis.scss +42 -42
  33. package/src/assets/css/cl-step.scss +73 -73
  34. package/src/assets/css/cl-suspend.scss +19 -19
  35. package/src/assets/css/cl-tertiary-tab.scss +54 -54
  36. package/src/assets/css/cl-upload.scss +41 -41
  37. package/src/assets/css/cl-worn-pagination.scss +50 -50
  38. package/src/assets/css/el-button.scss +173 -173
  39. package/src/assets/css/el-table.scss +79 -79
  40. package/src/assets/css/element-variables.scss +1061 -1061
  41. package/src/assets/css/element.dev.scss +21 -21
  42. package/src/assets/css/font-icon.scss +27 -27
  43. package/src/assets/css/index.dev.scss +4 -4
  44. package/src/assets/css/index.scss +11 -11
  45. package/src/assets/css/normalize.scss +726 -726
  46. package/src/assets/css/rootvar.scss +139 -139
  47. package/src/assets/css/select.scss +25 -25
  48. package/src/assets/css/title-pop.scss +4 -4
  49. package/src/assets/getJsonc.js +50 -50
  50. package/src/assets/realUrl.js +12 -12
  51. package/src/components/Anchor/AnchorItem.vue +29 -29
  52. package/src/components/Anchor/index.vue +185 -185
  53. package/src/components/ApprovalButtons/index.vue +233 -233
  54. package/src/components/ApprovalCard/index.vue +128 -128
  55. package/src/components/ApprovalRecord/approvalImg.vue +39 -39
  56. package/src/components/ApprovalRecord/index.vue +59 -59
  57. package/src/components/Button/button-group.vue +150 -150
  58. package/src/components/Button/icon-group-button.vue +61 -61
  59. package/src/components/Button/index.vue +56 -56
  60. package/src/components/CascaderArea/index.vue +103 -103
  61. package/src/components/ContentLoading/index.vue +41 -41
  62. package/src/components/ContentNull/index.vue +19 -19
  63. package/src/components/DatePicker/index.vue +27 -27
  64. package/src/components/DatePicker/por.vue +169 -169
  65. package/src/components/Dialog/index.vue +26 -26
  66. package/src/components/Dialog/indexO.vue +116 -116
  67. package/src/components/DragList/index.vue +75 -75
  68. package/src/components/Empty/img/abnormal.svg +108 -108
  69. package/src/components/Empty/img/dispose.svg +71 -71
  70. package/src/components/Empty/img/empty.svg +57 -57
  71. package/src/components/Empty/img/general.svg +58 -58
  72. package/src/components/Empty/img/lock.svg +57 -57
  73. package/src/components/Empty/img/network.svg +59 -59
  74. package/src/components/Empty/img/relevant.svg +68 -68
  75. package/src/components/Empty/img/search.svg +72 -72
  76. package/src/components/Empty/index.vue +92 -92
  77. package/src/components/Expandable/index.vue +49 -49
  78. package/src/components/Expandable/main.vue +52 -52
  79. package/src/components/FileExportAsync/index.vue +178 -178
  80. package/src/components/FileUploadTable/index.vue +484 -484
  81. package/src/components/Filters/index.vue +371 -371
  82. package/src/components/Filters/indexO.vue +104 -104
  83. package/src/components/FlowStep/index.vue +68 -68
  84. package/src/components/FooterBox/index.vue +21 -21
  85. package/src/components/GeneralCard/index.vue +15 -15
  86. package/src/components/InputNumber/index.vue +169 -169
  87. package/src/components/InputNumber/numberRange.vue +47 -47
  88. package/src/components/InputSearch/index.vue +75 -75
  89. package/src/components/Layout/AsideNav/index.vue +119 -119
  90. package/src/components/Layout/AsideNav/menuItem.vue +34 -34
  91. package/src/components/Layout/AsideNav/submenuTitle.vue +26 -26
  92. package/src/components/Layout/HeaderWrap/changePwd.vue +215 -215
  93. package/src/components/Layout/HeaderWrap/index.vue +371 -373
  94. package/src/components/Layout/HeaderWrap/noticePop.vue +300 -300
  95. package/src/components/Layout/SubContent/index.vue +131 -131
  96. package/src/components/Layout/TabsNav/index.vue +170 -170
  97. package/src/components/Layout/index.vue +522 -529
  98. package/src/components/Layout/utils.js +12 -12
  99. package/src/components/LoginTemporary/form.vue +561 -564
  100. package/src/components/LoginTemporary/index.vue +139 -146
  101. package/src/components/LoginTemporary/qrcode.vue +90 -90
  102. package/src/components/LoginTemporary/retrievePw.vue +372 -374
  103. package/src/components/LoginTemporary/utils.js +73 -73
  104. package/src/components/MicroApp/index.js +67 -67
  105. package/src/components/MicroFrame/index.vue +95 -95
  106. package/src/components/MoreTab/index.vue +232 -232
  107. package/src/components/NavMenu/index.vue +60 -60
  108. package/src/components/NstcG6Components/NstcDialog/NstcDialog.vue +184 -184
  109. package/src/components/PageLayout/page.vue +15 -15
  110. package/src/components/Pagination/index.vue +165 -165
  111. package/src/components/SecondaryTab/index.vue +58 -58
  112. package/src/components/SelectLazy/index.vue +75 -75
  113. package/src/components/SelectTree/SelectTreeLazy.vue +241 -241
  114. package/src/components/SelectTree/index.vue +205 -205
  115. package/src/components/ShowColumn/index.vue +213 -208
  116. package/src/components/Sifting/index.vue +99 -99
  117. package/src/components/Statis/index.vue +97 -97
  118. package/src/components/Statis/statisItem.vue +54 -54
  119. package/src/components/Statis/statisPopover.vue +55 -55
  120. package/src/components/Step/index.vue +38 -38
  121. package/src/components/Suspend/index.vue +72 -72
  122. package/src/components/Table/index.vue +209 -209
  123. package/src/components/Table/indexO.vue +149 -149
  124. package/src/components/Task/index.vue +26 -26
  125. package/src/components/TertiaryTab/index.vue +63 -63
  126. package/src/components/TimePicker/index.vue +28 -28
  127. package/src/components/Upload/index.vue +242 -242
  128. package/src/components/WornPagination/index.vue +73 -73
  129. package/src/directives/VClickOutside/index.js +19 -19
  130. package/src/directives/VHas/index.js +58 -58
  131. package/src/directives/VMove/index.js +42 -42
  132. package/src/directives/VTitle/index.js +69 -69
  133. package/src/directives/VTitle/tooltip.vue +21 -21
  134. package/src/index.js +229 -229
  135. package/src/plugins/CompatibleOld/index.js +57 -57
  136. package/src/plugins/Print/index.js +4 -4
  137. package/src/plugins/Print/print-js/.babelrc +12 -12
  138. package/src/plugins/Print/print-js/LICENSE +21 -21
  139. package/src/plugins/Print/print-js/README.md +98 -98
  140. package/src/plugins/Print/print-js/dist/print.css +96 -96
  141. package/src/plugins/Print/print-js/dist/print.js +990 -990
  142. package/src/plugins/Print/print-js/package.json +60 -60
  143. package/src/plugins/Print/print-js/src/index.d.ts +45 -45
  144. package/src/plugins/Print/print-js/src/index.js +10 -10
  145. package/src/plugins/Print/print-js/src/js/browser.js +33 -33
  146. package/src/plugins/Print/print-js/src/js/functions.js +103 -103
  147. package/src/plugins/Print/print-js/src/js/html.js +70 -70
  148. package/src/plugins/Print/print-js/src/js/image.js +48 -48
  149. package/src/plugins/Print/print-js/src/js/init.js +168 -168
  150. package/src/plugins/Print/print-js/src/js/json.js +109 -109
  151. package/src/plugins/Print/print-js/src/js/modal.js +62 -62
  152. package/src/plugins/Print/print-js/src/js/pdf.js +62 -62
  153. package/src/plugins/Print/print-js/src/js/print.js +102 -102
  154. package/src/plugins/Print/print-js/src/js/raw-html.js +15 -15
  155. package/src/plugins/Print/print-js/src/sass/index.scss +13 -13
  156. package/src/plugins/Print/print-js/src/sass/modules/_colors.scss +9 -9
  157. package/src/plugins/Print/print-js/src/sass/partials/_modal.scss +40 -40
  158. package/src/plugins/Print/print-js/src/sass/partials/_spinner.scss +45 -45
  159. package/src/plugins/Print/print.js +2 -2
  160. package/src/plugins/Print/print.scss +1 -1
  161. package/src/plugins/SetMenuTree/index.vue +41 -41
  162. package/src/plugins/SetMenuTree/logoIcon.vue +37 -37
  163. package/src/plugins/SetMenuTree/setmenutree.vue +427 -427
  164. package/src/plugins/SetMenuTree/utils.js +74 -74
  165. package/src/plugins/Sign/InfosecNetSignCNGAgent.min.js +2000 -2000
  166. package/src/plugins/Sign/index.js +65 -65
  167. package/src/plugins/Sign/sign.js +1 -1
  168. package/src/plugins/setTabsForSub.js +2 -2
  169. package/src/utils/auth.js +53 -53
  170. package/src/utils/axios.js +203 -203
  171. package/src/utils/downloadBlob.js +19 -19
  172. package/src/utils/forEachs.js +16 -16
  173. package/src/utils/getScrollContainer.js +43 -43
  174. package/src/utils/i18n/cn2hk.json +1270 -1270
  175. package/src/utils/i18n/index.js +50 -50
  176. package/src/utils/list2tree.js +36 -36
  177. package/src/utils/msgboxPor.js +26 -26
  178. package/src/utils/print.js +161 -161
  179. package/src/utils/relaNo.js +76 -76
  180. package/src/utils/repairElementUI.js +66 -66
  181. package/src/utils/urlToGo.js +82 -82
  182. package/style/css/normalize.scss +726 -726
  183. package/style/index.css +3 -3
  184. package/style/pageDemo/demo-1.vue +131 -131
  185. package/style/pageDemo/demo-2.vue +35 -35
  186. package/style/pageDemo/demo-3.vue +22 -22
  187. package/style/pageDemo/seeCode.js +20 -20
  188. package/style/server-config.jsonc +606 -606
  189. package/src/components/.DS_Store +0 -0
  190. package/src/components/Layout/.DS_Store +0 -0
  191. package/src/components/NstcG6Components/.DS_Store +0 -0
@@ -1,612 +1,612 @@
1
- $--s: 1024px;
2
- $--m: 1600px;
3
- $--l: 1920px;
4
- $--input-max: 304px;
5
-
6
- .el-form-item[span],
7
- .el-form-item[span-s],
8
- .el-form-item[span-m],
9
- .el-form-item[span-l],
10
- .el-form-item[span-lg],
11
- .el-form-item[span-xl] {
12
- display: inline-block;
13
- box-sizing: border-box;
14
- margin-right: 0;
15
- }
16
-
17
- @for $i from 0 through 24 {
18
- .el-form-item[span='#{$i}'] {
19
- width: (1 / 24 * $i * 100) * 1%;
20
- }
21
- }
22
-
23
- @media only screen and (min-width: ($--l + 1px)) {
24
- @for $i from 0 through 24 {
25
- .el-form-item[span-xl='#{$i}'] {
26
- width: (1 / 24 * $i * 100) * 1%;
27
- }
28
- }
29
- }
30
-
31
- @media only screen and (max-width: $--l) {
32
- @for $i from 0 through 24 {
33
- .el-form-item[span-l='#{$i}'],
34
- .el-form-item[span-lg='#{$i}'] {
35
- width: (1 / 24 * $i * 100) * 1%;
36
- }
37
- }
38
- }
39
-
40
- @media only screen and (max-width: $--m) {
41
- @for $i from 0 through 24 {
42
- .el-form-item[span-m='#{$i}'] {
43
- width: (1 / 24 * $i * 100) * 1%;
44
- }
45
- }
46
- }
47
-
48
- @media only screen and (max-width: $--s) {
49
- @for $i from 0 through 24 {
50
- .el-form-item[span-s='#{$i}'] {
51
- width: (1 / 24 * $i * 100) * 1%;
52
- }
53
- }
54
- }
55
-
56
- @for $i from 1 through 20 {
57
- .el-form[gutter='#{$i}0'] {
58
- margin-left: $i * -5px;
59
- margin-right: $i * -5px;
60
- .el-form-item {
61
- padding-left: $i * 5px;
62
- padding-right: $i * 5px;
63
- }
64
- .n20-title {
65
- margin-left: $i * 5px;
66
- margin-right: $i * 5px;
67
- }
68
- }
69
- }
70
- .el-form[gutter] {
71
- &.m-lr-auto {
72
- margin-left: auto;
73
- margin-right: auto;
74
- }
75
- }
76
-
77
- .el-form-item,
78
- .el-form-item--small.el-form-item {
79
- margin-bottom: 24px;
80
- }
81
- .el-form-item__error,
82
- .el-form-item--small .el-form-item__error {
83
- padding-top: 4px;
84
- }
85
-
86
- .el-input__inner:focus {
87
- box-shadow: 0 0 2px $--color-primary;
88
- }
89
-
90
- .el-select-dropdown,
91
- .el-dropdown-menu,
92
- .el-autocomplete-suggestion {
93
- .popper__arrow {
94
- display: none;
95
- }
96
- }
97
-
98
- .el-input__prefix,
99
- .el-input__suffix {
100
- font-size: 16px;
101
- }
102
-
103
- .el-input__inner {
104
- padding-left: 10px;
105
- &[oreadonly] {
106
- border-color: $--border-color-base;
107
- }
108
- }
109
-
110
- .w-224 {
111
- width: $--input-width !important;
112
- }
113
- .input-w {
114
- width: $--input-width !important;
115
- }
116
-
117
- .el-form.label-width-6em {
118
- margin-left: 96px;
119
- margin-right: 14px;
120
- .n20-title,
121
- .n20-in-block {
122
- margin-left: -96px;
123
- margin-right: -14px;
124
- }
125
- .el-form-item.col-span-24 {
126
- @media only screen and (min-width: ($--l + 1px)) {
127
- .el-textarea {
128
- max-width: calc(25% + 1.5em + #{$--input-max});
129
- width: calc(50% - 3em);
130
- }
131
- }
132
-
133
- @media only screen and (max-width: $--l) {
134
- .el-textarea {
135
- max-width: calc(33.33% + 2em + #{$--input-max});
136
- width: calc(66.66% - 2em);
137
- }
138
- }
139
-
140
- @media only screen and (max-width: $--m) {
141
- .el-textarea {
142
- max-width: calc(50% + 3em + #{$--input-max});
143
- width: 100%;
144
- }
145
- }
146
-
147
- @media only screen and (max-width: $--s) {
148
- .el-form-item {
149
- max-width: none;
150
- width: 100%;
151
- }
152
- }
153
- }
154
- }
155
- .el-form.label-width-8em {
156
- margin-left: 66px;
157
- margin-right: 38px;
158
- .n20-title,
159
- .n20-in-block {
160
- margin-left: -66px;
161
- margin-right: -38px;
162
- }
163
- .el-form-item.col-span-24 {
164
- @media only screen and (min-width: ($--l + 1px)) {
165
- .el-textarea {
166
- max-width: calc(25% + 1.5em + #{$--input-max});
167
- width: calc(50% - 3em);
168
- }
169
- }
170
-
171
- @media only screen and (max-width: $--l) {
172
- .el-textarea {
173
- max-width: calc(33.33% + 2em + #{$--input-max});
174
- width: calc(66.66% - 2em);
175
- }
176
- }
177
-
178
- @media only screen and (max-width: $--m) {
179
- .el-textarea {
180
- max-width: calc(50% + 3em + #{$--input-max});
181
- width: 100%;
182
- }
183
- }
184
-
185
- @media only screen and (max-width: $--s) {
186
- .el-form-item {
187
- max-width: none;
188
- width: 100%;
189
- }
190
- }
191
- }
192
- }
193
- .el-form.label-width-10em {
194
- margin-left: 40px;
195
- margin-right: 70px;
196
- .n20-title,
197
- .n20-in-block {
198
- margin-left: -40px;
199
- margin-right: -70px;
200
- }
201
- .el-form-item.col-span-24 {
202
- @media only screen and (min-width: ($--l + 1px)) {
203
- .el-textarea {
204
- max-width: calc(25% + 2.5em + #{$--input-max});
205
- width: calc(50% - 5em);
206
- }
207
- }
208
-
209
- @media only screen and (max-width: $--l) {
210
- .el-textarea {
211
- max-width: calc(33.33% + 3.33em + #{$--input-max});
212
- width: calc(66.66% - 3.33em);
213
- }
214
- }
215
-
216
- @media only screen and (max-width: $--m) {
217
- .el-textarea {
218
- max-width: calc(50% + 5em + #{$--input-max});
219
- width: 100%;
220
- }
221
- }
222
-
223
- @media only screen and (max-width: $--s) {
224
- .el-form-item {
225
- max-width: none;
226
- width: 100%;
227
- }
228
- }
229
- }
230
- }
231
- .el-form.label-width-12em {
232
- margin-left: 10px;
233
- margin-right: 96px;
234
- .n20-title,
235
- .n20-in-block {
236
- margin-left: -10px;
237
- margin-right: -96px;
238
- }
239
- .el-form-item.col-span-24 {
240
- @media only screen and (min-width: ($--l + 1px)) {
241
- .el-textarea {
242
- max-width: calc(25% + 3em + #{$--input-max});
243
- width: calc(50% - 6em);
244
- }
245
- }
246
-
247
- @media only screen and (max-width: $--l) {
248
- .el-textarea {
249
- max-width: calc(33.33% + 4em + #{$--input-max});
250
- width: calc(66.66% - 4em);
251
- }
252
- }
253
-
254
- @media only screen and (max-width: $--m) {
255
- .el-textarea {
256
- max-width: calc(50% + 6em + #{$--input-max});
257
- width: 100%;
258
- }
259
- }
260
-
261
- @media only screen and (max-width: $--s) {
262
- .el-form-item {
263
- max-width: none;
264
- width: 100%;
265
- }
266
- }
267
- }
268
- }
269
- .el-form.label-width-14em {
270
- margin-left: 0px;
271
- margin-right: 96px;
272
- .n20-title,
273
- .n20-in-block {
274
- margin-left: 0px;
275
- margin-right: -96px;
276
- }
277
- .el-form-item.col-span-24 {
278
- @media only screen and (min-width: ($--l + 1px)) {
279
- .el-textarea {
280
- max-width: calc(25% + 4.66em + #{$--input-max});
281
- width: calc(50% - 7em);
282
- }
283
- }
284
-
285
- @media only screen and (max-width: $--l) {
286
- .el-textarea {
287
- max-width: calc(33.33% + 4.66em + #{$--input-max});
288
- width: calc(66.66% - 4.66em);
289
- }
290
- }
291
-
292
- @media only screen and (max-width: $--m) {
293
- .el-textarea {
294
- max-width: calc(50% + 7em + #{$--input-max});
295
- width: 100%;
296
- }
297
- }
298
-
299
- @media only screen and (max-width: $--s) {
300
- .el-form-item {
301
- max-width: none;
302
- width: 100%;
303
- }
304
- }
305
- }
306
- }
307
- .el-form.label-width-16em {
308
- margin-left: 0px;
309
- margin-right: 98px;
310
- .n20-title,
311
- .n20-in-block {
312
- margin-left: 0px;
313
- margin-right: -96px;
314
- }
315
- .el-form-item.col-span-24 {
316
- @media only screen and (min-width: ($--l + 1px)) {
317
- .el-textarea {
318
- max-width: calc(25% + 4em + #{$--input-max});
319
- width: calc(50% - 8em);
320
- }
321
- }
322
-
323
- @media only screen and (max-width: $--l) {
324
- .el-textarea {
325
- max-width: calc(33.33% + 5.33em + #{$--input-max});
326
- width: calc(66.66% - 5.33em);
327
- }
328
- }
329
-
330
- @media only screen and (max-width: $--m) {
331
- .el-textarea {
332
- max-width: calc(50% + 8em + #{$--input-max});
333
- width: 100%;
334
- }
335
- }
336
-
337
- @media only screen and (max-width: $--s) {
338
- .el-form-item {
339
- max-width: none;
340
- width: 100%;
341
- }
342
- }
343
- }
344
- }
345
- .el-form.label-width-6em,
346
- .el-form.label-width-8em,
347
- .el-form.label-width-10em,
348
- .el-form.label-width-12em,
349
- .el-form.label-width-14em,
350
- .el-form.label-width-16em {
351
- .el-form-item {
352
- width: 50%;
353
- display: inline-block;
354
- box-sizing: border-box;
355
- margin-right: 0;
356
- }
357
- @media only screen and (min-width: ($--s + 1px)) {
358
- .el-form-item__content {
359
- max-width: $--input-max;
360
- }
361
- }
362
- .el-form-item.col-span-24 {
363
- width: 100%;
364
- .el-form-item__content {
365
- max-width: none;
366
- }
367
- }
368
-
369
- @media only screen and (min-width: ($--l + 1px)) {
370
- .el-form-item {
371
- width: 25%;
372
- }
373
- }
374
-
375
- @media only screen and (max-width: $--l) {
376
- .el-form-item {
377
- width: 33.33%;
378
- }
379
- }
380
-
381
- @media only screen and (max-width: $--m) {
382
- .el-form-item {
383
- width: 50%;
384
- }
385
- }
386
-
387
- @media only screen and (max-width: $--s) {
388
- .el-form-item {
389
- width: 100%;
390
- }
391
- }
392
- }
393
-
394
- .el-input,
395
- .n20-input-search {
396
- .is-search {
397
- pointer-events: all;
398
- cursor: pointer;
399
- &:hover,
400
- &:active {
401
- font-weight: bolder;
402
- color: $--color-primary;
403
- }
404
- }
405
- }
406
-
407
- .el-select {
408
- .el-tag.el-tag--info {
409
- background: #eeeeee;
410
- border: none;
411
- border-radius: 2px;
412
- &:hover {
413
- .el-tag__close {
414
- opacity: 1;
415
- }
416
- }
417
- }
418
- .el-tag__close.el-icon-close {
419
- right: -4px;
420
- opacity: 0;
421
- }
422
- }
423
-
424
- // .el-select-dropdown__item {
425
- // &.selected {
426
- // font-weight: initial;
427
- // }
428
- // }
429
-
430
- .el-radio__inner,
431
- .el-checkbox__inner {
432
- width: 16px;
433
- height: 16px;
434
- }
435
-
436
- .el-radio__label,
437
- .el-checkbox__label {
438
- padding-left: 6px;
439
- }
440
-
441
- .el-radio__inner {
442
- &::after {
443
- width: 8px;
444
- height: 8px;
445
- background-color: $--color-primary;
446
- }
447
- }
448
-
449
- .el-checkbox__inner {
450
- &::after {
451
- width: 4px;
452
- height: 8px;
453
- }
454
- }
455
-
456
- .el-switch {
457
- &[inline] {
458
- position: relative;
459
- .el-switch__label {
460
- position: absolute;
461
- z-index: 1;
462
- color: #ffffff;
463
- margin-left: 0;
464
- margin-right: 0;
465
- display: none;
466
- &.is-active {
467
- display: initial;
468
- }
469
- }
470
- .el-switch__label--left {
471
- right: 8px;
472
- }
473
- .el-switch__label--right {
474
- left: 8px;
475
- }
476
- }
477
- }
478
- .el-switch {
479
- &.is-disabled {
480
- opacity: 0.3;
481
- }
482
- }
483
-
484
- .n20-date-editor.el-input--prefix {
485
- width: $--input-width;
486
- .el-input__inner {
487
- padding-left: 10px;
488
- }
489
- .el-input__prefix {
490
- right: 5px;
491
- left: unset;
492
- font-size: 16px;
493
- }
494
- &.has-value {
495
- &:not(.is-disabled):hover {
496
- .el-input__prefix {
497
- display: none;
498
- }
499
- }
500
- }
501
- }
502
-
503
- .el-range-editor {
504
- position: relative;
505
- .el-range__icon {
506
- position: absolute;
507
- height: 100%;
508
- right: 5px;
509
- top: 0;
510
- text-align: center;
511
- color: #cccccc;
512
- font-size: 16px;
513
- transition: all 0.3s;
514
- }
515
- &.has-value {
516
- &:hover {
517
- .el-range__icon {
518
- display: none;
519
- }
520
- }
521
- }
522
- .el-range__close-icon {
523
- position: absolute;
524
- height: 100%;
525
- right: 5px;
526
- top: 0;
527
- text-align: center;
528
- color: #cccccc;
529
- transition: all 0.3s;
530
- }
531
- }
532
-
533
- .el-range-editor.el-input__inner {
534
- width: $--input-width;
535
- padding-right: 30px;
536
- }
537
- .el-range-editor .el-range-input {
538
- flex: 1 1 auto;
539
- text-align: left;
540
- }
541
- .el-range-editor:not(.has-value) .el-range-separator {
542
- color: #cccccc;
543
- }
544
-
545
- .el-date-table td {
546
- & span {
547
- border-radius: 2px;
548
- }
549
- &.today span {
550
- border: 1px solid $--color-primary;
551
- }
552
- &.available:hover span {
553
- background: $--color-primary-light-9;
554
- }
555
- &.current:not(.disabled) span {
556
- background-color: $--color-primary;
557
- }
558
- &.start-date div {
559
- border-top-left-radius: 2px;
560
- border-bottom-left-radius: 2px;
561
- }
562
- &.end-date div {
563
- border-top-right-radius: 2px;
564
- border-bottom-right-radius: 2px;
565
- }
566
- &.start-date,
567
- &.end-date {
568
- &:hover span {
569
- background-color: $--color-primary;
570
- }
571
- }
572
- }
573
- /* 金额,利率输入框 */
574
- .n20-num-w {
575
- display: inline-block;
576
- width: $--input-width;
577
- position: relative;
578
- .n20-num,
579
- .n20-stc {
580
- width: 100%;
581
- .el-input__inner {
582
- text-align: right;
583
- }
584
- }
585
- .n20-num--rate {
586
- .el-input__inner {
587
- padding-right: 30px;
588
- }
589
- }
590
- .el-input__suffix {
591
- font-size: 14px;
592
- }
593
- }
594
- /* 多选搜索框 */
595
- .n20-input-search {
596
- display: inline-block;
597
- width: $--input-width;
598
- position: relative;
599
- .el-select {
600
- width: 100%;
601
- .el-select__input {
602
- margin-left: 10px;
603
- }
604
- }
605
- .el-select .el-input__suffix {
606
- display: none;
607
- }
608
- }
609
-
610
- .el-input__inner:not([disabled]):hover {
611
- border-color: $--color-primary !important;
612
- }
1
+ $--s: 1024px;
2
+ $--m: 1600px;
3
+ $--l: 1920px;
4
+ $--input-max: 304px;
5
+
6
+ .el-form-item[span],
7
+ .el-form-item[span-s],
8
+ .el-form-item[span-m],
9
+ .el-form-item[span-l],
10
+ .el-form-item[span-lg],
11
+ .el-form-item[span-xl] {
12
+ display: inline-block;
13
+ box-sizing: border-box;
14
+ margin-right: 0;
15
+ }
16
+
17
+ @for $i from 0 through 24 {
18
+ .el-form-item[span='#{$i}'] {
19
+ width: (1 / 24 * $i * 100) * 1%;
20
+ }
21
+ }
22
+
23
+ @media only screen and (min-width: ($--l + 1px)) {
24
+ @for $i from 0 through 24 {
25
+ .el-form-item[span-xl='#{$i}'] {
26
+ width: (1 / 24 * $i * 100) * 1%;
27
+ }
28
+ }
29
+ }
30
+
31
+ @media only screen and (max-width: $--l) {
32
+ @for $i from 0 through 24 {
33
+ .el-form-item[span-l='#{$i}'],
34
+ .el-form-item[span-lg='#{$i}'] {
35
+ width: (1 / 24 * $i * 100) * 1%;
36
+ }
37
+ }
38
+ }
39
+
40
+ @media only screen and (max-width: $--m) {
41
+ @for $i from 0 through 24 {
42
+ .el-form-item[span-m='#{$i}'] {
43
+ width: (1 / 24 * $i * 100) * 1%;
44
+ }
45
+ }
46
+ }
47
+
48
+ @media only screen and (max-width: $--s) {
49
+ @for $i from 0 through 24 {
50
+ .el-form-item[span-s='#{$i}'] {
51
+ width: (1 / 24 * $i * 100) * 1%;
52
+ }
53
+ }
54
+ }
55
+
56
+ @for $i from 1 through 20 {
57
+ .el-form[gutter='#{$i}0'] {
58
+ margin-left: $i * -5px;
59
+ margin-right: $i * -5px;
60
+ .el-form-item {
61
+ padding-left: $i * 5px;
62
+ padding-right: $i * 5px;
63
+ }
64
+ .n20-title {
65
+ margin-left: $i * 5px;
66
+ margin-right: $i * 5px;
67
+ }
68
+ }
69
+ }
70
+ .el-form[gutter] {
71
+ &.m-lr-auto {
72
+ margin-left: auto;
73
+ margin-right: auto;
74
+ }
75
+ }
76
+
77
+ .el-form-item,
78
+ .el-form-item--small.el-form-item {
79
+ margin-bottom: 24px;
80
+ }
81
+ .el-form-item__error,
82
+ .el-form-item--small .el-form-item__error {
83
+ padding-top: 4px;
84
+ }
85
+
86
+ .el-input__inner:focus {
87
+ box-shadow: 0 0 2px $--color-primary;
88
+ }
89
+
90
+ .el-select-dropdown,
91
+ .el-dropdown-menu,
92
+ .el-autocomplete-suggestion {
93
+ .popper__arrow {
94
+ display: none;
95
+ }
96
+ }
97
+
98
+ .el-input__prefix,
99
+ .el-input__suffix {
100
+ font-size: 16px;
101
+ }
102
+
103
+ .el-input__inner {
104
+ padding-left: 10px;
105
+ &[oreadonly] {
106
+ border-color: $--border-color-base;
107
+ }
108
+ }
109
+
110
+ .w-224 {
111
+ width: $--input-width !important;
112
+ }
113
+ .input-w {
114
+ width: $--input-width !important;
115
+ }
116
+
117
+ .el-form.label-width-6em {
118
+ margin-left: 96px;
119
+ margin-right: 14px;
120
+ .n20-title,
121
+ .n20-in-block {
122
+ margin-left: -96px;
123
+ margin-right: -14px;
124
+ }
125
+ .el-form-item.col-span-24 {
126
+ @media only screen and (min-width: ($--l + 1px)) {
127
+ .el-textarea {
128
+ max-width: calc(25% + 1.5em + #{$--input-max});
129
+ width: calc(50% - 3em);
130
+ }
131
+ }
132
+
133
+ @media only screen and (max-width: $--l) {
134
+ .el-textarea {
135
+ max-width: calc(33.33% + 2em + #{$--input-max});
136
+ width: calc(66.66% - 2em);
137
+ }
138
+ }
139
+
140
+ @media only screen and (max-width: $--m) {
141
+ .el-textarea {
142
+ max-width: calc(50% + 3em + #{$--input-max});
143
+ width: 100%;
144
+ }
145
+ }
146
+
147
+ @media only screen and (max-width: $--s) {
148
+ .el-form-item {
149
+ max-width: none;
150
+ width: 100%;
151
+ }
152
+ }
153
+ }
154
+ }
155
+ .el-form.label-width-8em {
156
+ margin-left: 66px;
157
+ margin-right: 38px;
158
+ .n20-title,
159
+ .n20-in-block {
160
+ margin-left: -66px;
161
+ margin-right: -38px;
162
+ }
163
+ .el-form-item.col-span-24 {
164
+ @media only screen and (min-width: ($--l + 1px)) {
165
+ .el-textarea {
166
+ max-width: calc(25% + 1.5em + #{$--input-max});
167
+ width: calc(50% - 3em);
168
+ }
169
+ }
170
+
171
+ @media only screen and (max-width: $--l) {
172
+ .el-textarea {
173
+ max-width: calc(33.33% + 2em + #{$--input-max});
174
+ width: calc(66.66% - 2em);
175
+ }
176
+ }
177
+
178
+ @media only screen and (max-width: $--m) {
179
+ .el-textarea {
180
+ max-width: calc(50% + 3em + #{$--input-max});
181
+ width: 100%;
182
+ }
183
+ }
184
+
185
+ @media only screen and (max-width: $--s) {
186
+ .el-form-item {
187
+ max-width: none;
188
+ width: 100%;
189
+ }
190
+ }
191
+ }
192
+ }
193
+ .el-form.label-width-10em {
194
+ margin-left: 40px;
195
+ margin-right: 70px;
196
+ .n20-title,
197
+ .n20-in-block {
198
+ margin-left: -40px;
199
+ margin-right: -70px;
200
+ }
201
+ .el-form-item.col-span-24 {
202
+ @media only screen and (min-width: ($--l + 1px)) {
203
+ .el-textarea {
204
+ max-width: calc(25% + 2.5em + #{$--input-max});
205
+ width: calc(50% - 5em);
206
+ }
207
+ }
208
+
209
+ @media only screen and (max-width: $--l) {
210
+ .el-textarea {
211
+ max-width: calc(33.33% + 3.33em + #{$--input-max});
212
+ width: calc(66.66% - 3.33em);
213
+ }
214
+ }
215
+
216
+ @media only screen and (max-width: $--m) {
217
+ .el-textarea {
218
+ max-width: calc(50% + 5em + #{$--input-max});
219
+ width: 100%;
220
+ }
221
+ }
222
+
223
+ @media only screen and (max-width: $--s) {
224
+ .el-form-item {
225
+ max-width: none;
226
+ width: 100%;
227
+ }
228
+ }
229
+ }
230
+ }
231
+ .el-form.label-width-12em {
232
+ margin-left: 10px;
233
+ margin-right: 96px;
234
+ .n20-title,
235
+ .n20-in-block {
236
+ margin-left: -10px;
237
+ margin-right: -96px;
238
+ }
239
+ .el-form-item.col-span-24 {
240
+ @media only screen and (min-width: ($--l + 1px)) {
241
+ .el-textarea {
242
+ max-width: calc(25% + 3em + #{$--input-max});
243
+ width: calc(50% - 6em);
244
+ }
245
+ }
246
+
247
+ @media only screen and (max-width: $--l) {
248
+ .el-textarea {
249
+ max-width: calc(33.33% + 4em + #{$--input-max});
250
+ width: calc(66.66% - 4em);
251
+ }
252
+ }
253
+
254
+ @media only screen and (max-width: $--m) {
255
+ .el-textarea {
256
+ max-width: calc(50% + 6em + #{$--input-max});
257
+ width: 100%;
258
+ }
259
+ }
260
+
261
+ @media only screen and (max-width: $--s) {
262
+ .el-form-item {
263
+ max-width: none;
264
+ width: 100%;
265
+ }
266
+ }
267
+ }
268
+ }
269
+ .el-form.label-width-14em {
270
+ margin-left: 0px;
271
+ margin-right: 96px;
272
+ .n20-title,
273
+ .n20-in-block {
274
+ margin-left: 0px;
275
+ margin-right: -96px;
276
+ }
277
+ .el-form-item.col-span-24 {
278
+ @media only screen and (min-width: ($--l + 1px)) {
279
+ .el-textarea {
280
+ max-width: calc(25% + 4.66em + #{$--input-max});
281
+ width: calc(50% - 7em);
282
+ }
283
+ }
284
+
285
+ @media only screen and (max-width: $--l) {
286
+ .el-textarea {
287
+ max-width: calc(33.33% + 4.66em + #{$--input-max});
288
+ width: calc(66.66% - 4.66em);
289
+ }
290
+ }
291
+
292
+ @media only screen and (max-width: $--m) {
293
+ .el-textarea {
294
+ max-width: calc(50% + 7em + #{$--input-max});
295
+ width: 100%;
296
+ }
297
+ }
298
+
299
+ @media only screen and (max-width: $--s) {
300
+ .el-form-item {
301
+ max-width: none;
302
+ width: 100%;
303
+ }
304
+ }
305
+ }
306
+ }
307
+ .el-form.label-width-16em {
308
+ margin-left: 0px;
309
+ margin-right: 98px;
310
+ .n20-title,
311
+ .n20-in-block {
312
+ margin-left: 0px;
313
+ margin-right: -96px;
314
+ }
315
+ .el-form-item.col-span-24 {
316
+ @media only screen and (min-width: ($--l + 1px)) {
317
+ .el-textarea {
318
+ max-width: calc(25% + 4em + #{$--input-max});
319
+ width: calc(50% - 8em);
320
+ }
321
+ }
322
+
323
+ @media only screen and (max-width: $--l) {
324
+ .el-textarea {
325
+ max-width: calc(33.33% + 5.33em + #{$--input-max});
326
+ width: calc(66.66% - 5.33em);
327
+ }
328
+ }
329
+
330
+ @media only screen and (max-width: $--m) {
331
+ .el-textarea {
332
+ max-width: calc(50% + 8em + #{$--input-max});
333
+ width: 100%;
334
+ }
335
+ }
336
+
337
+ @media only screen and (max-width: $--s) {
338
+ .el-form-item {
339
+ max-width: none;
340
+ width: 100%;
341
+ }
342
+ }
343
+ }
344
+ }
345
+ .el-form.label-width-6em,
346
+ .el-form.label-width-8em,
347
+ .el-form.label-width-10em,
348
+ .el-form.label-width-12em,
349
+ .el-form.label-width-14em,
350
+ .el-form.label-width-16em {
351
+ .el-form-item {
352
+ width: 50%;
353
+ display: inline-block;
354
+ box-sizing: border-box;
355
+ margin-right: 0;
356
+ }
357
+ @media only screen and (min-width: ($--s + 1px)) {
358
+ .el-form-item__content {
359
+ max-width: $--input-max;
360
+ }
361
+ }
362
+ .el-form-item.col-span-24 {
363
+ width: 100%;
364
+ .el-form-item__content {
365
+ max-width: none;
366
+ }
367
+ }
368
+
369
+ @media only screen and (min-width: ($--l + 1px)) {
370
+ .el-form-item {
371
+ width: 25%;
372
+ }
373
+ }
374
+
375
+ @media only screen and (max-width: $--l) {
376
+ .el-form-item {
377
+ width: 33.33%;
378
+ }
379
+ }
380
+
381
+ @media only screen and (max-width: $--m) {
382
+ .el-form-item {
383
+ width: 50%;
384
+ }
385
+ }
386
+
387
+ @media only screen and (max-width: $--s) {
388
+ .el-form-item {
389
+ width: 100%;
390
+ }
391
+ }
392
+ }
393
+
394
+ .el-input,
395
+ .n20-input-search {
396
+ .is-search {
397
+ pointer-events: all;
398
+ cursor: pointer;
399
+ &:hover,
400
+ &:active {
401
+ font-weight: bolder;
402
+ color: $--color-primary;
403
+ }
404
+ }
405
+ }
406
+
407
+ .el-select {
408
+ .el-tag.el-tag--info {
409
+ background: #eeeeee;
410
+ border: none;
411
+ border-radius: 2px;
412
+ &:hover {
413
+ .el-tag__close {
414
+ opacity: 1;
415
+ }
416
+ }
417
+ }
418
+ .el-tag__close.el-icon-close {
419
+ right: -4px;
420
+ opacity: 0;
421
+ }
422
+ }
423
+
424
+ // .el-select-dropdown__item {
425
+ // &.selected {
426
+ // font-weight: initial;
427
+ // }
428
+ // }
429
+
430
+ .el-radio__inner,
431
+ .el-checkbox__inner {
432
+ width: 16px;
433
+ height: 16px;
434
+ }
435
+
436
+ .el-radio__label,
437
+ .el-checkbox__label {
438
+ padding-left: 6px;
439
+ }
440
+
441
+ .el-radio__inner {
442
+ &::after {
443
+ width: 8px;
444
+ height: 8px;
445
+ background-color: $--color-primary;
446
+ }
447
+ }
448
+
449
+ .el-checkbox__inner {
450
+ &::after {
451
+ width: 4px;
452
+ height: 8px;
453
+ }
454
+ }
455
+
456
+ .el-switch {
457
+ &[inline] {
458
+ position: relative;
459
+ .el-switch__label {
460
+ position: absolute;
461
+ z-index: 1;
462
+ color: #ffffff;
463
+ margin-left: 0;
464
+ margin-right: 0;
465
+ display: none;
466
+ &.is-active {
467
+ display: initial;
468
+ }
469
+ }
470
+ .el-switch__label--left {
471
+ right: 8px;
472
+ }
473
+ .el-switch__label--right {
474
+ left: 8px;
475
+ }
476
+ }
477
+ }
478
+ .el-switch {
479
+ &.is-disabled {
480
+ opacity: 0.3;
481
+ }
482
+ }
483
+
484
+ .n20-date-editor.el-input--prefix {
485
+ width: $--input-width;
486
+ .el-input__inner {
487
+ padding-left: 10px;
488
+ }
489
+ .el-input__prefix {
490
+ right: 5px;
491
+ left: unset;
492
+ font-size: 16px;
493
+ }
494
+ &.has-value {
495
+ &:not(.is-disabled):hover {
496
+ .el-input__prefix {
497
+ display: none;
498
+ }
499
+ }
500
+ }
501
+ }
502
+
503
+ .el-range-editor {
504
+ position: relative;
505
+ .el-range__icon {
506
+ position: absolute;
507
+ height: 100%;
508
+ right: 5px;
509
+ top: 0;
510
+ text-align: center;
511
+ color: #cccccc;
512
+ font-size: 16px;
513
+ transition: all 0.3s;
514
+ }
515
+ &.has-value {
516
+ &:hover {
517
+ .el-range__icon {
518
+ display: none;
519
+ }
520
+ }
521
+ }
522
+ .el-range__close-icon {
523
+ position: absolute;
524
+ height: 100%;
525
+ right: 5px;
526
+ top: 0;
527
+ text-align: center;
528
+ color: #cccccc;
529
+ transition: all 0.3s;
530
+ }
531
+ }
532
+
533
+ .el-range-editor.el-input__inner {
534
+ width: $--input-width;
535
+ padding-right: 30px;
536
+ }
537
+ .el-range-editor .el-range-input {
538
+ flex: 1 1 auto;
539
+ text-align: left;
540
+ }
541
+ .el-range-editor:not(.has-value) .el-range-separator {
542
+ color: #cccccc;
543
+ }
544
+
545
+ .el-date-table td {
546
+ & span {
547
+ border-radius: 2px;
548
+ }
549
+ &.today span {
550
+ border: 1px solid $--color-primary;
551
+ }
552
+ &.available:hover span {
553
+ background: $--color-primary-light-9;
554
+ }
555
+ &.current:not(.disabled) span {
556
+ background-color: $--color-primary;
557
+ }
558
+ &.start-date div {
559
+ border-top-left-radius: 2px;
560
+ border-bottom-left-radius: 2px;
561
+ }
562
+ &.end-date div {
563
+ border-top-right-radius: 2px;
564
+ border-bottom-right-radius: 2px;
565
+ }
566
+ &.start-date,
567
+ &.end-date {
568
+ &:hover span {
569
+ background-color: $--color-primary;
570
+ }
571
+ }
572
+ }
573
+ /* 金额,利率输入框 */
574
+ .n20-num-w {
575
+ display: inline-block;
576
+ width: $--input-width;
577
+ position: relative;
578
+ .n20-num,
579
+ .n20-stc {
580
+ width: 100%;
581
+ .el-input__inner {
582
+ text-align: right;
583
+ }
584
+ }
585
+ .n20-num--rate {
586
+ .el-input__inner {
587
+ padding-right: 30px;
588
+ }
589
+ }
590
+ .el-input__suffix {
591
+ font-size: 14px;
592
+ }
593
+ }
594
+ /* 多选搜索框 */
595
+ .n20-input-search {
596
+ display: inline-block;
597
+ width: $--input-width;
598
+ position: relative;
599
+ .el-select {
600
+ width: 100%;
601
+ .el-select__input {
602
+ margin-left: 10px;
603
+ }
604
+ }
605
+ .el-select .el-input__suffix {
606
+ display: none;
607
+ }
608
+ }
609
+
610
+ .el-input__inner:not([disabled]):hover {
611
+ border-color: $--color-primary !important;
612
+ }