n20-common-lib 1.1.98

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 (196) hide show
  1. package/README.md +27 -0
  2. package/package.json +87 -0
  3. package/src/_qiankun/index.js +113 -0
  4. package/src/_qiankun/postMessage.js +48 -0
  5. package/src/assets/css/_coreLib.scss +35 -0
  6. package/src/assets/css/cl-anchor.scss +24 -0
  7. package/src/assets/css/cl-approve-card.scss +58 -0
  8. package/src/assets/css/cl-dialog.scss +99 -0
  9. package/src/assets/css/cl-drag-list.scss +22 -0
  10. package/src/assets/css/cl-empty.scss +10 -0
  11. package/src/assets/css/cl-expandable-pane.scss +25 -0
  12. package/src/assets/css/cl-expandable.scss +23 -0
  13. package/src/assets/css/cl-file-upload-table.scss +11 -0
  14. package/src/assets/css/cl-filter.scss +4 -0
  15. package/src/assets/css/cl-flow-step.scss +186 -0
  16. package/src/assets/css/cl-footer-box.scss +10 -0
  17. package/src/assets/css/cl-form-item.scss +322 -0
  18. package/src/assets/css/cl-general-card.scss +12 -0
  19. package/src/assets/css/cl-layout-aside.scss +88 -0
  20. package/src/assets/css/cl-layout-content.scss +16 -0
  21. package/src/assets/css/cl-layout-header.scss +73 -0
  22. package/src/assets/css/cl-layout-tabs.scss +87 -0
  23. package/src/assets/css/cl-layout.scss +97 -0
  24. package/src/assets/css/cl-login-temporary.scss +37 -0
  25. package/src/assets/css/cl-message.scss +75 -0
  26. package/src/assets/css/cl-more-tab.scss +98 -0
  27. package/src/assets/css/cl-nav-menu.scss +5 -0
  28. package/src/assets/css/cl-pagination.scss +65 -0
  29. package/src/assets/css/cl-secondary-tab.scss +39 -0
  30. package/src/assets/css/cl-showcolumn.scss +23 -0
  31. package/src/assets/css/cl-sifting.scss +51 -0
  32. package/src/assets/css/cl-statis.scss +42 -0
  33. package/src/assets/css/cl-step.scss +73 -0
  34. package/src/assets/css/cl-suspend.scss +19 -0
  35. package/src/assets/css/cl-tertiary-tab.scss +9 -0
  36. package/src/assets/css/cl-upload.scss +41 -0
  37. package/src/assets/css/cl-worn-pagination.scss +50 -0
  38. package/src/assets/css/el-button.scss +169 -0
  39. package/src/assets/css/el-table.scss +79 -0
  40. package/src/assets/css/element-variables.scss +1061 -0
  41. package/src/assets/css/element.dev.scss +21 -0
  42. package/src/assets/css/font-icon.scss +26 -0
  43. package/src/assets/css/index.dev.scss +4 -0
  44. package/src/assets/css/index.scss +11 -0
  45. package/src/assets/css/normalize.scss +723 -0
  46. package/src/assets/css/rootvar.scss +139 -0
  47. package/src/assets/css/select.scss +26 -0
  48. package/src/assets/css/title-pop.scss +4 -0
  49. package/src/assets/getJsonc.js +50 -0
  50. package/src/assets/realUrl.js +12 -0
  51. package/src/components/Anchor/AnchorItem.vue +30 -0
  52. package/src/components/Anchor/index.vue +185 -0
  53. package/src/components/ApprovalButtons/index.vue +232 -0
  54. package/src/components/ApprovalCard/index.vue +128 -0
  55. package/src/components/ApprovalRecord/approvalImg.vue +39 -0
  56. package/src/components/ApprovalRecord/index.vue +59 -0
  57. package/src/components/Button/button-group.vue +150 -0
  58. package/src/components/Button/icon-group-button.vue +61 -0
  59. package/src/components/Button/index.vue +56 -0
  60. package/src/components/ContentLoading/index.vue +41 -0
  61. package/src/components/ContentNull/index.vue +19 -0
  62. package/src/components/DatePicker/index.vue +27 -0
  63. package/src/components/DatePicker/por.vue +169 -0
  64. package/src/components/Dialog/index.vue +26 -0
  65. package/src/components/Dialog/indexO.vue +116 -0
  66. package/src/components/DragList/index.vue +68 -0
  67. package/src/components/Empty/img/404.png +0 -0
  68. package/src/components/Empty/img/abnormal.svg +109 -0
  69. package/src/components/Empty/img/dispose.svg +72 -0
  70. package/src/components/Empty/img/empty.svg +58 -0
  71. package/src/components/Empty/img/general.svg +59 -0
  72. package/src/components/Empty/img/lock.svg +58 -0
  73. package/src/components/Empty/img/network.svg +60 -0
  74. package/src/components/Empty/img/relevant.svg +69 -0
  75. package/src/components/Empty/img/search.svg +73 -0
  76. package/src/components/Empty/index.vue +92 -0
  77. package/src/components/Expandable/index.vue +49 -0
  78. package/src/components/Expandable/main.vue +52 -0
  79. package/src/components/FileUploadTable/index.vue +484 -0
  80. package/src/components/Filters/index.vue +358 -0
  81. package/src/components/Filters/indexO.vue +104 -0
  82. package/src/components/FlowStep/index.vue +69 -0
  83. package/src/components/FooterBox/index.vue +21 -0
  84. package/src/components/GeneralCard/index.vue +15 -0
  85. package/src/components/InputNumber/index.vue +153 -0
  86. package/src/components/InputNumber/numberRange.vue +47 -0
  87. package/src/components/InputSearch/index.vue +75 -0
  88. package/src/components/Layout/AsideNav/index.vue +144 -0
  89. package/src/components/Layout/HeaderWrap/changePwd.vue +215 -0
  90. package/src/components/Layout/HeaderWrap/index.vue +336 -0
  91. package/src/components/Layout/HeaderWrap/noticePop.vue +300 -0
  92. package/src/components/Layout/SubContent/index.vue +131 -0
  93. package/src/components/Layout/TabsNav/index.vue +170 -0
  94. package/src/components/Layout/index.vue +529 -0
  95. package/src/components/Layout/utils.js +12 -0
  96. package/src/components/LoginTemporary/form.vue +511 -0
  97. package/src/components/LoginTemporary/index.vue +122 -0
  98. package/src/components/LoginTemporary/qr.png +0 -0
  99. package/src/components/LoginTemporary/qrcode.vue +90 -0
  100. package/src/components/LoginTemporary/qrt.png +0 -0
  101. package/src/components/LoginTemporary/retrievePw.vue +28 -0
  102. package/src/components/LoginTemporary/utils.js +73 -0
  103. package/src/components/MicroApp/index.js +67 -0
  104. package/src/components/MicroFrame/index.vue +95 -0
  105. package/src/components/MoreTab/index.vue +232 -0
  106. package/src/components/NavMenu/index.vue +60 -0
  107. package/src/components/NstcG6Components/NstcApprovel/NstcApprovel.vue +13 -0
  108. package/src/components/NstcG6Components/NstcDialog/NstcDialog.vue +185 -0
  109. package/src/components/NstcG6Components/Progress/progress.vue +134 -0
  110. package/src/components/PageLayout/page.vue +15 -0
  111. package/src/components/Pagination/index.vue +96 -0
  112. package/src/components/SecondaryTab/index.vue +58 -0
  113. package/src/components/SelectLazy/index.vue +75 -0
  114. package/src/components/SelectTree/SelectTreeLazy.vue +241 -0
  115. package/src/components/SelectTree/index.vue +208 -0
  116. package/src/components/ShowColumn/index.vue +188 -0
  117. package/src/components/Sifting/index.vue +99 -0
  118. package/src/components/Statis/index.vue +97 -0
  119. package/src/components/Statis/statisItem.vue +54 -0
  120. package/src/components/Statis/statisPopover.vue +55 -0
  121. package/src/components/Step/index.vue +38 -0
  122. package/src/components/Suspend/index.vue +72 -0
  123. package/src/components/Table/index.vue +131 -0
  124. package/src/components/Table/indexO.vue +149 -0
  125. package/src/components/Task/index.vue +26 -0
  126. package/src/components/TertiaryTab/index.vue +53 -0
  127. package/src/components/TimePicker/index.vue +28 -0
  128. package/src/components/Upload/index.vue +242 -0
  129. package/src/components/WornPagination/index.vue +73 -0
  130. package/src/directives/VClickOutside/index.js +19 -0
  131. package/src/directives/VDrag/index.js +72 -0
  132. package/src/directives/VHas/index.js +27 -0
  133. package/src/directives/VMove/index.js +42 -0
  134. package/src/directives/VTitle/index.js +56 -0
  135. package/src/directives/VTitle/tooltip.vue +21 -0
  136. package/src/index.js +225 -0
  137. package/src/plugins/CompatibleOld/index.js +57 -0
  138. package/src/plugins/Print/index.js +4 -0
  139. package/src/plugins/Print/print-js/.babelrc +12 -0
  140. package/src/plugins/Print/print-js/LICENSE +21 -0
  141. package/src/plugins/Print/print-js/README.md +98 -0
  142. package/src/plugins/Print/print-js/dist/print.css +97 -0
  143. package/src/plugins/Print/print-js/dist/print.js +991 -0
  144. package/src/plugins/Print/print-js/dist/print.map +1 -0
  145. package/src/plugins/Print/print-js/package.json +60 -0
  146. package/src/plugins/Print/print-js/src/index.d.ts +45 -0
  147. package/src/plugins/Print/print-js/src/index.js +10 -0
  148. package/src/plugins/Print/print-js/src/js/browser.js +33 -0
  149. package/src/plugins/Print/print-js/src/js/functions.js +103 -0
  150. package/src/plugins/Print/print-js/src/js/html.js +70 -0
  151. package/src/plugins/Print/print-js/src/js/image.js +48 -0
  152. package/src/plugins/Print/print-js/src/js/init.js +168 -0
  153. package/src/plugins/Print/print-js/src/js/json.js +109 -0
  154. package/src/plugins/Print/print-js/src/js/modal.js +62 -0
  155. package/src/plugins/Print/print-js/src/js/pdf.js +62 -0
  156. package/src/plugins/Print/print-js/src/js/print.js +102 -0
  157. package/src/plugins/Print/print-js/src/js/raw-html.js +15 -0
  158. package/src/plugins/Print/print-js/src/sass/index.scss +14 -0
  159. package/src/plugins/Print/print-js/src/sass/modules/_colors.scss +10 -0
  160. package/src/plugins/Print/print-js/src/sass/partials/_modal.scss +41 -0
  161. package/src/plugins/Print/print-js/src/sass/partials/_spinner.scss +46 -0
  162. package/src/plugins/Print/print.js +2 -0
  163. package/src/plugins/Print/print.scss +1 -0
  164. package/src/plugins/SetMenuTree/index.vue +41 -0
  165. package/src/plugins/SetMenuTree/logoIcon.vue +37 -0
  166. package/src/plugins/SetMenuTree/setmenutree.vue +427 -0
  167. package/src/plugins/SetMenuTree/utils.js +74 -0
  168. package/src/plugins/Sign/InfosecNetSignCNGAgent.min.js +2000 -0
  169. package/src/plugins/Sign/index.js +65 -0
  170. package/src/plugins/Sign/sign.js +1 -0
  171. package/src/plugins/setTabsForSub.js +2 -0
  172. package/src/utils/auth.js +53 -0
  173. package/src/utils/axios.js +203 -0
  174. package/src/utils/downloadBlob.js +19 -0
  175. package/src/utils/forEachs.js +16 -0
  176. package/src/utils/getScrollContainer.js +43 -0
  177. package/src/utils/i18n/cn2hk.json +1270 -0
  178. package/src/utils/i18n/index.js +54 -0
  179. package/src/utils/list2tree.js +36 -0
  180. package/src/utils/msgboxPor.js +26 -0
  181. package/src/utils/print.js +161 -0
  182. package/src/utils/relaNo.js +35 -0
  183. package/src/utils/repairElementUI.js +66 -0
  184. package/src/utils/urlToGo.js +82 -0
  185. package/style/css/normalize.scss +723 -0
  186. package/style/fonts/element-icons.535877f5.woff +0 -0
  187. package/style/fonts/element-icons.732389de.ttf +0 -0
  188. package/style/index.css +3 -0
  189. package/style/index.css.map +1 -0
  190. package/style/index.umd.min.js +2 -0
  191. package/style/index.umd.min.js.map +1 -0
  192. package/style/pageDemo/demo-1.vue +130 -0
  193. package/style/pageDemo/demo-2.vue +35 -0
  194. package/style/pageDemo/demo-3.vue +22 -0
  195. package/style/pageDemo/seeCode.js +20 -0
  196. package/style/server-config.jsonc +663 -0
@@ -0,0 +1,723 @@
1
+ $--font-size-base: 14px !default;
2
+ $--border-color-base: #dcdfe6 !default;
3
+ $--border-radius-base: 4px !default;
4
+ $--input-width: 224px !default;
5
+
6
+ /* 格式化样式
7
+ ---------------- */
8
+ html {
9
+ height: 100%;
10
+ }
11
+ body {
12
+ height: 100%;
13
+ font-size: $--font-size-base;
14
+ }
15
+ li {
16
+ list-style: none;
17
+ }
18
+ a {
19
+ color: inherit;
20
+ text-decoration: none;
21
+ }
22
+ iframe {
23
+ border: 0;
24
+ outline: none;
25
+ }
26
+
27
+ /* 滚动条样式
28
+ --------------- */
29
+ ::-webkit-scrollbar {
30
+ width: 6px;
31
+ height: 6px;
32
+ }
33
+
34
+ ::-webkit-scrollbar-button {
35
+ width: 0;
36
+ height: 0;
37
+ }
38
+
39
+ ::-webkit-scrollbar-corner {
40
+ background-color: transparent;
41
+ }
42
+
43
+ ::-webkit-scrollbar-thumb,
44
+ ::-webkit-scrollbar-track {
45
+ border-color: transparent;
46
+ border-style: solid;
47
+ border-radius: 3px;
48
+ }
49
+
50
+ ::-webkit-scrollbar-thumb {
51
+ min-height: 28px;
52
+ background-color: rgba(0, 0, 0, 0.07);
53
+ border-width: 0;
54
+ border-radius: 3px;
55
+ }
56
+
57
+ ::-webkit-scrollbar-thumb:hover {
58
+ background-color: rgba(0, 0, 0, 0.2);
59
+ }
60
+
61
+ ::-webkit-scrollbar-thumb:active {
62
+ background-color: rgba(0, 0, 0, 0.25);
63
+ }
64
+
65
+ ::-webkit-scrollbar-track:hover {
66
+ background-color: rgba(0, 0, 0, 0.03);
67
+ }
68
+
69
+ ::-webkit-scrollbar-track:active {
70
+ background-color: rgba(0, 0, 0, 0.03);
71
+ }
72
+
73
+ :root {
74
+ --client-height: calc(100vh - 116px);
75
+ }
76
+
77
+ /* 内外边距
78
+ --------------- */
79
+ @mixin set-pm($m, $p) {
80
+ .p-a#{$m} {
81
+ padding: $p;
82
+ }
83
+
84
+ .p-t#{$m} {
85
+ padding-top: $p;
86
+ }
87
+
88
+ .p-b#{$m} {
89
+ padding-bottom: $p;
90
+ }
91
+
92
+ .p-l#{$m} {
93
+ padding-left: $p;
94
+ }
95
+
96
+ .p-r#{$m} {
97
+ padding-right: $p;
98
+ }
99
+
100
+ .m-a#{$m} {
101
+ margin: $p;
102
+ }
103
+
104
+ .m-t#{$m} {
105
+ margin-top: $p;
106
+ }
107
+
108
+ .m-b#{$m} {
109
+ margin-bottom: $p;
110
+ }
111
+
112
+ .m-l#{$m} {
113
+ margin-left: $p;
114
+ }
115
+
116
+ .m-r#{$m} {
117
+ margin-right: $p;
118
+ }
119
+ }
120
+
121
+ /* 内外边距 */
122
+ .m-l-auto {
123
+ margin-left: auto !important;
124
+ }
125
+ .m-r-auto {
126
+ margin-right: auto !important;
127
+ }
128
+ .m-lr-auto {
129
+ margin-left: auto !important;
130
+ margin-right: auto !important;
131
+ }
132
+ @include set-pm('', 12px !important);
133
+ @include set-pm('-xl', 32px !important);
134
+ @include set-pm('-lg', 24px !important);
135
+ @include set-pm('-m', 16px !important);
136
+ @include set-pm('-s', 8px !important);
137
+ @include set-pm('-b', 6px !important);
138
+ @include set-pm('-ss', 4px !important);
139
+ @include set-pm('-0', 0 !important);
140
+
141
+ /* 内外边距
142
+ --------------- */
143
+ @mixin pm-fn($n) {
144
+ .pa-#{$n} {
145
+ padding: #{$n}px;
146
+ }
147
+ .pt-#{$n} {
148
+ padding-top: #{$n}px;
149
+ }
150
+ .pl-#{$n} {
151
+ padding-left: #{$n}px;
152
+ }
153
+ .pr-#{$n} {
154
+ padding-right: #{$n}px;
155
+ }
156
+ .pb-#{$n} {
157
+ padding-bottom: #{$n}px;
158
+ }
159
+ .px-#{$n} {
160
+ padding-left: #{$n}px;
161
+ padding-right: #{$n}px;
162
+ }
163
+ .py-#{$n} {
164
+ padding-top: #{$n}px;
165
+ padding-bottom: #{$n}px;
166
+ }
167
+ .ma-#{$n} {
168
+ margin: #{$n}px;
169
+ }
170
+ .mt-#{$n} {
171
+ margin-top: #{$n}px;
172
+ }
173
+ .ml-#{$n} {
174
+ margin-left: #{$n}px;
175
+ }
176
+ .mr-#{$n} {
177
+ margin-right: #{$n}px;
178
+ }
179
+ .mb-#{$n} {
180
+ margin-bottom: #{$n}px;
181
+ }
182
+ .mx-#{$n} {
183
+ margin-left: #{$n}px;
184
+ margin-right: #{$n}px;
185
+ }
186
+ .py-#{$n} {
187
+ margin-top: #{$n}px;
188
+ margin-bottom: #{$n}px;
189
+ }
190
+ }
191
+
192
+ @include pm-fn(0);
193
+ @include pm-fn(2);
194
+ @include pm-fn(4);
195
+ @include pm-fn(6);
196
+ @include pm-fn(8);
197
+ @include pm-fn(10);
198
+ @include pm-fn(12);
199
+ @include pm-fn(14);
200
+
201
+ /* 浮动布局
202
+ --------------- */
203
+ .left,
204
+ .float-left {
205
+ float: left;
206
+ }
207
+
208
+ .right,
209
+ .float-right {
210
+ float: right;
211
+ }
212
+
213
+ .overflow {
214
+ height: auto;
215
+ overflow: hidden;
216
+ }
217
+
218
+ .overflow-y {
219
+ overflow-y: auto;
220
+ }
221
+ .overflow-x {
222
+ overflow-x: auto;
223
+ }
224
+
225
+ // 清除浮动
226
+ .overflow-clear {
227
+ &:after {
228
+ content: '';
229
+ display: block;
230
+ clear: both;
231
+ }
232
+ }
233
+ /* 清除左侧浮动,将元素放置在任何先前的左浮动元素的下方 */
234
+ .clear-left {
235
+ clear: left;
236
+ }
237
+ /* 清除右侧浮动,将元素放置在任何先前的右浮动元素的下方 */
238
+ .clear-right {
239
+ clear: right;
240
+ }
241
+
242
+ /* 行内块元素水平垂直对齐方式
243
+ --------------- */
244
+ .b-center {
245
+ text-align: center;
246
+ & > * {
247
+ display: inline-block;
248
+ vertical-align: bottom;
249
+ }
250
+ }
251
+
252
+ .b-vertical {
253
+ font-size: 0;
254
+ & > * {
255
+ vertical-align: middle;
256
+ display: inline-block;
257
+ font-size: 14px;
258
+ }
259
+ &:before {
260
+ content: '';
261
+ vertical-align: middle;
262
+ display: inline-block;
263
+ width: 0;
264
+ height: 100%;
265
+ }
266
+ }
267
+
268
+ /* 文字居中
269
+ --------------- */
270
+ .text {
271
+ &-c {
272
+ text-align: center !important;
273
+ }
274
+ &-l {
275
+ text-align: left !important;
276
+ }
277
+ &-r {
278
+ text-align: right !important;
279
+ }
280
+ &-lr {
281
+ text-align: justify;
282
+ text-justify: inter-word;
283
+ }
284
+ &-ellipsis {
285
+ white-space: nowrap;
286
+ overflow: hidden;
287
+ text-overflow: ellipsis;
288
+ }
289
+ }
290
+
291
+ /* 弹性盒模型
292
+ --------------- */
293
+ .flex-box {
294
+ display: flex;
295
+ }
296
+ .flex-column {
297
+ display: flex;
298
+ flex-direction: column;
299
+ }
300
+
301
+ .flex-box > *,
302
+ .flex-column > * {
303
+ flex: none;
304
+ }
305
+
306
+ .flex {
307
+ &-v {
308
+ align-items: center;
309
+ }
310
+ &-s {
311
+ align-items: flex-start;
312
+ }
313
+ &-e {
314
+ align-items: flex-end;
315
+ }
316
+ &-l {
317
+ justify-content: flex-start;
318
+ }
319
+ &-r {
320
+ justify-content: flex-end;
321
+ }
322
+ &-c {
323
+ justify-content: center;
324
+ }
325
+ &-lr {
326
+ justify-content: space-between;
327
+ }
328
+ &-sa {
329
+ justify-content: space-around;
330
+ }
331
+ }
332
+
333
+ .flex-item {
334
+ flex: auto;
335
+ }
336
+
337
+ @for $n from 0 to 10 {
338
+ .flex-#{$n} {
339
+ flex: $n $n auto;
340
+ }
341
+ }
342
+
343
+ /* 旋转图标90度
344
+ -------------- */
345
+ .rotate90 {
346
+ display: inline-block;
347
+ transform: rotate(90deg);
348
+ cursor: pointer;
349
+ }
350
+
351
+ /* 清除背景色
352
+ -------------- */
353
+ .bg {
354
+ &-none {
355
+ background: none !important;
356
+ }
357
+ }
358
+
359
+ /* 阴影 */
360
+ .box-shadow {
361
+ box-shadow: 0px 4px 16px 0px rgba($--color-black, 0.1);
362
+ }
363
+ .box-shadow-mini {
364
+ box-shadow: 0px 2px 8px 0px rgba($--color-black, 0.08);
365
+ }
366
+ .page-footer-shadow {
367
+ position: relative;
368
+ height: 38px;
369
+ margin-bottom: -12px;
370
+ &::before {
371
+ content: '';
372
+ pointer-events: none;
373
+ position: absolute;
374
+ top: 0px;
375
+ height: 100%;
376
+ left: -12px;
377
+ right: -12px;
378
+ box-shadow: 0px -2px 6px 0px rgba($--color-black, 0.08);
379
+ }
380
+ }
381
+
382
+ .page-button-shadow {
383
+ position: relative;
384
+ height: 44px;
385
+ margin-bottom: -12px;
386
+ &::before {
387
+ content: '';
388
+ pointer-events: none;
389
+ position: absolute;
390
+ top: 0px;
391
+ height: 100%;
392
+ left: -12px;
393
+ right: -12px;
394
+ box-shadow: 0px -2px 6px 0px rgba($--color-black, 0.08);
395
+ }
396
+ }
397
+
398
+ /* 边框
399
+ -------------- */
400
+ .bd {
401
+ &-none {
402
+ border: none !important;
403
+ }
404
+ &-a {
405
+ border: 1px solid $--border-color-base;
406
+ }
407
+ &-t {
408
+ border-top: 1px solid $--border-color-base;
409
+ }
410
+ &-l {
411
+ border-left: 1px solid $--border-color-base;
412
+ }
413
+ &-r {
414
+ border-right: 1px solid $--border-color-base;
415
+ }
416
+ &-b {
417
+ border-bottom: 1px solid $--border-color-base;
418
+ }
419
+ }
420
+ .bd-rs {
421
+ border-radius: $--border-radius-base;
422
+ }
423
+
424
+ /* 设置弹窗内容区内边距
425
+ -------------- */
426
+ .el-dialog__wrapper {
427
+ &.p-a-0 {
428
+ .el-dialog__body {
429
+ padding: 0;
430
+ }
431
+ }
432
+ &.p-t-0 {
433
+ .el-dialog__body {
434
+ padding-top: 0;
435
+ }
436
+ }
437
+ &.p-b-0 {
438
+ .el-dialog__body {
439
+ padding-bottom: 0;
440
+ }
441
+ }
442
+ }
443
+
444
+ /* 通用字号
445
+ -------------- */
446
+ .font-size-base {
447
+ font-size: var(--font-size-base);
448
+ }
449
+ .font-size-small {
450
+ font-size: var(--font-size-small);
451
+ }
452
+
453
+ /* 通用颜色
454
+ -------------- */
455
+ .color-primary {
456
+ color: var(--color-primary) !important;
457
+ }
458
+ .color-success {
459
+ color: var(--color-success);
460
+ }
461
+ .color-warning {
462
+ color: var(--color-warning);
463
+ }
464
+ .color-danger {
465
+ color: var(--color-danger);
466
+ }
467
+ .color-placeholder {
468
+ color: var(--color-text-placeholder);
469
+ }
470
+
471
+ .linear-grad {
472
+ background: var(--background-linear-gradient);
473
+ }
474
+
475
+ .color-white {
476
+ color: white;
477
+ }
478
+ .color-ccc {
479
+ color: #ccc;
480
+ }
481
+ .color-999 {
482
+ color: #999;
483
+ }
484
+ .color-666 {
485
+ color: #666;
486
+ }
487
+ .color-333 {
488
+ color: #333;
489
+ }
490
+
491
+ /* 鼠标默认样式
492
+ --------------- */
493
+ .cursor-d {
494
+ cursor: default;
495
+ }
496
+ /* 鼠标小手
497
+ --------------- */
498
+ .pointer {
499
+ cursor: pointer;
500
+ }
501
+
502
+ /* 鼠标禁止
503
+ ---------------- */
504
+ .cursor-not {
505
+ cursor: not-allowed;
506
+ }
507
+
508
+ /* 字重
509
+ --------------- */
510
+ .font {
511
+ &-w600 {
512
+ font-weight: var(--font-weight-primary);
513
+ }
514
+ }
515
+
516
+ /* 字号
517
+ --------------- */
518
+ .f-s {
519
+ &-s {
520
+ /* 12号字 */
521
+ font-size: var(--font-size-small);
522
+ }
523
+ &-b {
524
+ /* 14号字 */
525
+ font-size: var(--font-size-base);
526
+ }
527
+ &-m {
528
+ /* 16号字 */
529
+ font-size: var(--font-size-medium);
530
+ }
531
+ &-l {
532
+ /* 18号 */
533
+ font-size: var(--font-size-large);
534
+ }
535
+ &-xl {
536
+ font-size: var(--font-size-extra-large);
537
+ }
538
+ }
539
+
540
+ /* 宽高范围是 60-1000
541
+ ---------------- */
542
+ $list: 45, 60, 80, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 200, 210, 220, 230, 240, 250, 260, 270, 280, 290,
543
+ 300, 400, 500, 600, 700, 800, 900, 1000;
544
+ @each $n in $list {
545
+ .w-#{$n} {
546
+ width: #{$n}px !important;
547
+ }
548
+ .h-#{$n} {
549
+ height: #{$n}px !important;
550
+ }
551
+ }
552
+
553
+ /* 宽百分比 */
554
+ @for $i from 1 through 10 {
555
+ .w-#{$i}0p {
556
+ width: #{$i + '0%'} !important;
557
+ }
558
+ }
559
+
560
+ .n20-page-content {
561
+ overflow-y: auto;
562
+ overflow-x: hidden;
563
+ }
564
+
565
+ /* 边框圆角
566
+ -------------- */
567
+ .b {
568
+ &-r {
569
+ border-radius: 50%;
570
+ }
571
+ &-r-4 {
572
+ border-radius: 4px;
573
+ }
574
+ &-r-5 {
575
+ border-radius: 5px;
576
+ }
577
+ &-r-6 {
578
+ border-radius: 6px;
579
+ }
580
+ &-r-7 {
581
+ border-radius: 7px;
582
+ }
583
+ &-r-8 {
584
+ border-radius: 8px;
585
+ }
586
+ &-r-9 {
587
+ border-radius: 9px;
588
+ }
589
+ &-r-10 {
590
+ border-radius: 10px;
591
+ }
592
+ }
593
+
594
+ /* 垂直对齐
595
+ --------------- */
596
+ .align {
597
+ &-baseline {
598
+ vertical-align: baseline; // 将一个元素的基线与其父元素的基线对齐。
599
+ }
600
+ &-top {
601
+ vertical-align: top; // 将一个元素的顶部和它的子代与整个行的顶部对齐。
602
+ }
603
+ &-middle {
604
+ vertical-align: middle; // 将元素的中间与基线加父元素的一半高度对齐。
605
+ }
606
+ &-bottom {
607
+ vertical-align: bottom; // 将一个元素的底部和它的子代与整个行的底部对齐。
608
+ }
609
+ &-text-top {
610
+ vertical-align: text-top; // 使元素的顶部与父元素的字体顶部对齐。
611
+ }
612
+ &-text-bottom {
613
+ vertical-align: text-bottom; // 使元素的底部与父元素的字体底部对齐。
614
+ }
615
+ }
616
+
617
+ /* 本文选择 */
618
+
619
+ .select {
620
+ &-none {
621
+ user-select: none; // 防止选择元素及其子元素中的文本。
622
+ }
623
+ &-text {
624
+ user-select: text; // 允许选择元素及其子元素中的文本。
625
+ }
626
+ &-all {
627
+ user-select: all; // 在用户点击时自动选择元素中的所有文本。
628
+ }
629
+ &-auto {
630
+ user-select: auto; // 使用默认的浏览器行为来选择文本
631
+ }
632
+ }
633
+
634
+ /* 文本溢出显示省略号 */
635
+ .truncate {
636
+ overflow: hidden;
637
+ text-overflow: ellipsis;
638
+ white-space: nowrap;
639
+ }
640
+
641
+ /* 本文转换 */
642
+ /* 使用 uppercase 功能类对文本进行大写转换 */
643
+ .uppercase {
644
+ text-transform: uppercase;
645
+ }
646
+ /* 使用 lowercase 功能类对文本进行小写转换 */
647
+ .lowercase {
648
+ text-transform: lowercase;
649
+ }
650
+ /* 使用 capitalize 功能类对文本进行首字母大写转换 */
651
+ .capitalize {
652
+ text-transform: capitalize;
653
+ }
654
+
655
+ /* 下划线 */
656
+ .underline {
657
+ text-decoration: underline;
658
+ }
659
+ /* 删除线 */
660
+ .line-through {
661
+ text-decoration: line-through;
662
+ }
663
+ /* 移除文本装饰 */
664
+ .no-underline {
665
+ text-decoration: none;
666
+ }
667
+
668
+ /* 动画 */
669
+ .animate {
670
+ &-none {
671
+ animation: none;
672
+ }
673
+ &-spin {
674
+ animation: spin 1s linear infinite;
675
+ }
676
+ &-ping {
677
+ animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
678
+ }
679
+ &-pulse {
680
+ animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
681
+ }
682
+ &-bounce {
683
+ animation: bounce 1s infinite;
684
+ }
685
+ }
686
+
687
+ @keyframes spin {
688
+ from {
689
+ transform: rotate(0deg);
690
+ }
691
+ to {
692
+ transform: rotate(360deg);
693
+ }
694
+ }
695
+ @keyframes ping {
696
+ 75%,
697
+ 100% {
698
+ transform: scale(2);
699
+ opacity: 0;
700
+ }
701
+ }
702
+
703
+ @keyframes pulse {
704
+ 0%,
705
+ 100% {
706
+ opacity: 1;
707
+ }
708
+ 50% {
709
+ opacity: 0.5;
710
+ }
711
+ }
712
+
713
+ @keyframes bounce {
714
+ 0%,
715
+ 100% {
716
+ transform: translateY(-25%);
717
+ animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
718
+ }
719
+ 50% {
720
+ transform: translateY(0);
721
+ animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
722
+ }
723
+ }