n20-common-lib 1.2.9 → 1.2.10

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 (189) hide show
  1. package/README.md +2 -2
  2. package/package.json +87 -87
  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 +606 -454
  18. package/src/assets/css/cl-general-card.scss +11 -11
  19. package/src/assets/css/cl-layout-aside.scss +88 -88
  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 +65 -65
  29. package/src/assets/css/cl-secondary-tab.scss +39 -39
  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 +9 -9
  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 -232
  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 -81
  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 +68 -68
  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 +174 -174
  80. package/src/components/FileUploadTable/index.vue +484 -484
  81. package/src/components/Filters/index.vue +369 -369
  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 -153
  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 +348 -348
  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 +529 -529
  98. package/src/components/Layout/utils.js +12 -12
  99. package/src/components/LoginTemporary/form.vue +537 -537
  100. package/src/components/LoginTemporary/index.vue +122 -122
  101. package/src/components/LoginTemporary/qrcode.vue +90 -90
  102. package/src/components/LoginTemporary/retrievePw.vue +28 -28
  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 +96 -96
  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 +204 -204
  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 +179 -179
  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 +53 -53
  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 +32 -32
  131. package/src/directives/VMove/index.js +42 -42
  132. package/src/directives/VTitle/index.js +64 -64
  133. package/src/directives/VTitle/tooltip.vue +21 -21
  134. package/src/index.js +225 -225
  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 +54 -54
  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 +69 -69
  180. package/src/utils/repairElementUI.js +66 -66
  181. package/src/utils/urlToGo.js +82 -82
  182. package/style/css/normalize.scss +726 -723
  183. package/style/pageDemo/demo-1.vue +131 -130
  184. package/style/pageDemo/demo-2.vue +35 -35
  185. package/style/pageDemo/demo-3.vue +22 -22
  186. package/style/pageDemo/seeCode.js +20 -20
  187. package/style/server-config.jsonc +596 -663
  188. package/src/components/.DS_Store +0 -0
  189. package/src/components/Layout/.DS_Store +0 -0
@@ -1,454 +1,606 @@
1
- $--s: 1024px;
2
- $--m: 1366px + 160px;
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
- margin-left: -96px;
122
- margin-right: -14px;
123
- }
124
- .el-form-item.col-span-24 {
125
- @media only screen and (min-width: ($--l + 1px)) {
126
- .el-textarea {
127
- max-width: calc(25% + 1.5em + #{$--input-max});
128
- width: calc(50% - 3em);
129
- }
130
- }
131
-
132
- @media only screen and (max-width: $--l) {
133
- .el-textarea {
134
- max-width: calc(33.33% + 2em + #{$--input-max});
135
- width: calc(66.66% - 2em);
136
- }
137
- }
138
-
139
- @media only screen and (max-width: $--m) {
140
- .el-textarea {
141
- max-width: calc(50% + 3em + #{$--input-max});
142
- width: 100%;
143
- }
144
- }
145
-
146
- @media only screen and (max-width: $--s) {
147
- .el-form-item {
148
- max-width: none;
149
- width: 100%;
150
- }
151
- }
152
- }
153
- }
154
- .el-form.label-width-10em {
155
- margin-left: 40px;
156
- margin-right: 70px;
157
- .n20-title {
158
- margin-left: -40px;
159
- margin-right: -70px;
160
- }
161
- .el-form-item.col-span-24 {
162
- @media only screen and (min-width: ($--l + 1px)) {
163
- .el-textarea {
164
- max-width: calc(25% + 2.5em + #{$--input-max});
165
- width: calc(50% - 5em);
166
- }
167
- }
168
-
169
- @media only screen and (max-width: $--l) {
170
- .el-textarea {
171
- max-width: calc(33.33% + 3.33em + #{$--input-max});
172
- width: calc(66.66% - 3.33em);
173
- }
174
- }
175
-
176
- @media only screen and (max-width: $--m) {
177
- .el-textarea {
178
- max-width: calc(50% + 5em + #{$--input-max});
179
- width: 100%;
180
- }
181
- }
182
-
183
- @media only screen and (max-width: $--s) {
184
- .el-form-item {
185
- max-width: none;
186
- width: 100%;
187
- }
188
- }
189
- }
190
- }
191
- .el-form.label-width-6em,
192
- .label-width-10em {
193
- .el-form-item {
194
- width: 50%;
195
- display: inline-block;
196
- box-sizing: border-box;
197
- margin-right: 0;
198
- }
199
- @media only screen and (min-width: ($--s + 1px)) {
200
- .el-form-item__content {
201
- max-width: $--input-max;
202
- }
203
- }
204
- .el-form-item.col-span-24 {
205
- width: 100%;
206
- .el-form-item__content {
207
- max-width: none;
208
- }
209
- }
210
-
211
- @media only screen and (min-width: ($--l + 1px)) {
212
- .el-form-item {
213
- width: 25%;
214
- }
215
- }
216
-
217
- @media only screen and (max-width: $--l) {
218
- .el-form-item {
219
- width: 33.33%;
220
- }
221
- }
222
-
223
- @media only screen and (max-width: $--m) {
224
- .el-form-item {
225
- width: 50%;
226
- }
227
- }
228
-
229
- @media only screen and (max-width: $--s) {
230
- .el-form-item {
231
- width: 100%;
232
- }
233
- }
234
- }
235
-
236
- .el-input,
237
- .n20-input-search {
238
- .is-search {
239
- pointer-events: all;
240
- cursor: pointer;
241
- &:hover,
242
- &:active {
243
- font-weight: bolder;
244
- color: $--color-primary;
245
- }
246
- }
247
- }
248
-
249
- .el-select {
250
- .el-tag.el-tag--info {
251
- background: #eeeeee;
252
- border: none;
253
- border-radius: 2px;
254
- &:hover {
255
- .el-tag__close {
256
- opacity: 1;
257
- }
258
- }
259
- }
260
- .el-tag__close.el-icon-close {
261
- right: -4px;
262
- opacity: 0;
263
- }
264
- }
265
-
266
- // .el-select-dropdown__item {
267
- // &.selected {
268
- // font-weight: initial;
269
- // }
270
- // }
271
-
272
- .el-radio__inner,
273
- .el-checkbox__inner {
274
- width: 16px;
275
- height: 16px;
276
- }
277
-
278
- .el-radio__label,
279
- .el-checkbox__label {
280
- padding-left: 6px;
281
- }
282
-
283
- .el-radio__inner {
284
- &::after {
285
- width: 8px;
286
- height: 8px;
287
- background-color: $--color-primary;
288
- }
289
- }
290
-
291
- .el-checkbox__inner {
292
- &::after {
293
- width: 4px;
294
- height: 8px;
295
- }
296
- }
297
-
298
- .el-switch {
299
- &[inline] {
300
- position: relative;
301
- .el-switch__label {
302
- position: absolute;
303
- z-index: 1;
304
- color: #ffffff;
305
- margin-left: 0;
306
- margin-right: 0;
307
- display: none;
308
- &.is-active {
309
- display: initial;
310
- }
311
- }
312
- .el-switch__label--left {
313
- right: 8px;
314
- }
315
- .el-switch__label--right {
316
- left: 8px;
317
- }
318
- }
319
- }
320
- .el-switch {
321
- &.is-disabled {
322
- opacity: 0.3;
323
- }
324
- }
325
-
326
- .n20-date-editor.el-input--prefix {
327
- width: $--input-width;
328
- .el-input__inner {
329
- padding-left: 10px;
330
- }
331
- .el-input__prefix {
332
- right: 5px;
333
- left: unset;
334
- font-size: 16px;
335
- }
336
- &.has-value {
337
- &:hover {
338
- .el-input__prefix {
339
- display: none;
340
- }
341
- }
342
- }
343
- }
344
-
345
- .el-range-editor {
346
- position: relative;
347
- .el-range__icon {
348
- position: absolute;
349
- height: 100%;
350
- right: 5px;
351
- top: 0;
352
- text-align: center;
353
- color: #cccccc;
354
- font-size: 16px;
355
- transition: all 0.3s;
356
- }
357
- &.has-value {
358
- &:hover {
359
- .el-range__icon {
360
- display: none;
361
- }
362
- }
363
- }
364
- .el-range__close-icon {
365
- position: absolute;
366
- height: 100%;
367
- right: 5px;
368
- top: 0;
369
- text-align: center;
370
- color: #cccccc;
371
- transition: all 0.3s;
372
- }
373
- }
374
-
375
- .el-range-editor.el-input__inner {
376
- width: $--input-width;
377
- padding-right: 30px;
378
- }
379
- .el-range-editor .el-range-input {
380
- flex: 1 1 auto;
381
- text-align: left;
382
- }
383
- .el-range-editor:not(.has-value) .el-range-separator {
384
- color: #cccccc;
385
- }
386
-
387
- .el-date-table td {
388
- & span {
389
- border-radius: 2px;
390
- }
391
- &.today span {
392
- border: 1px solid $--color-primary;
393
- }
394
- &.available:hover span {
395
- background: $--color-primary-light-9;
396
- }
397
- &.current:not(.disabled) span {
398
- background-color: $--color-primary;
399
- }
400
- &.start-date div {
401
- border-top-left-radius: 2px;
402
- border-bottom-left-radius: 2px;
403
- }
404
- &.end-date div {
405
- border-top-right-radius: 2px;
406
- border-bottom-right-radius: 2px;
407
- }
408
- &.start-date,
409
- &.end-date {
410
- &:hover span {
411
- background-color: $--color-primary;
412
- }
413
- }
414
- }
415
- /* 金额,利率输入框 */
416
- .n20-num-w {
417
- display: inline-block;
418
- width: $--input-width;
419
- position: relative;
420
- .n20-num,
421
- .n20-stc {
422
- width: 100%;
423
- .el-input__inner {
424
- text-align: right;
425
- }
426
- }
427
- .n20-num--rate {
428
- .el-input__inner {
429
- padding-right: 30px;
430
- }
431
- }
432
- .el-input__suffix {
433
- font-size: 14px;
434
- }
435
- }
436
- /* 多选搜索框 */
437
- .n20-input-search {
438
- display: inline-block;
439
- width: $--input-width;
440
- position: relative;
441
- .el-select {
442
- width: 100%;
443
- .el-select__input {
444
- margin-left: 10px;
445
- }
446
- }
447
- .el-select .el-input__suffix {
448
- display: none;
449
- }
450
- }
451
-
452
- .el-input__inner:not([disabled]):hover {
453
- border-color: $--color-primary !important;
454
- }
1
+ $--s: 1024px;
2
+ $--m: 1366px + 160px;
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
+ margin-left: -96px;
122
+ margin-right: -14px;
123
+ }
124
+ .el-form-item.col-span-24 {
125
+ @media only screen and (min-width: ($--l + 1px)) {
126
+ .el-textarea {
127
+ max-width: calc(25% + 1.5em + #{$--input-max});
128
+ width: calc(50% - 3em);
129
+ }
130
+ }
131
+
132
+ @media only screen and (max-width: $--l) {
133
+ .el-textarea {
134
+ max-width: calc(33.33% + 2em + #{$--input-max});
135
+ width: calc(66.66% - 2em);
136
+ }
137
+ }
138
+
139
+ @media only screen and (max-width: $--m) {
140
+ .el-textarea {
141
+ max-width: calc(50% + 3em + #{$--input-max});
142
+ width: 100%;
143
+ }
144
+ }
145
+
146
+ @media only screen and (max-width: $--s) {
147
+ .el-form-item {
148
+ max-width: none;
149
+ width: 100%;
150
+ }
151
+ }
152
+ }
153
+ }
154
+ .el-form.label-width-8em {
155
+ margin-left: 66px;
156
+ margin-right: 38px;
157
+ .n20-title {
158
+ margin-left: -66px;
159
+ margin-right: -38px;
160
+ }
161
+ .el-form-item.col-span-24 {
162
+ @media only screen and (min-width: ($--l + 1px)) {
163
+ .el-textarea {
164
+ max-width: calc(25% + 1.5em + #{$--input-max});
165
+ width: calc(50% - 3em);
166
+ }
167
+ }
168
+
169
+ @media only screen and (max-width: $--l) {
170
+ .el-textarea {
171
+ max-width: calc(33.33% + 2em + #{$--input-max});
172
+ width: calc(66.66% - 2em);
173
+ }
174
+ }
175
+
176
+ @media only screen and (max-width: $--m) {
177
+ .el-textarea {
178
+ max-width: calc(50% + 3em + #{$--input-max});
179
+ width: 100%;
180
+ }
181
+ }
182
+
183
+ @media only screen and (max-width: $--s) {
184
+ .el-form-item {
185
+ max-width: none;
186
+ width: 100%;
187
+ }
188
+ }
189
+ }
190
+ }
191
+ .el-form.label-width-10em {
192
+ margin-left: 40px;
193
+ margin-right: 70px;
194
+ .n20-title {
195
+ margin-left: -40px;
196
+ margin-right: -70px;
197
+ }
198
+ .el-form-item.col-span-24 {
199
+ @media only screen and (min-width: ($--l + 1px)) {
200
+ .el-textarea {
201
+ max-width: calc(25% + 2.5em + #{$--input-max});
202
+ width: calc(50% - 5em);
203
+ }
204
+ }
205
+
206
+ @media only screen and (max-width: $--l) {
207
+ .el-textarea {
208
+ max-width: calc(33.33% + 3.33em + #{$--input-max});
209
+ width: calc(66.66% - 3.33em);
210
+ }
211
+ }
212
+
213
+ @media only screen and (max-width: $--m) {
214
+ .el-textarea {
215
+ max-width: calc(50% + 5em + #{$--input-max});
216
+ width: 100%;
217
+ }
218
+ }
219
+
220
+ @media only screen and (max-width: $--s) {
221
+ .el-form-item {
222
+ max-width: none;
223
+ width: 100%;
224
+ }
225
+ }
226
+ }
227
+ }
228
+ .el-form.label-width-12em {
229
+ margin-left: 10px;
230
+ margin-right: 96px;
231
+ .n20-title {
232
+ margin-left: -10px;
233
+ margin-right: -96px;
234
+ }
235
+ .el-form-item.col-span-24 {
236
+ @media only screen and (min-width: ($--l + 1px)) {
237
+ .el-textarea {
238
+ max-width: calc(25% + 3em + #{$--input-max});
239
+ width: calc(50% - 6em);
240
+ }
241
+ }
242
+
243
+ @media only screen and (max-width: $--l) {
244
+ .el-textarea {
245
+ max-width: calc(33.33% + 4em + #{$--input-max});
246
+ width: calc(66.66% - 4em);
247
+ }
248
+ }
249
+
250
+ @media only screen and (max-width: $--m) {
251
+ .el-textarea {
252
+ max-width: calc(50% + 6em + #{$--input-max});
253
+ width: 100%;
254
+ }
255
+ }
256
+
257
+ @media only screen and (max-width: $--s) {
258
+ .el-form-item {
259
+ max-width: none;
260
+ width: 100%;
261
+ }
262
+ }
263
+ }
264
+ }
265
+ .el-form.label-width-14em {
266
+ margin-left: 0px;
267
+ margin-right: 96px;
268
+ .n20-title {
269
+ margin-left: 0px;
270
+ margin-right: -96px;
271
+ }
272
+ .el-form-item.col-span-24 {
273
+ @media only screen and (min-width: ($--l + 1px)) {
274
+ .el-textarea {
275
+ max-width: calc(25% + 4.66em + #{$--input-max});
276
+ width: calc(50% - 7em);
277
+ }
278
+ }
279
+
280
+ @media only screen and (max-width: $--l) {
281
+ .el-textarea {
282
+ max-width: calc(33.33% + 4.66em + #{$--input-max});
283
+ width: calc(66.66% - 4.66em);
284
+ }
285
+ }
286
+
287
+ @media only screen and (max-width: $--m) {
288
+ .el-textarea {
289
+ max-width: calc(50% + 7em + #{$--input-max});
290
+ width: 100%;
291
+ }
292
+ }
293
+
294
+ @media only screen and (max-width: $--s) {
295
+ .el-form-item {
296
+ max-width: none;
297
+ width: 100%;
298
+ }
299
+ }
300
+ }
301
+ }
302
+ .el-form.label-width-16em {
303
+ margin-left: 0px;
304
+ margin-right: 98px;
305
+ .n20-title {
306
+ margin-left: 0px;
307
+ margin-right: -96px;
308
+ }
309
+ .el-form-item.col-span-24 {
310
+ @media only screen and (min-width: ($--l + 1px)) {
311
+ .el-textarea {
312
+ max-width: calc(25% + 4em + #{$--input-max});
313
+ width: calc(50% - 8em);
314
+ }
315
+ }
316
+
317
+ @media only screen and (max-width: $--l) {
318
+ .el-textarea {
319
+ max-width: calc(33.33% + 5.33em + #{$--input-max});
320
+ width: calc(66.66% - 5.33em);
321
+ }
322
+ }
323
+
324
+ @media only screen and (max-width: $--m) {
325
+ .el-textarea {
326
+ max-width: calc(50% + 8em + #{$--input-max});
327
+ width: 100%;
328
+ }
329
+ }
330
+
331
+ @media only screen and (max-width: $--s) {
332
+ .el-form-item {
333
+ max-width: none;
334
+ width: 100%;
335
+ }
336
+ }
337
+ }
338
+ }
339
+ .el-form.label-width-6em,
340
+ .el-form.label-width-8em,
341
+ .el-form.label-width-10em,
342
+ .el-form.label-width-12em,
343
+ .el-form.label-width-14em,
344
+ .el-form.label-width-16em {
345
+ .el-form-item {
346
+ width: 50%;
347
+ display: inline-block;
348
+ box-sizing: border-box;
349
+ margin-right: 0;
350
+ }
351
+ @media only screen and (min-width: ($--s + 1px)) {
352
+ .el-form-item__content {
353
+ max-width: $--input-max;
354
+ }
355
+ }
356
+ .el-form-item.col-span-24 {
357
+ width: 100%;
358
+ .el-form-item__content {
359
+ max-width: none;
360
+ }
361
+ }
362
+
363
+ @media only screen and (min-width: ($--l + 1px)) {
364
+ .el-form-item {
365
+ width: 25%;
366
+ }
367
+ }
368
+
369
+ @media only screen and (max-width: $--l) {
370
+ .el-form-item {
371
+ width: 33.33%;
372
+ }
373
+ }
374
+
375
+ @media only screen and (max-width: $--m) {
376
+ .el-form-item {
377
+ width: 50%;
378
+ }
379
+ }
380
+
381
+ @media only screen and (max-width: $--s) {
382
+ .el-form-item {
383
+ width: 100%;
384
+ }
385
+ }
386
+ }
387
+
388
+ .el-input,
389
+ .n20-input-search {
390
+ .is-search {
391
+ pointer-events: all;
392
+ cursor: pointer;
393
+ &:hover,
394
+ &:active {
395
+ font-weight: bolder;
396
+ color: $--color-primary;
397
+ }
398
+ }
399
+ }
400
+
401
+ .el-select {
402
+ .el-tag.el-tag--info {
403
+ background: #eeeeee;
404
+ border: none;
405
+ border-radius: 2px;
406
+ &:hover {
407
+ .el-tag__close {
408
+ opacity: 1;
409
+ }
410
+ }
411
+ }
412
+ .el-tag__close.el-icon-close {
413
+ right: -4px;
414
+ opacity: 0;
415
+ }
416
+ }
417
+
418
+ // .el-select-dropdown__item {
419
+ // &.selected {
420
+ // font-weight: initial;
421
+ // }
422
+ // }
423
+
424
+ .el-radio__inner,
425
+ .el-checkbox__inner {
426
+ width: 16px;
427
+ height: 16px;
428
+ }
429
+
430
+ .el-radio__label,
431
+ .el-checkbox__label {
432
+ padding-left: 6px;
433
+ }
434
+
435
+ .el-radio__inner {
436
+ &::after {
437
+ width: 8px;
438
+ height: 8px;
439
+ background-color: $--color-primary;
440
+ }
441
+ }
442
+
443
+ .el-checkbox__inner {
444
+ &::after {
445
+ width: 4px;
446
+ height: 8px;
447
+ }
448
+ }
449
+
450
+ .el-switch {
451
+ &[inline] {
452
+ position: relative;
453
+ .el-switch__label {
454
+ position: absolute;
455
+ z-index: 1;
456
+ color: #ffffff;
457
+ margin-left: 0;
458
+ margin-right: 0;
459
+ display: none;
460
+ &.is-active {
461
+ display: initial;
462
+ }
463
+ }
464
+ .el-switch__label--left {
465
+ right: 8px;
466
+ }
467
+ .el-switch__label--right {
468
+ left: 8px;
469
+ }
470
+ }
471
+ }
472
+ .el-switch {
473
+ &.is-disabled {
474
+ opacity: 0.3;
475
+ }
476
+ }
477
+
478
+ .n20-date-editor.el-input--prefix {
479
+ width: $--input-width;
480
+ .el-input__inner {
481
+ padding-left: 10px;
482
+ }
483
+ .el-input__prefix {
484
+ right: 5px;
485
+ left: unset;
486
+ font-size: 16px;
487
+ }
488
+ &.has-value {
489
+ &:hover {
490
+ .el-input__prefix {
491
+ display: none;
492
+ }
493
+ }
494
+ }
495
+ }
496
+
497
+ .el-range-editor {
498
+ position: relative;
499
+ .el-range__icon {
500
+ position: absolute;
501
+ height: 100%;
502
+ right: 5px;
503
+ top: 0;
504
+ text-align: center;
505
+ color: #cccccc;
506
+ font-size: 16px;
507
+ transition: all 0.3s;
508
+ }
509
+ &.has-value {
510
+ &:hover {
511
+ .el-range__icon {
512
+ display: none;
513
+ }
514
+ }
515
+ }
516
+ .el-range__close-icon {
517
+ position: absolute;
518
+ height: 100%;
519
+ right: 5px;
520
+ top: 0;
521
+ text-align: center;
522
+ color: #cccccc;
523
+ transition: all 0.3s;
524
+ }
525
+ }
526
+
527
+ .el-range-editor.el-input__inner {
528
+ width: $--input-width;
529
+ padding-right: 30px;
530
+ }
531
+ .el-range-editor .el-range-input {
532
+ flex: 1 1 auto;
533
+ text-align: left;
534
+ }
535
+ .el-range-editor:not(.has-value) .el-range-separator {
536
+ color: #cccccc;
537
+ }
538
+
539
+ .el-date-table td {
540
+ & span {
541
+ border-radius: 2px;
542
+ }
543
+ &.today span {
544
+ border: 1px solid $--color-primary;
545
+ }
546
+ &.available:hover span {
547
+ background: $--color-primary-light-9;
548
+ }
549
+ &.current:not(.disabled) span {
550
+ background-color: $--color-primary;
551
+ }
552
+ &.start-date div {
553
+ border-top-left-radius: 2px;
554
+ border-bottom-left-radius: 2px;
555
+ }
556
+ &.end-date div {
557
+ border-top-right-radius: 2px;
558
+ border-bottom-right-radius: 2px;
559
+ }
560
+ &.start-date,
561
+ &.end-date {
562
+ &:hover span {
563
+ background-color: $--color-primary;
564
+ }
565
+ }
566
+ }
567
+ /* 金额,利率输入框 */
568
+ .n20-num-w {
569
+ display: inline-block;
570
+ width: $--input-width;
571
+ position: relative;
572
+ .n20-num,
573
+ .n20-stc {
574
+ width: 100%;
575
+ .el-input__inner {
576
+ text-align: right;
577
+ }
578
+ }
579
+ .n20-num--rate {
580
+ .el-input__inner {
581
+ padding-right: 30px;
582
+ }
583
+ }
584
+ .el-input__suffix {
585
+ font-size: 14px;
586
+ }
587
+ }
588
+ /* 多选搜索框 */
589
+ .n20-input-search {
590
+ display: inline-block;
591
+ width: $--input-width;
592
+ position: relative;
593
+ .el-select {
594
+ width: 100%;
595
+ .el-select__input {
596
+ margin-left: 10px;
597
+ }
598
+ }
599
+ .el-select .el-input__suffix {
600
+ display: none;
601
+ }
602
+ }
603
+
604
+ .el-input__inner:not([disabled]):hover {
605
+ border-color: $--color-primary !important;
606
+ }