onchain-uikit 0.0.2 → 0.0.6

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 (49) hide show
  1. package/.storybook/preview.tsx +31 -0
  2. package/config/theme.ts +34 -0
  3. package/dist/index.d.ts +2 -0
  4. package/dist/index.es.js +581 -311
  5. package/dist/index.umd.js +30 -0
  6. package/dist/src/App.d.ts +5 -0
  7. package/dist/src/components/PlmMosaic/index.d.ts +5 -0
  8. package/dist/src/index.d.ts +3 -0
  9. package/dist/src/main.d.ts +0 -0
  10. package/dist/src/stories/Button.d.ts +14 -0
  11. package/dist/src/stories/Button.stories.d.ts +23 -0
  12. package/dist/src/stories/Header.d.ts +11 -0
  13. package/dist/src/stories/Header.stories.d.ts +18 -0
  14. package/dist/src/stories/OnChainProvider.d.ts +12 -0
  15. package/dist/src/stories/Page.d.ts +2 -0
  16. package/dist/src/stories/Page.stories.d.ts +12 -0
  17. package/dist/src/stories/PlmMosaic.stories.d.ts +14 -0
  18. package/dist/src/stories/PlmSelect/PlmSelect.stories.d.ts +21 -0
  19. package/dist/src/stories/PlmSelect/index.d.ts +20 -0
  20. package/dist/src/stories/XsButton.d.ts +22 -0
  21. package/dist/src/stories/XsButton.stories.d.ts +14 -0
  22. package/dist/src/utils/authority/basicsAuthority.d.ts +22 -0
  23. package/dist/src/utils/authority/index.d.ts +10 -0
  24. package/dist/vite.config.d.ts +2 -0
  25. package/package.json +23 -3
  26. package/src/App.tsx +30 -7
  27. package/src/assets/styles/antd.custom.less +1144 -0
  28. package/src/assets/styles/mixins.less +5 -0
  29. package/src/components/PlmMosaic/index.module.less +6 -0
  30. package/src/components/PlmMosaic/index.tsx +15 -0
  31. package/src/global.less +973 -0
  32. package/src/index.ts +5 -2
  33. package/src/main.tsx +7 -4
  34. package/src/stories/OnChainProvider.tsx +37 -0
  35. package/src/stories/PlmMosaic.stories.ts +35 -0
  36. package/src/stories/PlmSelect/PlmSelect.stories.ts +50 -0
  37. package/src/stories/PlmSelect/index.module.less +73 -0
  38. package/src/stories/PlmSelect/index.tsx +136 -0
  39. package/src/stories/XsButton.stories.ts +30 -0
  40. package/src/stories/XsButton.tsx +33 -0
  41. package/src/typings.d.ts +636 -0
  42. package/src/utils/authority/basicsAuthority.ts +46 -0
  43. package/src/utils/authority/index.tsx +28 -0
  44. package/tsconfig.json +84 -5
  45. package/typings.d.ts +130 -0
  46. package/vite.config.ts +63 -5
  47. package/.storybook/preview.ts +0 -14
  48. package/dist/index.cjs.js +0 -30
  49. package/dist/onchain-uikit.css +0 -1
@@ -0,0 +1,1144 @@
1
+ @import "./mixins.less";
2
+ // dropdown全局样式
3
+ .frontend-dropdown {
4
+ max-width: 300px;
5
+ }
6
+ .frontend-dropdown-menu-item,
7
+ .frontend-dropdown-menu-submenu-title {
8
+ font-size: 12px !important;
9
+ line-height: 16px !important;
10
+ }
11
+
12
+ .frontend-select-selection-item-remove {
13
+ display: flex !important;
14
+ }
15
+
16
+ .frontend-tabs-tab {
17
+ // min-width: 38px !important;
18
+ }
19
+ //清除disabled样式
20
+ .cleardisable {
21
+ color: @text-color;
22
+ background-color: #fff !important;
23
+ cursor: auto !important;
24
+ border: 1px solid transparent !important;
25
+ // white-space: nowrap;
26
+ text-overflow: ellipsis;
27
+ overflow: hidden;
28
+ user-select: auto !important;
29
+ font-size: 12px;
30
+ padding: 0px;
31
+ }
32
+ .frontend-form-inline .frontend-form-item {
33
+ margin-right: 10px !important;
34
+ }
35
+ .frontend-form-item-label > label .frontend-form-item-optional {
36
+ display: none !important;
37
+ }
38
+ // 表单样式
39
+ .frontend-form {
40
+ .frontend-form-item-label {
41
+ padding: 0px !important;
42
+ }
43
+ label {
44
+ font-size: 12px !important;
45
+ }
46
+ .frontend-checkbox-group-item {
47
+ margin-right: 32px;
48
+ }
49
+ .frontend-form-item {
50
+ margin-bottom: 16px !important;
51
+ // overflow: hidden !important;
52
+ }
53
+ .frontend-form-item-label > label {
54
+ // padding-top: 5px;
55
+ font-weight: 600;
56
+ .global_label();
57
+ // width: 100%;
58
+ // display: block;
59
+ // height: 100%;
60
+ // // word-break: break-all;
61
+ // white-space: nowrap;
62
+ // overflow: hidden;
63
+ // text-overflow: ellipsis;
64
+ }
65
+
66
+ .frontend-form-item-explain,
67
+ .frontend-form-item-extra {
68
+ font-size: 12px;
69
+ }
70
+
71
+ textarea.frontend-input {
72
+ resize: none;
73
+ font-size: 12px !important;
74
+ }
75
+ .frontend-select {
76
+ font-size: 12px;
77
+ }
78
+ .frontend-input {
79
+ font-size: 12px;
80
+ }
81
+ .frontend-input-affix-wrapper {
82
+ height: 30px !important;
83
+ }
84
+ .frontend-row .frontend-form-item {
85
+ margin-right: 10px !important;
86
+ }
87
+ // 只读
88
+ .readOnly {
89
+ .frontend-picker-disabled .frontend-picker-input > input {
90
+ border: none !important;
91
+ }
92
+ // .frontend-form .readOnly textarea.frontend-input-disabled {
93
+ // white-space: wrap !important;
94
+ // }
95
+ .frontend-form-item-control {
96
+ }
97
+
98
+ .frontend-select-selection-placeholder {
99
+ display: none !important;
100
+ }
101
+
102
+ // 输入框只读
103
+ input.frontend-input-disabled:extend(.cleardisable) {
104
+ }
105
+
106
+ .frontend-input-number-disabled
107
+ .frontend-input-number-input:extend(.cleardisable) {
108
+ }
109
+ textarea.frontend-input-disabled::placeholder {
110
+ visibility: hidden;
111
+ }
112
+
113
+ // 文本域只读
114
+ .frontend-input-textarea-show-count::after {
115
+ display: none;
116
+ }
117
+ textarea.frontend-input-disabled:extend(.cleardisable) {
118
+ padding: 5px 0px;
119
+ height: 50px;
120
+ color: @text-color;
121
+ overflow-y: auto;
122
+ background-color: #fff !important;
123
+ cursor: auto !important;
124
+ border: 1px solid transparent !important;
125
+ }
126
+
127
+ // 下拉框只读
128
+ .frontend-select-disabled:not(.frontend-cascader) {
129
+ pointer-events: none;
130
+ .frontend-select-selector:extend(.cleardisable) {
131
+ .frontend-select-selection-item {
132
+ user-select: auto !important;
133
+ }
134
+ }
135
+ .frontend-select-arrow {
136
+ display: none;
137
+ }
138
+ }
139
+ .frontend-select-disabled.frontend-select-multiple
140
+ .frontend-select-selection-item {
141
+ background: #ffffff !important;
142
+ border: 1px solid @sider-border !important;
143
+ }
144
+
145
+ // 编号只读
146
+ .frontend-input-number-disabled:extend(.cleardisable) {
147
+ height: 24px;
148
+ }
149
+
150
+ // 日期只读
151
+ .frontend-picker-disabled:extend(.cleardisable) {
152
+ .frontend-picker-suffix {
153
+ display: none;
154
+ }
155
+
156
+ .frontend-picker-input > input:extend(.cleardisable) {
157
+ color: #2c3652;
158
+ cursor: auto !important;
159
+ }
160
+ }
161
+
162
+ // 级联选择框只读
163
+ .frontend-cascader-picker-disabled:extend(.cleardisable) {
164
+ cursor: auto;
165
+ .frontend-cascader-picker-arrow {
166
+ display: none;
167
+ }
168
+ }
169
+ }
170
+ }
171
+
172
+ .react-viewer-close {
173
+ display: none;
174
+ }
175
+ .react-viewer-navbar {
176
+ display: none;
177
+ }
178
+ .react-viewer-showTotal {
179
+ display: none;
180
+ }
181
+
182
+ //所有选择项
183
+ .frontend-select-item {
184
+ font-size: 12px !important;
185
+ }
186
+
187
+ .frontend-form-item-label
188
+ > label.frontend-form-item-required:not(
189
+ .frontend-form-item-required-mark-optional
190
+ ) {
191
+ // &::after {
192
+ // display: inline-flex;
193
+ // align-items: center;
194
+ // align-self: center;
195
+ // // margin: 4px 2px;
196
+ // color: #ff4d4f;
197
+ // font-size: 14px;
198
+ // font-family: SimSun, sans-serif;
199
+ // line-height: 1;
200
+ // content: '*';
201
+ // }
202
+ // &::before {
203
+ // display: none !important;
204
+ // content: '' !important;
205
+ // }
206
+ }
207
+ .frontend-input,
208
+ .frontend-select-selector,
209
+ .frontend-input-affix-wrapper,
210
+ .frontend-input-number-input {
211
+ border-radius: 0px !important;
212
+ font-size: 12px;
213
+ }
214
+ textarea.frontend-input-disabled,
215
+ textarea.frontend-input[disabled] {
216
+ color: #2c3652;
217
+ }
218
+ .frontend-select-multiple .frontend-select-selection-item {
219
+ background: #ddeffe !important;
220
+ }
221
+ .frontend-select-tree .frontend-select-tree-node-content-wrapper {
222
+ font-size: 12px;
223
+ }
224
+ .frontend-select-disabled .frontend-select-selection-item {
225
+ background: #fff !important;
226
+ color: #001737 !important;
227
+ border: none !important;
228
+ }
229
+
230
+ .frontend-form
231
+ .readOnly
232
+ .frontend-select-disabled.frontend-select-multiple
233
+ .frontend-select-selection-item {
234
+ background: rgba(227, 235, 246, 0.35) !important;
235
+ border: 1px solid #e3ebf6 !important;
236
+ }
237
+ .frontend-form-inline {
238
+ flex-wrap: nowrap !important;
239
+ }
240
+ .frontend-picker,
241
+ .frontend-picker-input > input {
242
+ font-size: 12px !important;
243
+ }
244
+
245
+ // .frontend-tag {
246
+ // background-color: rgba(227, 235, 246, 0.35) !important;
247
+ // border: 1px solid #e3ebf6 !important;
248
+ // }
249
+
250
+ .frontend-modal-body {
251
+ .frontend-table-body {
252
+ overflow-x: scroll !important;
253
+
254
+ // tr:last-child > td {
255
+ // border: none !important;
256
+ // }
257
+ }
258
+
259
+ // 滚动条整体部分
260
+ .frontend-table-body::-webkit-scrollbar {
261
+ /* 设置垂直滚动条宽度 */
262
+ width: 10px !important;
263
+ height: 10px !important;
264
+ }
265
+
266
+ // 边角
267
+ .frontend-table-body::-webkit-scrollbar-corner {
268
+ background-color: #dbdbdb !important;
269
+ }
270
+
271
+ // 滚动的滑块
272
+ .frontend-table-body::-webkit-scrollbar-thumb {
273
+ // border-radius: 5px !important;
274
+ background-color: #cccccc !important;
275
+ }
276
+
277
+ // // 内层滚动槽
278
+ // .frontend-table-body::-webkit-scrollbar-track-piece {
279
+ // background-color: #f5f5f5 !important;
280
+ // }
281
+ }
282
+
283
+ .frontend-table-filter-dropdown {
284
+ .frontend-btn {
285
+ font-size: 12px !important;
286
+ }
287
+ }
288
+ // .frontend-notification {
289
+ // .frontend-notification-notice-close {
290
+ // display: none;
291
+ // }
292
+ // height: 100vh;
293
+ // width: 100vw;
294
+ // .frontend-notification-notice {
295
+ // height: 480px;
296
+ // height: 116px;
297
+ // .frontend-notification-notice-description {
298
+ // font-size: 12px;
299
+ // }
300
+ // }
301
+ // }
302
+
303
+ .frontend-input:placeholder-shown,
304
+ textarea.frontend-input,
305
+ .frontend-input,
306
+ .frontend-picker-panel,
307
+ .frontend-cascader-menus,
308
+ a,
309
+ area,
310
+ button,
311
+ [role="button"],
312
+ input:not([type="range"]),
313
+ label,
314
+ select,
315
+ summary,
316
+ textarea {
317
+ font-size: 12px;
318
+ }
319
+
320
+ .frontend-layout-header {
321
+ background: #fff !important;
322
+ background-color: #fff !important;
323
+ }
324
+
325
+ .table-checkbox {
326
+ .frontend-radio-inner {
327
+ background-color: #d0d0d0 !important;
328
+ border: none !important;
329
+ border-style: none !important;
330
+ }
331
+ .frontend-table-row-selected td:not(.frontend-table-selection-column) {
332
+ background-color: #d4eafd !important;
333
+ }
334
+
335
+ .frontend-table-row:hover > td:first-child {
336
+ border-start-start-radius: 0px !important;
337
+ border-end-start-radius: 0px !important;
338
+ }
339
+ .table_row_drag_hoving td {
340
+ background-color: #d4eafd !important;
341
+ }
342
+ .frontend-table-selection {
343
+ height: 100%;
344
+ width: 100%;
345
+ }
346
+ // checkbox
347
+ .frontend-checkbox-input {
348
+ &:hover {
349
+ border: none;
350
+ }
351
+ }
352
+ .frontend-checkbox-inner {
353
+ &:hover {
354
+ border: none;
355
+ }
356
+ }
357
+ // .frontend-table-tbody > tr.frontend-table-row-selected > td .frontend-table-selection-column {
358
+ // padding: 0px 0px;
359
+ // }
360
+ .frontend-checkbox-checked::after {
361
+ border: 1px solid transparent;
362
+ content: none;
363
+ }
364
+ .frontend-checkbox-wrapper
365
+ .frontend-checkbox:not(.frontend-checkbox-disabled):not(
366
+ .frontend-checkbox-checked
367
+ )
368
+ .frontend-checkbox-inner {
369
+ border-color: transparent;
370
+ background-color: transparent;
371
+ }
372
+ .frontend-checkbox-disabled .frontend-checkbox-inner {
373
+ // border: none;
374
+ border-radius: 0px;
375
+ }
376
+ table tr th.frontend-table-selection-column,
377
+ table tr td.frontend-table-selection-column {
378
+ padding: 0px !important;
379
+ background-color: #d0d0d0 !important;
380
+ }
381
+
382
+ .frontend-table-body .frontend-checkbox-disabled .frontend-checkbox-inner {
383
+ background-color: #d0d0d0;
384
+ }
385
+
386
+ .frontend-table-thead .frontend-checkbox-disabled .frontend-checkbox-inner {
387
+ background: none;
388
+ }
389
+
390
+ .frontend-checkbox-checked .frontend-checkbox-inner {
391
+ // background-color: @sider-border !important;
392
+ border-color: transparent;
393
+ border-radius: 0px;
394
+ }
395
+
396
+ .frontend-checkbox-indeterminate .frontend-checkbox-inner::after {
397
+ background-color: transparent;
398
+ }
399
+ .frontend-checkbox-checked .frontend-checkbox-inner::after {
400
+ display: none;
401
+ }
402
+ .frontend-table-selection,
403
+ .frontend-checkbox-wrapper,
404
+ .frontend-checkbox,
405
+ .frontend-checkbox-inner {
406
+ height: 100%;
407
+ width: 100%;
408
+ position: absolute;
409
+ top: 0;
410
+ left: 0;
411
+ }
412
+ }
413
+ .frontend-tabs-dropdown-menu-item > span {
414
+ font-size: 12px;
415
+ }
416
+
417
+ .notice-custom-class {
418
+ padding: 15px 16px;
419
+ border-radius: 5px;
420
+ width: 324px;
421
+ margin-right: 38px;
422
+ top: 52px;
423
+ cursor: pointer;
424
+ overflow: initial;
425
+
426
+ .frontend-notification-notice-message {
427
+ padding-right: 0;
428
+ margin-left: 52px !important;
429
+ margin-bottom: 0;
430
+ .titleFlex {
431
+ display: flex;
432
+ justify-content: space-between;
433
+ .theme {
434
+ font-size: 14px;
435
+ color: #333;
436
+ font-weight: 600;
437
+ }
438
+ .time {
439
+ font-size: 12px;
440
+ color: #666;
441
+ }
442
+ }
443
+ }
444
+ .frontend-notification-notice-description {
445
+ font-size: 12px;
446
+ overflow: hidden;
447
+ white-space: nowrap;
448
+ text-overflow: ellipsis;
449
+ margin-left: 52px !important;
450
+ }
451
+ .frontend-notification-notice-icon {
452
+ margin-left: 0;
453
+ margin-top: 1px;
454
+
455
+ .markIcon {
456
+ width: 40px;
457
+ height: 40px;
458
+ border-radius: 50%;
459
+ display: flex;
460
+ justify-content: center;
461
+ align-items: center;
462
+ font-size: 18px;
463
+ color: #fff;
464
+ }
465
+ .greenIcon {
466
+ background: #1b8413;
467
+ }
468
+ .blueIcon {
469
+ background: #0563b2;
470
+ }
471
+ .redIcon {
472
+ background: #db321c;
473
+ }
474
+ }
475
+ .frontend-notification-notice-close {
476
+ position: absolute;
477
+ top: -11px;
478
+ left: -11px;
479
+ }
480
+ }
481
+ .ria_frontend_notify {
482
+ width: 480px;
483
+ padding: 10px 0px;
484
+ background: #ddeffe;
485
+ border-left: 3px solid @primary-color;
486
+ border-radius: 0px;
487
+ bottom: 250px;
488
+ .frontend-notification-notice-message {
489
+ font-weight: 500 !important;
490
+ color: #333333 !important;
491
+ font-size: 12px !important;
492
+ }
493
+ .frontend-notification-notice-description {
494
+ font-weight: 400 !important;
495
+ color: #333333 !important;
496
+ font-size: 12px !important;
497
+ }
498
+ .frontend-notification-notice-icon {
499
+ color: #0563b2;
500
+ font-size: 18px;
501
+ line-height: 18px;
502
+ }
503
+ .frontend-notification-notice-with-icon .frontend-notification-notice-message,
504
+ .frontend-notification-notice-with-icon
505
+ .frontend-notification-notice-description {
506
+ margin-left: 42px;
507
+ }
508
+ .frontend-notification-notice-icon {
509
+ margin-left: 12px;
510
+ margin-top: 12px;
511
+ }
512
+ .frontend-notification-notice-close {
513
+ top: 5px;
514
+ right: 10px;
515
+ color: rgba(0, 0, 0, 0.25);
516
+ }
517
+ }
518
+
519
+ @media screen and (max-width: 1440px) {
520
+ .ria_frontend_notify {
521
+ bottom: 16px;
522
+ }
523
+ }
524
+
525
+ .ria_frontend_notify_top {
526
+ width: 380px;
527
+ padding: 10px 0px;
528
+ background: #fff;
529
+ border-left: 3px solid @primary-color;
530
+ top: 90px;
531
+ height: 80px;
532
+ border-radius: 0px;
533
+ .frontend-notification-notice-message {
534
+ font-weight: 500 !important;
535
+ color: #333333 !important;
536
+ font-size: 12px !important;
537
+ }
538
+ .frontend-notification-notice-description {
539
+ font-weight: 400 !important;
540
+ color: #333333 !important;
541
+ font-size: 12px !important;
542
+ }
543
+ .frontend-notification-notice-with-icon
544
+ .frontend-notification-notice-message {
545
+ margin-left: 36px;
546
+ }
547
+ .frontend-notification-notice-with-icon
548
+ .frontend-notification-notice-description {
549
+ margin-left: 12px;
550
+ }
551
+ .frontend-notification-notice-icon {
552
+ margin-left: 12px;
553
+ margin-top: 3px;
554
+ font-size: 18px;
555
+ line-height: 18px;
556
+ }
557
+ .frontend-notification-notice-close {
558
+ top: 5px;
559
+ right: 10px;
560
+ color: rgba(0, 0, 0, 0.25);
561
+ }
562
+ }
563
+ .frontend-message {
564
+ top: 80px;
565
+ }
566
+ .frontend-message-notice-content .frontend-message-error,
567
+ .frontend-message-notice-content .frontend-message-warning,
568
+ .frontend-message-notice-content .frontend-message-info,
569
+ .frontend-message-notice-content .frontend-message-success {
570
+ padding-left: 14px;
571
+ padding-right: 14px !important;
572
+ word-break: break-all;
573
+ }
574
+ .frontend-message-notice-content {
575
+ min-width: 288px !important;
576
+ padding: 0px !important;
577
+ font-size: 12px !important;
578
+ display: inline-block !important;
579
+ align-items: center !important;
580
+ min-height: 40px !important;
581
+ display: inline-flex !important;
582
+ border-radius: 0 !important;
583
+ // // &:not(.ant){
584
+ // // }
585
+ .frontend-message-success {
586
+ // height: 100%;
587
+ // border-left: 4px solid #44b84a !important;
588
+ min-height: 40px;
589
+ display: flex;
590
+ align-items: center;
591
+ padding-right: 10px;
592
+ }
593
+ .frontend-message-error {
594
+ // height: 100%;
595
+ // border-left: 4px solid #eb5d52 !important;
596
+ min-height: 40px;
597
+ display: flex;
598
+ align-items: center;
599
+ padding-right: 10px;
600
+ }
601
+ }
602
+ .frontend-message-custom-content {
603
+ }
604
+ .frontend-checkbox-inner {
605
+ border: 1px solid #e4e4e4;
606
+ border-radius: 0px;
607
+ }
608
+
609
+ .frontend-message-notice-content .frontend-message-error,
610
+ .frontend-message-notice-content .frontend-message-warning,
611
+ .frontend-message-notice-content .frontend-message-info,
612
+ .frontend-message-notice-content .frontend-message-success {
613
+ padding-top: 8px;
614
+ padding-bottom: 8px;
615
+ }
616
+
617
+ // 按钮
618
+ .frontend-btn {
619
+ padding: 2px 15px;
620
+ font-size: 12px !important;
621
+ border-radius: 0px !important;
622
+ }
623
+
624
+ // .frontend-modal-confirm .frontend-modal-body {
625
+ // border-left: 4px solid #ffb200;
626
+ // }
627
+ // .frontend-modal-content {
628
+ // min-height: 116px !important;
629
+ // width: 480px !important;
630
+ // }
631
+
632
+ .frontend-select-tree
633
+ .frontend-select-tree-node-content-wrapper.frontend-select-tree-node-selected {
634
+ background-color: rgb(221, 239, 254) !important;
635
+ }
636
+
637
+ .frontend-select-item-option-selected:not(
638
+ .frontend-select-item-option-disabled
639
+ ) {
640
+ background-color: rgb(221, 239, 254) !important;
641
+ font-weight: 400 !important;
642
+ color: @primary-color !important;
643
+ }
644
+
645
+ .twiceaffirm {
646
+ // .frontend-modal-confirm-body > .anticon + .frontend-modal-confirm-title + .frontend-modal-confirm-content {
647
+ // margin-left: 0px;
648
+ // }
649
+ // // .frontend-modal-body {
650
+ // // height: 116px !important;
651
+ // // }
652
+ // .frontend-modal-confirm-body .frontend-modal-confirm-content {
653
+ // font-size: 12px;
654
+ // }
655
+ // .frontend-modal-confirm-body .frontend-modal-confirm-title {
656
+ // font-weight: bold;
657
+ // font-size: 14px;
658
+ // }
659
+ // .frontend-modal-confirm-body .frontend-modal-confirm-title {
660
+ // // display: contents;
661
+ // display: -webkit-box;
662
+ // -webkit-box-orient: vertical;
663
+ // -webkit-line-clamp: 1;
664
+ // overflow: hidden;
665
+ // }
666
+ // .frontend-modal-confirm .frontend-modal-body {
667
+ // border-left: 0px solid #ffb200;
668
+ // }
669
+ // .modelok:hover {
670
+ // background: #ddeffe !important;
671
+ // color: @primary-color !important;
672
+ // span {
673
+ // color: @primary-color !important;
674
+ // }
675
+ // }
676
+ // .frontend-modal-body {
677
+ // padding: 12px 16px !important;
678
+ // }
679
+ // .frontend-modal-confirm .frontend-modal-confirm-btns .frontend-btn + .frontend-btn {
680
+ // margin-left: 16px !important;
681
+ // }
682
+ // .frontend-btn > .anticon + span,
683
+ // .frontend-btn > span + .anticon {
684
+ // color: #333333;
685
+ // }
686
+ // .frontend-btn > .anticon + span,
687
+ // .frontend-btn > span + .anticon {
688
+ // margin-left: 5px !important;
689
+ // }
690
+ }
691
+
692
+ // .tablescroll {
693
+ // ::-webkit-scrollbar:horizontal {
694
+ // height: 10px;
695
+ // }
696
+ // ::-webkit-scrollbar:vertical {
697
+ // width: 10px;
698
+ // }
699
+
700
+ // ::-webkit-scrollbar-thumb {
701
+ // background: #cccccc;
702
+ // transition: background 0.2s ease-in-out;
703
+ // &:hover {
704
+ // background: #a8a9a9;
705
+ // }
706
+ // }
707
+ // ::-webkit-scrollbar-track {
708
+ // padding: 2px;
709
+ // box-shadow: 0;
710
+ // border-radius: 0;
711
+ // background: #fafafa !important;
712
+ // // background: #ffffff;
713
+ // }
714
+ // ::-webkit-scrollbar-corner {
715
+ // background-color: #fafafa !important;
716
+ // }
717
+ // }
718
+
719
+ // .tablenoscroll {
720
+ // // 处理表格头部可以滚动
721
+ // // colgroup col:last-child {
722
+ // // // display: none;
723
+ // // width: 0px !important;
724
+ // // }
725
+ // ::-webkit-scrollbar:horizontal {
726
+ // height: 10px;
727
+ // }
728
+
729
+ // ::-webkit-scrollbar:vertical {
730
+ // width: 10px !important;
731
+ // display: none !important;
732
+ // }
733
+
734
+ // ::-webkit-scrollbar-thumb {
735
+ // // border-radius: 3px;
736
+ // background: #cccccc;
737
+ // transition: background 0.2s ease-in-out;
738
+ // &:hover {
739
+ // background: #a8a9a9;
740
+ // }
741
+ // }
742
+ // }
743
+
744
+ .frontend-spin-nested-loading,
745
+ .frontend-spin-container {
746
+ height: 100%;
747
+ }
748
+
749
+ .chart_tab_style {
750
+ .frontend-tabs-nav {
751
+ .frontend-tabs-nav-list {
752
+ margin-left: 6px !important;
753
+ .frontend-tabs-tab {
754
+ background: transparent !important;
755
+ border: 0 !important;
756
+ margin: 10px 0 !important;
757
+ padding: 0 6px !important;
758
+ font-size: 12px !important;
759
+ font-family: PingFangSC, PingFangSC-Regular;
760
+ font-weight: 400;
761
+ border-right: 1px solid #f0f0f0 !important;
762
+ border-radius: 0 !important;
763
+
764
+ &:nth-last-child(2) {
765
+ border-right: 0 !important;
766
+ }
767
+ }
768
+ .frontend-tabs-ink-bar {
769
+ color: #fff !important;
770
+ background-color: #fff !important;
771
+ }
772
+ }
773
+ }
774
+ }
775
+
776
+ .frontend-tabs-tab {
777
+ font-size: 12px !important;
778
+ }
779
+
780
+ .menu_text {
781
+ font-size: 12px;
782
+ }
783
+
784
+ .frontend-form-item {
785
+ font-size: 12px !important;
786
+ }
787
+ .frontend-modal-content {
788
+ padding: 0px !important;
789
+ }
790
+
791
+ a,
792
+ a:active,
793
+ a:hover,
794
+ a:focus {
795
+ color: #0563b2 !important;
796
+ }
797
+
798
+ .frontend-modal .frontend-modal-close {
799
+ // top: 0px;
800
+ }
801
+
802
+ .frontend-table-wrapper .frontend-table .frontend-table-header {
803
+ border-radius: 0px !important;
804
+ }
805
+
806
+ .frontend-tooltip-arrow::after {
807
+ background: #fff !important;
808
+ border: none !important;
809
+ }
810
+ .frontend-popover-inner {
811
+ padding: 0px !important;
812
+ }
813
+ table .frontend-dropdown-trigger {
814
+ position: relative;
815
+ display: flex;
816
+ align-items: center;
817
+ margin: -4px -2.5px -4px 4px !important;
818
+ padding: 0 4px;
819
+ color: #bfbfbf;
820
+ font-size: 12px;
821
+ border-radius: 2px;
822
+ cursor: pointer;
823
+ transition: all 0.3s;
824
+ }
825
+ .frontend-table .frontend-table-placeholder td {
826
+ border-bottom: none !important;
827
+ &:hover {
828
+ background: #fafafa !important;
829
+ }
830
+ }
831
+ .react-resizable-handle {
832
+ background: none !important;
833
+ }
834
+ .frontend-table-thead > tr > th {
835
+ background: #ececec !important;
836
+ position: relative !important;
837
+ border-bottom: 1px solid #e4e4e4 !important;
838
+ }
839
+
840
+ .frontend-table-thead > tr > th {
841
+ color: #666;
842
+ }
843
+ // .react-resizable-handle {
844
+ // right: -1px !important;
845
+ // }
846
+ .frontend-table.frontend-table-bordered
847
+ > .frontend-table-container
848
+ > .frontend-table-header
849
+ > table
850
+ > thead
851
+ > tr
852
+ > th {
853
+ border-right: 1px solid #e4e4e4 !important;
854
+ }
855
+
856
+ .frontend-modal-footer {
857
+ margin-top: 7px !important;
858
+ padding: 10px 16px !important;
859
+ }
860
+
861
+ .SplitPane {
862
+ background: #fff;
863
+ }
864
+
865
+ .frontend-modal .frontend-modal-content {
866
+ border-radius: 0px !important;
867
+ }
868
+
869
+ .frontend-modal .frontend-modal-content .frontend-modal-close-x {
870
+ height: auto !important;
871
+ width: auto !important;
872
+ line-height: auto !important;
873
+ }
874
+ .frontend-modal-close {
875
+ background: none !important;
876
+ }
877
+
878
+ .frontend-tabs-nav {
879
+ &::before {
880
+ display: none !important;
881
+ }
882
+ }
883
+ .frontend-select .frontend-select-clear {
884
+ margin-top: -6px !important;
885
+ }
886
+
887
+ .frontend-modal-confirm-title {
888
+ font-size: 13px !important;
889
+ }
890
+ .frontend-modal-confirm-content {
891
+ margin-inline-start: 0px !important;
892
+ max-width: calc(100%) !important;
893
+ font-size: 13px !important;
894
+ }
895
+
896
+ .frontend-modal-confirm {
897
+ .frontend-modal-footer {
898
+ display: none !important;
899
+ }
900
+ }
901
+
902
+ .frontend-modal-header {
903
+ margin-bottom: 0px !important;
904
+ }
905
+
906
+ .frontend-modal-body {
907
+ padding: 24px 24px 1px;
908
+ }
909
+
910
+ .frontend-input-number {
911
+ border-radius: 0px !important;
912
+ }
913
+
914
+ .approveTable {
915
+ .frontend-table-wrapper
916
+ .frontend-table:not(.frontend-table-bordered)
917
+ .frontend-table-tbody
918
+ > tr.frontend-table-row.frontend-table-row-selected
919
+ > td:first-child,
920
+ .frontend-table-cell-row-hover:first-child,
921
+ .frontend-table-wrapper
922
+ .frontend-table:not(.frontend-table-bordered)
923
+ .frontend-table-tbody
924
+ > tr.frontend-table-row.frontend-table-row-selected
925
+ > td:last-child {
926
+ border-start-start-radius: 0px !important;
927
+ border-end-start-radius: 0px !important;
928
+ border-start-end-radius: 0px !important;
929
+ border-end-end-radius: 0px !important;
930
+ }
931
+ .frontend-table-tbody > tr:not(.frontend-table-measure-row) > td {
932
+ padding: 0px 5px !important;
933
+ }
934
+ .frontend-table-header tr th {
935
+ // height: 24px !important;
936
+ padding: 3px !important;
937
+ }
938
+ .frontend-table-header tr td {
939
+ // height: 24px !important;
940
+ }
941
+ .frontend-table-cell-row-hover {
942
+ // background: transparent !important;
943
+ }
944
+ table .frontend-table-tbody > tr.frontend-table-row-selected > td {
945
+ background: #ffffff;
946
+ // border-bottom: none !important;
947
+ // border-color: #ffffff;
948
+ }
949
+ }
950
+
951
+ .frontend-table-tbody > tr.frontend-table-row-selected > td {
952
+ // border-bottom: 1px solid transparent;
953
+ }
954
+
955
+ .frontend-table {
956
+ }
957
+
958
+ .frontend-modal-confirm-btns button {
959
+ box-shadow: none !important;
960
+ }
961
+
962
+ .frontend-popover-inner {
963
+ padding: 12px !important;
964
+ }
965
+
966
+ .frontend-modal-confirm-body .anticon {
967
+ margin-bottom: 0px !important;
968
+ }
969
+
970
+ .noMargin {
971
+ margin-bottom: 0px !important;
972
+ .frontend-form-item {
973
+ margin-bottom: 0px !important;
974
+ }
975
+ .frontend-select-selection-overflow {
976
+ max-height: 32px !important;
977
+ }
978
+ }
979
+
980
+ .spaceGap12 {
981
+ gap: 0px !important;
982
+ .frontend-radio-wrapper {
983
+ height: 32px;
984
+ line-height: 32px;
985
+ }
986
+ }
987
+
988
+ .frontend-select-multiple .frontend-select-selection-item {
989
+ border: none;
990
+ color: #0563b2;
991
+ border-radius: 0px;
992
+ background: #ddeffe !important;
993
+ }
994
+
995
+ .frontend-tabs-top:not(.frontend-tabs-card) .frontend-tabs-nav-more {
996
+ margin-left: 0px !important;
997
+ }
998
+ .frontend-tabs-top:not(.frontend-tabs-card)
999
+ .frontend-tabs-nav-wrap
1000
+ .frontend-tabs-tab {
1001
+ margin-right: 16px !important;
1002
+ margin-right: 16px !important;
1003
+ }
1004
+
1005
+ .frontend-tabs-top:not(.frontend-tabs-card)
1006
+ .frontend-tabs-nav-wrap
1007
+ .frontend-tabs-tab:not(:nth-child(1)) {
1008
+ margin-left: 14px !important;
1009
+ }
1010
+ .frontend-checkbox .frontend-checkbox-inner {
1011
+ border-radius: 0px !important;
1012
+ }
1013
+
1014
+ // .frontend-tabs-nav .frontend-tabs-nav-more {
1015
+ // padding: 0 !important;
1016
+ // margin: 9px 4px 9px 4px !important;
1017
+ // }
1018
+
1019
+ .hoverBg:hover {
1020
+ background: #0563b2 !important;
1021
+ }
1022
+
1023
+ .hoverBg {
1024
+ background: rgba(5, 99, 178, 0.6) !important;
1025
+ }
1026
+
1027
+ .frontend-spin-nested-loading > div > .frontend-spin {
1028
+ max-height: 100% !important;
1029
+ }
1030
+ .frontend-spin {
1031
+ color: #0563b2 !important;
1032
+ }
1033
+
1034
+ #imagecontainer {
1035
+ .frontend-image {
1036
+ display: none !important;
1037
+ }
1038
+ .frontend-image-preview-mask,
1039
+ .frontend-image-preview-mask,
1040
+ .frontend-image-preview-wrap {
1041
+ background: none !important;
1042
+ z-index: 9;
1043
+ position: absolute !important;
1044
+ // left: 48px !important;
1045
+ // margin: 64px 0px 0px 0px !important;
1046
+ }
1047
+ .frontend-image-preview-operations {
1048
+ display: none !important;
1049
+ }
1050
+ }
1051
+
1052
+ .page-2D-select .frontend-select-selection-item {
1053
+ padding: 0px !important;
1054
+ }
1055
+ .page-2D-select .frontend-select-item-option {
1056
+ padding: 0px !important;
1057
+ }
1058
+
1059
+ // 修改表单行高
1060
+ // .frontend-select-selector {
1061
+ // height: 30px !important;
1062
+ // min-height: 30px !important;
1063
+ // line-height: 30px !important;
1064
+ // }
1065
+
1066
+ // .frontend-select-selector{
1067
+ // height: 30px;
1068
+ // }
1069
+
1070
+ // 修改树形选择圆角为直角
1071
+ .frontend-select-tree-node-content-wrapper,
1072
+ .frontend-select-item {
1073
+ border-radius: 0px !important;
1074
+ }
1075
+
1076
+ .ahooks-page-fullscreen {
1077
+ background: #fff;
1078
+ }
1079
+
1080
+ .gantt_tooltip {
1081
+ z-index: 1000 !important;
1082
+ }
1083
+
1084
+ .frontend-image-placeholder {
1085
+ display: flex;
1086
+ align-items: center;
1087
+ justify-content: center;
1088
+ }
1089
+
1090
+ .icon-hover:hover {
1091
+ color: "#0563B2" !important;
1092
+ }
1093
+
1094
+ .frontend-table-cell .anticon.expand {
1095
+ display: inline-block !important;
1096
+ }
1097
+
1098
+ .pirmary_btn.frontend-btn {
1099
+ background: #e8effe;
1100
+ color: #195ef8;
1101
+ font-size: 14px;
1102
+ border: none;
1103
+ &:hover,
1104
+ &:focus {
1105
+ border: none;
1106
+ background: #195ef8;
1107
+ color: #fff;
1108
+ }
1109
+ }
1110
+
1111
+ .shareModal {
1112
+ .ant-modal-header {
1113
+ display: none;
1114
+ }
1115
+ .ant-modal-close-icon {
1116
+ display: none;
1117
+ }
1118
+ .frontend-modal-title {
1119
+ display: none;
1120
+ }
1121
+ .frontend-modal-close {
1122
+ display: none;
1123
+ }
1124
+ }
1125
+
1126
+ .global-attr-title {
1127
+ .frontend-form-item-row {
1128
+ > div.frontend-form-item-label {
1129
+ width: 100% !important;
1130
+ height: 32px;
1131
+ background-color: #f0f0f0;
1132
+ text-align: left;
1133
+ padding: 0 16px !important;
1134
+ > label {
1135
+ color: #000 !important;
1136
+ font-size: 13px;
1137
+ }
1138
+ & + * {
1139
+ visibility: hidden;
1140
+ user-select: none;
1141
+ }
1142
+ }
1143
+ }
1144
+ }