n20-common-lib 1.2.8 → 1.2.9

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 +454 -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/.DS_Store +0 -0
  52. package/src/components/Anchor/AnchorItem.vue +29 -29
  53. package/src/components/Anchor/index.vue +185 -185
  54. package/src/components/ApprovalButtons/index.vue +232 -232
  55. package/src/components/ApprovalCard/index.vue +128 -128
  56. package/src/components/ApprovalRecord/approvalImg.vue +39 -39
  57. package/src/components/ApprovalRecord/index.vue +59 -59
  58. package/src/components/Button/button-group.vue +150 -150
  59. package/src/components/Button/icon-group-button.vue +61 -61
  60. package/src/components/Button/index.vue +56 -56
  61. package/src/components/CascaderArea/index.vue +81 -81
  62. package/src/components/ContentLoading/index.vue +41 -41
  63. package/src/components/ContentNull/index.vue +19 -19
  64. package/src/components/DatePicker/index.vue +27 -27
  65. package/src/components/DatePicker/por.vue +169 -169
  66. package/src/components/Dialog/index.vue +26 -26
  67. package/src/components/Dialog/indexO.vue +116 -116
  68. package/src/components/DragList/index.vue +68 -68
  69. package/src/components/Empty/img/abnormal.svg +108 -108
  70. package/src/components/Empty/img/dispose.svg +71 -71
  71. package/src/components/Empty/img/empty.svg +57 -57
  72. package/src/components/Empty/img/general.svg +58 -58
  73. package/src/components/Empty/img/lock.svg +57 -57
  74. package/src/components/Empty/img/network.svg +59 -59
  75. package/src/components/Empty/img/relevant.svg +68 -68
  76. package/src/components/Empty/img/search.svg +72 -72
  77. package/src/components/Empty/index.vue +92 -92
  78. package/src/components/Expandable/index.vue +49 -49
  79. package/src/components/Expandable/main.vue +52 -52
  80. package/src/components/FileExportAsync/index.vue +174 -174
  81. package/src/components/FileUploadTable/index.vue +484 -484
  82. package/src/components/Filters/index.vue +369 -369
  83. package/src/components/Filters/indexO.vue +104 -104
  84. package/src/components/FlowStep/index.vue +68 -68
  85. package/src/components/FooterBox/index.vue +21 -21
  86. package/src/components/GeneralCard/index.vue +15 -15
  87. package/src/components/InputNumber/index.vue +153 -153
  88. package/src/components/InputNumber/numberRange.vue +47 -47
  89. package/src/components/InputSearch/index.vue +75 -75
  90. package/src/components/Layout/.DS_Store +0 -0
  91. package/src/components/Layout/AsideNav/index.vue +119 -119
  92. package/src/components/Layout/AsideNav/menuItem.vue +34 -34
  93. package/src/components/Layout/AsideNav/submenuTitle.vue +26 -26
  94. package/src/components/Layout/HeaderWrap/changePwd.vue +215 -215
  95. package/src/components/Layout/HeaderWrap/index.vue +348 -348
  96. package/src/components/Layout/HeaderWrap/noticePop.vue +300 -300
  97. package/src/components/Layout/SubContent/index.vue +131 -131
  98. package/src/components/Layout/TabsNav/index.vue +170 -170
  99. package/src/components/Layout/index.vue +529 -529
  100. package/src/components/Layout/utils.js +12 -12
  101. package/src/components/LoginTemporary/form.vue +537 -537
  102. package/src/components/LoginTemporary/index.vue +122 -122
  103. package/src/components/LoginTemporary/qrcode.vue +90 -90
  104. package/src/components/LoginTemporary/retrievePw.vue +28 -28
  105. package/src/components/LoginTemporary/utils.js +73 -73
  106. package/src/components/MicroApp/index.js +67 -67
  107. package/src/components/MicroFrame/index.vue +95 -95
  108. package/src/components/MoreTab/index.vue +232 -232
  109. package/src/components/NavMenu/index.vue +60 -60
  110. package/src/components/NstcG6Components/NstcDialog/NstcDialog.vue +184 -184
  111. package/src/components/PageLayout/page.vue +15 -15
  112. package/src/components/Pagination/index.vue +96 -96
  113. package/src/components/SecondaryTab/index.vue +58 -58
  114. package/src/components/SelectLazy/index.vue +75 -75
  115. package/src/components/SelectTree/SelectTreeLazy.vue +241 -241
  116. package/src/components/SelectTree/index.vue +205 -205
  117. package/src/components/ShowColumn/index.vue +204 -204
  118. package/src/components/Sifting/index.vue +99 -99
  119. package/src/components/Statis/index.vue +97 -97
  120. package/src/components/Statis/statisItem.vue +54 -54
  121. package/src/components/Statis/statisPopover.vue +55 -55
  122. package/src/components/Step/index.vue +38 -38
  123. package/src/components/Suspend/index.vue +72 -72
  124. package/src/components/Table/index.vue +179 -179
  125. package/src/components/Table/indexO.vue +149 -149
  126. package/src/components/Task/index.vue +26 -26
  127. package/src/components/TertiaryTab/index.vue +53 -53
  128. package/src/components/TimePicker/index.vue +28 -28
  129. package/src/components/Upload/index.vue +242 -242
  130. package/src/components/WornPagination/index.vue +73 -73
  131. package/src/directives/VClickOutside/index.js +19 -19
  132. package/src/directives/VHas/index.js +32 -32
  133. package/src/directives/VMove/index.js +42 -42
  134. package/src/directives/VTitle/index.js +64 -64
  135. package/src/directives/VTitle/tooltip.vue +21 -21
  136. package/src/index.js +225 -225
  137. package/src/plugins/CompatibleOld/index.js +57 -57
  138. package/src/plugins/Print/index.js +4 -4
  139. package/src/plugins/Print/print-js/.babelrc +12 -12
  140. package/src/plugins/Print/print-js/LICENSE +21 -21
  141. package/src/plugins/Print/print-js/README.md +98 -98
  142. package/src/plugins/Print/print-js/dist/print.css +96 -96
  143. package/src/plugins/Print/print-js/dist/print.js +990 -990
  144. package/src/plugins/Print/print-js/package.json +60 -60
  145. package/src/plugins/Print/print-js/src/index.d.ts +45 -45
  146. package/src/plugins/Print/print-js/src/index.js +10 -10
  147. package/src/plugins/Print/print-js/src/js/browser.js +33 -33
  148. package/src/plugins/Print/print-js/src/js/functions.js +103 -103
  149. package/src/plugins/Print/print-js/src/js/html.js +70 -70
  150. package/src/plugins/Print/print-js/src/js/image.js +48 -48
  151. package/src/plugins/Print/print-js/src/js/init.js +168 -168
  152. package/src/plugins/Print/print-js/src/js/json.js +109 -109
  153. package/src/plugins/Print/print-js/src/js/modal.js +62 -62
  154. package/src/plugins/Print/print-js/src/js/pdf.js +62 -62
  155. package/src/plugins/Print/print-js/src/js/print.js +102 -102
  156. package/src/plugins/Print/print-js/src/js/raw-html.js +15 -15
  157. package/src/plugins/Print/print-js/src/sass/index.scss +13 -13
  158. package/src/plugins/Print/print-js/src/sass/modules/_colors.scss +9 -9
  159. package/src/plugins/Print/print-js/src/sass/partials/_modal.scss +40 -40
  160. package/src/plugins/Print/print-js/src/sass/partials/_spinner.scss +45 -45
  161. package/src/plugins/Print/print.js +2 -2
  162. package/src/plugins/Print/print.scss +1 -1
  163. package/src/plugins/SetMenuTree/index.vue +41 -41
  164. package/src/plugins/SetMenuTree/logoIcon.vue +37 -37
  165. package/src/plugins/SetMenuTree/setmenutree.vue +427 -427
  166. package/src/plugins/SetMenuTree/utils.js +74 -74
  167. package/src/plugins/Sign/InfosecNetSignCNGAgent.min.js +2000 -2000
  168. package/src/plugins/Sign/index.js +65 -65
  169. package/src/plugins/Sign/sign.js +1 -1
  170. package/src/plugins/setTabsForSub.js +2 -2
  171. package/src/utils/auth.js +53 -53
  172. package/src/utils/axios.js +203 -203
  173. package/src/utils/downloadBlob.js +19 -19
  174. package/src/utils/forEachs.js +16 -16
  175. package/src/utils/getScrollContainer.js +43 -43
  176. package/src/utils/i18n/cn2hk.json +1270 -1270
  177. package/src/utils/i18n/index.js +54 -54
  178. package/src/utils/list2tree.js +36 -36
  179. package/src/utils/msgboxPor.js +26 -26
  180. package/src/utils/print.js +161 -161
  181. package/src/utils/relaNo.js +69 -69
  182. package/src/utils/repairElementUI.js +66 -66
  183. package/src/utils/urlToGo.js +82 -82
  184. package/style/css/normalize.scss +723 -726
  185. package/style/pageDemo/demo-1.vue +130 -131
  186. package/style/pageDemo/demo-2.vue +35 -35
  187. package/style/pageDemo/demo-3.vue +22 -22
  188. package/style/pageDemo/seeCode.js +20 -20
  189. package/style/server-config.jsonc +663 -596
@@ -1,454 +1,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-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-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
+ }