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,973 @@
1
+ @import "./assets/styles/antd.custom.less";
2
+
3
+ .frontend-select-dropdown,
4
+ .rc-virtual-list-scrollbar-thumb {
5
+ border-radius: 0 !important;
6
+ }
7
+
8
+ .micro-app-wrapper {
9
+ height: 100%;
10
+ }
11
+
12
+ table {
13
+ border-collapse: collapse !important;
14
+ }
15
+
16
+ // @font-face {
17
+ // font-family: PingFangSC, PingFangSC-Medium;
18
+ // src: url('https://github.com/zongren/font/blob/master/PingFang-SC-Regular.ttf');
19
+ // }
20
+
21
+ .compositeFormClass {
22
+ .frontend-input-number,
23
+ .frontend-space-compact {
24
+ height: 24px;
25
+ input {
26
+ height: 24px !important;
27
+ }
28
+ }
29
+ .frontend-select {
30
+ .frontend-select-selector {
31
+ height: 24px;
32
+ .frontend-select-selection-item {
33
+ line-height: 24px;
34
+ }
35
+ input {
36
+ height: 24px !important;
37
+ }
38
+ }
39
+ }
40
+ }
41
+
42
+ .dot {
43
+ width: 4px;
44
+ height: 4px;
45
+ border-radius: 50%;
46
+ background: @primary-color;
47
+ // box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
48
+ }
49
+
50
+ .dot_update {
51
+ width: 4px;
52
+ height: 4px;
53
+ border-radius: 50%;
54
+ background: @redline-color;
55
+ // box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
56
+ }
57
+
58
+ .react-resizable {
59
+ position: relative;
60
+ background-clip: padding-box;
61
+ }
62
+
63
+ .react-resizable-handle {
64
+ position: absolute;
65
+ right: -5px;
66
+ bottom: 0;
67
+ z-index: 1;
68
+ width: 10px;
69
+ height: 100%;
70
+ cursor: col-resize;
71
+ }
72
+
73
+ .react-resizable {
74
+ position: relative;
75
+ background-clip: padding-box;
76
+ }
77
+
78
+ .react-resizable-handle {
79
+ position: absolute;
80
+ width: 10px;
81
+ height: 100%;
82
+ bottom: 0;
83
+ right: -5px;
84
+ cursor: ew-resize;
85
+ z-index: 1;
86
+ }
87
+
88
+ /** 这里是偏移的时候显示的竖线,只有表头有竖线;
89
+ 联通表格修改高度,1000倍表头高度,超出表格隐藏*/
90
+ // .react-resizable-handle.active::before {
91
+ // content: '';
92
+ // position: absolute;
93
+ // left: 50%;
94
+ // top: 0;
95
+ // bottom: 0;
96
+ // border-left: 1px solid @primary-color;
97
+ // }
98
+
99
+ // 弹出框样式
100
+ .modalClassName {
101
+ .frontend-modal {
102
+ // width: 480px !important;
103
+
104
+ .frontend-modal-content {
105
+ border: 1px solid #0563b0;
106
+ box-shadow: none;
107
+
108
+ .frontend-modal-close {
109
+ top: 10px;
110
+ inset-inline-end: 10px;
111
+ }
112
+
113
+ .frontend-modal-close-x {
114
+ color: #fff;
115
+ opacity: 0.75;
116
+ // width: 50px;
117
+ // height: 50px;
118
+ // line-height: 50px;
119
+ }
120
+
121
+ .frontend-modal-header {
122
+ font-weight: 600;
123
+ background: #0563b0;
124
+ border-radius: 0;
125
+ padding: 0 12px;
126
+ border-bottom: none;
127
+
128
+ .frontend-modal-title {
129
+ color: #fff;
130
+ font-size: 13px;
131
+ height: 40px;
132
+ line-height: 40px;
133
+ // height: 50px;
134
+ // line-height: 50px;
135
+ }
136
+ }
137
+
138
+ .frontend-modal-footer {
139
+ background: #fafafa;
140
+ }
141
+
142
+ .frontend-input-number {
143
+ width: 100%;
144
+ }
145
+ }
146
+ }
147
+ }
148
+
149
+ input::placeholder {
150
+ color: #ccc !important;
151
+ font-size: 12px;
152
+ }
153
+
154
+ .frontend-table-column-required {
155
+ padding-left: 10px !important;
156
+ &::before {
157
+ content: "*" !important;
158
+ color: #ff4d4f !important;
159
+ font-size: 20px;
160
+ left: 0px;
161
+ font-weight: 400 !important;
162
+ top: -2px !important;
163
+ height: 0px !important;
164
+ // font-family: SimSun, sans-serif;
165
+ position: absolute;
166
+ }
167
+ }
168
+
169
+ .tool_bar_icon {
170
+ &:hover {
171
+ color: @primary-color !important;
172
+ }
173
+ }
174
+
175
+ .site-drawer-render-in-current-wrapper {
176
+ position: relative;
177
+ height: 100%;
178
+ width: 100%;
179
+ // height: 100%;
180
+ // width: 100%;
181
+ // // height: 200px;
182
+ // padding: 0px;
183
+ // overflow: hidden;
184
+ // text-align: center;
185
+ // background: #fafafa;
186
+ // border: 1px solid #ebedf0;
187
+ // border-radius: 2px;
188
+ }
189
+ .frontend-drawer-mask {
190
+ background-color: transparent !important;
191
+ }
192
+
193
+ // sping高度
194
+ .frontend-spin-nested-loading {
195
+ width: 100%;
196
+ height: 100% !important;
197
+
198
+ .frontend-spin-container {
199
+ width: 100%;
200
+ height: 100% !important;
201
+ }
202
+ }
203
+ .context-menu {
204
+ color: #333333;
205
+ padding: 2px 5px;
206
+ &:not(:last-child) {
207
+ border-bottom: 1px solid @sider-border;
208
+ }
209
+ cursor: pointer;
210
+ font-style: normal;
211
+ }
212
+ .red_line_add.readOnly {
213
+ color: #ff4d4f !important;
214
+ .frontend-select-selection-item {
215
+ color: #ff4d4f !important;
216
+ }
217
+ .frontend-tag {
218
+ color: #ff4d4f !important;
219
+ }
220
+ textarea {
221
+ color: #ff4d4f !important;
222
+ }
223
+ input {
224
+ color: #ff4d4f !important;
225
+ }
226
+ }
227
+
228
+ .red_line_del.readOnly.self {
229
+ text-decoration-line: line-through;
230
+ text-decoration-color: #ff4d4f;
231
+ }
232
+
233
+ .red_line_del.readOnly {
234
+ // text-decoration-line: line-through;
235
+ // text-decoration-color: #ff4d4f;
236
+ .frontend-select-selection-item {
237
+ text-decoration-line: line-through;
238
+ text-decoration-color: #ff4d4f;
239
+ }
240
+ textarea {
241
+ text-decoration-line: line-through;
242
+ text-decoration-color: #ff4d4f;
243
+ }
244
+ .mde-preview {
245
+ text-decoration-line: line-through;
246
+ text-decoration-color: #ff4d4f;
247
+ }
248
+ input {
249
+ text-decoration-line: line-through;
250
+ text-decoration-color: #ff4d4f;
251
+ }
252
+ }
253
+
254
+ .fav_col {
255
+ display: flex;
256
+ margin: 0px;
257
+ padding: 10px;
258
+ gap: 10px;
259
+ width: 84px;
260
+ flex-direction: column;
261
+
262
+ // &_row {
263
+ // flex-direction: row;
264
+ // }
265
+ // &_column {
266
+ // flex-direction: column;
267
+ // }
268
+ li {
269
+ display: flex;
270
+ align-items: center;
271
+ border-radius: 50%;
272
+ list-style: none;
273
+ width: 12px;
274
+ height: 12px;
275
+ cursor: pointer;
276
+ &:hover {
277
+ transform: scale(1.2);
278
+ }
279
+ }
280
+ }
281
+ .fav_item {
282
+ color: #666666;
283
+ font-size: 12px !important;
284
+ &:hover {
285
+ background-color: #ddeffe;
286
+ cursor: pointer;
287
+ transition: all 0.2s;
288
+ color: @primary-color;
289
+ }
290
+ }
291
+
292
+ .fav_item_disabled {
293
+ color: #666666;
294
+ opacity: 0.6;
295
+ font-size: 12px !important;
296
+ cursor: not-allowed !important;
297
+ }
298
+
299
+ .fav_col_radius {
300
+ width: 12px !important;
301
+ height: 12px !important;
302
+ border-radius: 50% !important;
303
+ }
304
+
305
+ .icon {
306
+ // width: 1em;
307
+ // height: 1em;
308
+ // vertical-align: -0.15em;
309
+ fill: currentColor;
310
+ overflow: hidden;
311
+ }
312
+
313
+ // 全局tooltip默认样式
314
+ .frontend-tooltip-inner {
315
+ background: #fff !important;
316
+ color: #333333 !important;
317
+ font-size: 12px !important;
318
+ }
319
+ .frontend-tooltip-arrow-content::before {
320
+ background: #fff !important;
321
+ }
322
+
323
+ .plm_confirm_modal {
324
+ // .frontend-modal-confirm .frontend-modal-body {
325
+ // padding: 0px !important;
326
+ // }
327
+ }
328
+ .multi-check {
329
+ :global {
330
+ .frontend-select:not(.frontend-select-customize-input)
331
+ .frontend-select-selector {
332
+ height: 180px !important;
333
+ }
334
+ .frontend-select-selector {
335
+ height: 180px !important;
336
+ }
337
+ .frontend-select:not(.frontend-select-customize-input)
338
+ .frontend-select-selector {
339
+ overflow: scroll;
340
+ }
341
+ }
342
+ .frontend-select-selector {
343
+ height: 170px !important;
344
+ align-items: flex-start !important;
345
+ overflow-y: auto !important;
346
+ }
347
+ }
348
+
349
+ .leftPopover.frontend-popover-placement-left {
350
+ width: 82px;
351
+ padding: 0px !important;
352
+ }
353
+ .leftPopoverCreateChange {
354
+ .frontend-popover-inner {
355
+ padding: 0px !important;
356
+ }
357
+ }
358
+ .leftPopover {
359
+ .frontend-popover-inner {
360
+ padding: 0px !important;
361
+ }
362
+ }
363
+ .leftPopoverCreateChange.frontend-popover-placement-left {
364
+ width: 82px;
365
+ left: -88px !important;
366
+ padding: 0px !important;
367
+ }
368
+
369
+ .selectItem {
370
+ font-size: 12px !important;
371
+ height: 22px;
372
+ cursor: pointer;
373
+ padding: 0px 4px;
374
+ display: flex;
375
+ align-items: center;
376
+ &:hover {
377
+ background-color: #ddeffe;
378
+ color: @primary-color;
379
+ }
380
+ }
381
+ .menu_text {
382
+ padding: 2px 4px;
383
+ &:hover {
384
+ text-decoration: underline;
385
+ // background: #ddeffe;
386
+ color: @primary-color;
387
+ cursor: pointer;
388
+ transition: background 0.3s;
389
+ }
390
+ }
391
+
392
+ .sk-cube-container {
393
+ // left: calc(50% - 109px);
394
+ // top: calc(50% - 71px);
395
+ // position: absolute;
396
+ // height: 142px;
397
+ // width: 218px;
398
+ // background: #fff;
399
+ // display: flex;
400
+ // align-items: center;
401
+ // justify-content: center;
402
+ // border-radius: 3px;
403
+ // box-shadow: 0px 2px 7px 0px rgba(68, 68, 69, 0.1);
404
+ // flex-direction: column;
405
+ }
406
+
407
+ .sk-cube-container {
408
+ left: calc(50% - 109px);
409
+ top: calc(50% - 71px);
410
+ position: absolute;
411
+ height: 142px;
412
+ width: 218px;
413
+ background: #fff;
414
+ display: flex;
415
+ align-items: center;
416
+ justify-content: center;
417
+ border-radius: 3px;
418
+ box-shadow: 0px 2px 7px 0px rgba(68, 68, 69, 0.1);
419
+ flex-direction: column;
420
+ }
421
+
422
+ .sk-cube-grid {
423
+ width: 65px;
424
+ height: 65px;
425
+ /* margin: 100px auto; */
426
+ /* left: calc(50% - 20px);
427
+ top: calc(50% - 20px);
428
+ position: absolute; */
429
+ }
430
+
431
+ .sk-cube-grid .sk-cube {
432
+ width: 33%;
433
+ height: 33%;
434
+ background-color: #fff;
435
+ float: left;
436
+ -webkit-animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
437
+ animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
438
+ }
439
+ .sk-cube-grid .sk-cube1 {
440
+ -webkit-animation-delay: 0.2s;
441
+ animation-delay: 0.2s;
442
+ background-color: #e8effe !important;
443
+ }
444
+ .sk-cube-grid .sk-cube2 {
445
+ -webkit-animation-delay: 0.3s;
446
+ animation-delay: 0.3s;
447
+ background: #89a2db !important;
448
+ }
449
+ .sk-cube-grid .sk-cube3 {
450
+ -webkit-animation-delay: 0.4s;
451
+ animation-delay: 0.4s;
452
+ background: #0563b2 !important;
453
+ }
454
+ .sk-cube-grid .sk-cube4 {
455
+ -webkit-animation-delay: 0.1s;
456
+ animation-delay: 0.1s;
457
+ background-color: #e8effe !important;
458
+ }
459
+ .sk-cube-grid .sk-cube5 {
460
+ -webkit-animation-delay: 0.2s;
461
+ animation-delay: 0.2s;
462
+ background-color: #e8effe !important;
463
+ }
464
+ .sk-cube-grid .sk-cube6 {
465
+ -webkit-animation-delay: 0.3s;
466
+ animation-delay: 0.3s;
467
+ background: #89a2db !important;
468
+ }
469
+ .sk-cube-grid .sk-cube7 {
470
+ -webkit-animation-delay: 0s;
471
+ animation-delay: 0s;
472
+ background-color: #e8effe !important;
473
+ }
474
+ .sk-cube-grid .sk-cube8 {
475
+ -webkit-animation-delay: 0.1s;
476
+ animation-delay: 0.1s;
477
+ background-color: #e8effe !important;
478
+ }
479
+ .sk-cube-grid .sk-cube9 {
480
+ -webkit-animation-delay: 0.2s;
481
+ animation-delay: 0.2s;
482
+ background-color: #e8effe !important;
483
+ }
484
+ .sk-cube10 {
485
+ line-height: 15px !important;
486
+ font-size: 15px !important;
487
+ font-weight: 400 !important;
488
+ color: #6c81b1;
489
+ padding-top: 10px;
490
+ }
491
+
492
+ @-webkit-keyframes sk-cubeGridScaleDelay {
493
+ 0%,
494
+ 70%,
495
+ 100% {
496
+ -webkit-transform: scale3D(1, 1, 1);
497
+ transform: scale3D(1, 1, 1);
498
+ }
499
+ 35% {
500
+ -webkit-transform: scale3D(0, 0, 1);
501
+ transform: scale3D(0, 0, 1);
502
+ }
503
+ }
504
+
505
+ @keyframes sk-cubeGridScaleDelay {
506
+ 0%,
507
+ 70%,
508
+ 100% {
509
+ -webkit-transform: scale3D(1, 1, 1);
510
+ transform: scale3D(1, 1, 1);
511
+ }
512
+ 35% {
513
+ -webkit-transform: scale3D(0, 0, 1);
514
+ transform: scale3D(0, 0, 1);
515
+ }
516
+ }
517
+
518
+ .rotate {
519
+ animation: spin 2s linear infinite;
520
+ color: @primary-color;
521
+ }
522
+
523
+ .ria_frontend_notify:not(.frontend-notification-fade-leave):not(
524
+ .frontend-notification-fade-leave-active
525
+ ) {
526
+ animation: slide-up 0.2s ease-in-out !important;
527
+ }
528
+
529
+ @keyframes spin {
530
+ from {
531
+ transform: rotate(0deg);
532
+ }
533
+ to {
534
+ transform: rotate(360deg);
535
+ transition: all 3s;
536
+ }
537
+ }
538
+
539
+ @keyframes slide-up {
540
+ 0% {
541
+ opacity: 0;
542
+ transform: translateY(100%);
543
+ }
544
+ 100% {
545
+ opacity: 1;
546
+ transform: translateY(0);
547
+ }
548
+ }
549
+
550
+ .Resizer {
551
+ background: #e4e4e4;
552
+ // opacity: 0.2;
553
+ z-index: 1;
554
+ -moz-box-sizing: border-box;
555
+ -webkit-box-sizing: border-box;
556
+ box-sizing: border-box;
557
+ -moz-background-clip: padding;
558
+ -webkit-background-clip: padding;
559
+ background-clip: padding-box;
560
+ }
561
+
562
+ .Resizer:hover {
563
+ -webkit-transition: all 2s ease;
564
+ transition: all 2s ease;
565
+ opacity: 0.2;
566
+ }
567
+
568
+ .Resizer.horizontal {
569
+ // height: 11px;
570
+ margin: -5px 0;
571
+ border-top: 5px solid rgba(255, 255, 255, 0);
572
+ border-bottom: 5px solid rgba(255, 255, 255, 0);
573
+ cursor: row-resize;
574
+ width: 100%;
575
+ }
576
+
577
+ // .Resizer.horizontal:hover {
578
+ // border-top: 5px solid rgba(0, 0, 0, 0.5);
579
+ // border-bottom: 5px solid rgba(0, 0, 0, 0.5);
580
+ // }
581
+
582
+ .Resizer.vertical {
583
+ width: 11px;
584
+ margin: 0 -5px;
585
+ border-left: 5px solid rgba(255, 255, 255, 0);
586
+ border-right: 5px solid rgba(255, 255, 255, 0);
587
+ cursor: col-resize;
588
+ }
589
+
590
+ // .Resizer.vertical:hover {
591
+ // border-left: 5px solid rgba(0, 0, 0, 0.5);
592
+ // border-right: 5px solid rgba(0, 0, 0, 0.5);
593
+ // }
594
+ .Resizer.disabled {
595
+ cursor: not-allowed;
596
+ }
597
+ .Resizer.disabled:hover {
598
+ border-color: transparent;
599
+ }
600
+
601
+ .form_item_span {
602
+ color: #2c3652;
603
+ background-color: #fff !important;
604
+ cursor: auto !important;
605
+ border: 1px solid transparent !important;
606
+ font-size: 12px;
607
+ text-overflow: ellipsis;
608
+ overflow: hidden;
609
+ }
610
+
611
+ .healthTitle {
612
+ vertical-align: middle;
613
+ }
614
+
615
+ .tool_hide {
616
+ visibility: hidden;
617
+ }
618
+
619
+ #main_3d {
620
+ position: relative;
621
+ display: flex;
622
+ .view_main_3d {
623
+ height: 100% !important;
624
+ width: 100% !important;
625
+ }
626
+ .onChain_toolbar {
627
+ position: absolute;
628
+ bottom: 20px;
629
+ // width: 282px;
630
+ padding: 16px 25px;
631
+ border: 1px solid #e3ebf6;
632
+ border-radius: 4px;
633
+ box-shadow: 0px 2px 7px 0px rgba(29, 53, 72, 0.08);
634
+ background: #ffffff;
635
+ margin: 0 auto;
636
+ left: 50%;
637
+ height: 48px;
638
+ transform: translateX(-50%) !important;
639
+ gap: 20px;
640
+ display: flex;
641
+ }
642
+ .main_3d_navcube {
643
+ position: absolute;
644
+ right: 0px;
645
+ top: 0px;
646
+ // width: 152px !important;
647
+ // height: 152px !important;
648
+ }
649
+ }
650
+ .onchain3DTree.frontend-tree
651
+ .frontend-tree-node-content-wrapper.frontend-tree-node-selected {
652
+ background-color: #ddeffe;
653
+ border-radius: 0px;
654
+ }
655
+ .onchain3DTree.frontend-tree .frontend-tree-node-content-wrapper:hover {
656
+ background-color: #ddeffe;
657
+ border-radius: 0px;
658
+ }
659
+ .onchain3DTree.frontend-tree .frontend-tree-switcher {
660
+ width: 12px;
661
+ }
662
+ .onchain3DTree .frontend-tree-list {
663
+ height: 100%;
664
+ padding: 20px 11px 0px 11px;
665
+ overflow-y: auto;
666
+ }
667
+
668
+ .onchain3DTree .frontend-tree-indent-unit {
669
+ width: 8px !important;
670
+ }
671
+ .onchain3DTree .frontend-tree-node-content-wrapper {
672
+ overflow: hidden;
673
+ text-overflow: ellipsis;
674
+ }
675
+ .onchain3DTree .frontend-tree-node-content-wrapper {
676
+ padding: 0 14px 0px 4px !important;
677
+ }
678
+ .thumb_3d .onchain3DTree .frontend-tree-node-content-wrapper {
679
+ padding: 0 8px 0px 4px !important;
680
+ }
681
+ .onchain3DTree .frontend-tree-title:hover {
682
+ .tool_hide {
683
+ visibility: visible;
684
+ }
685
+ }
686
+ .onchain3DTree .frontend-tree-list-holder::-webkit-scrollbar {
687
+ height: 0px !important;
688
+ width: 0px !important;
689
+ }
690
+
691
+ // .onchain3DTree .frontend-tree-list-holder{
692
+ // padding: 12px 10px 0px 16px;
693
+ // }
694
+ .onchain3DTree .frontend-tree-list-scrollbar-thumb {
695
+ // height: 6px !important;
696
+ background: #e0e0e0 !important;
697
+ width: 0px !important;
698
+ border-radius: 0 !important;
699
+ box-shadow: 0 !important;
700
+ padding: 0px !important;
701
+ // ::-webkit-scrollbar-thumb {
702
+ // // border-radius: 3px;
703
+ // background: #e0e0e0 !important;
704
+ // }
705
+ // ::-webkit-scrollbar-track {
706
+ // &:horizontal {
707
+ // // border-right: 1px solid @sider-border;
708
+ // // border-top: 1px solid @sider-border;
709
+ // }
710
+ // &:vertical {
711
+ // // border-bottom: 1px solid @sider-border;
712
+ // // border-left: 1px solid @sider-border;
713
+ // }
714
+ // padding: 2px !important;
715
+ // box-shadow: 0 !important;
716
+ // border-radius: 0 !important;
717
+ // }
718
+ }
719
+ // .onchain3DTree .frontend-tree-node-selected > span > div {
720
+ // }
721
+ // .onchain3DTree .frontend-tree-node-content-wrapper{
722
+ // background: #ddeffe !important;
723
+ // }
724
+ .onchain3DTree .frontend-tree-node-content-wrapper.frontend-tree-node-selected {
725
+ background: #ddeffe !important;
726
+ }
727
+ .onchain3DTreeTitle {
728
+ display: flex;
729
+ height: 62px;
730
+ font-size: 15px;
731
+ font-family: PingFangSC, PingFangSC-Medium;
732
+ font-weight: 500;
733
+ color: #1d2c48;
734
+ line-height: 18px;
735
+ align-items: center;
736
+ border-bottom: 1px solid #e2eaf5;
737
+ margin: 0px 20px;
738
+ padding: 0px 0px 0px 12px;
739
+ }
740
+ .onchain3DTree .frontend-tree-node-selected .frontend-tree-title {
741
+ color: #0563b2;
742
+ }
743
+ .onchain3DTreeTool {
744
+ display: flex;
745
+ height: 48px;
746
+ border-bottom: 1px solid #e2eaf5;
747
+ margin: 0px 15px 0px 15px;
748
+ justify-content: space-between;
749
+ padding: 0px 0px 0px 0px;
750
+ }
751
+
752
+ .ov_measure_panel {
753
+ padding: 6px 15px;
754
+ position: absolute;
755
+ border-radius: 0px;
756
+ background-color: #fff;
757
+ }
758
+
759
+ .onchain3d_slider {
760
+ display: flex;
761
+ align-items: center;
762
+ gap: 5px;
763
+ :global {
764
+ .frontend-slider-track {
765
+ background-color: #0563b2 !important;
766
+ }
767
+ .frontend-slider-handle::after {
768
+ box-shadow: 0 0 0 2px #0563b2 !important;
769
+ }
770
+ }
771
+ }
772
+
773
+ .Viewer-2d {
774
+ z-index: 1;
775
+ .PDFViewer {
776
+ scrollbar-width: auto !important;
777
+ scrollbar-color: auto !important;
778
+ }
779
+ .frontend-dropdown {
780
+ top: -60px !important;
781
+ }
782
+ :global {
783
+ .frontend-dropdown {
784
+ top: -60px !important;
785
+ }
786
+ }
787
+ ::-webkit-scrollbar {
788
+ height: 10px;
789
+ width: 10px;
790
+ }
791
+ ::-webkit-scrollbar-thumb {
792
+ // border-radius: 3px;
793
+ background: #e0e0e0;
794
+ }
795
+ ::-webkit-scrollbar-track {
796
+ &:horizontal {
797
+ // border-right: 1px solid @sider-border;
798
+ // border-top: 1px solid @sider-border;
799
+ }
800
+ &:vertical {
801
+ // border-bottom: 1px solid @sider-border;
802
+ // border-left: 1px solid @sider-border;
803
+ }
804
+ padding: 2px;
805
+ box-shadow: 0;
806
+ border-radius: 0;
807
+ }
808
+ // padding-bottom: 10px;
809
+ .onChain_toolbar {
810
+ white-space: nowrap;
811
+ position: absolute;
812
+ bottom: 20px;
813
+ // width: 434px;
814
+ padding: 0px 25px;
815
+ border: 1px solid #e3ebf6;
816
+ border-radius: 4px;
817
+ box-shadow: 0px 2px 7px 0px rgba(29, 53, 72, 0.08);
818
+ background: #ffffff;
819
+ margin: 0 auto;
820
+ left: 50%;
821
+ height: 48px;
822
+ line-height: 48px;
823
+ transform: translateX(-50%) !important;
824
+ gap: 20px;
825
+ display: flex;
826
+ z-index: 999;
827
+ .frontend-select-selector {
828
+ font-size: 12px !important;
829
+ }
830
+ .page-2D-select .frontend-select-selection-item {
831
+ text-align: center;
832
+ }
833
+ .page-2D-select input {
834
+ text-align: center;
835
+ }
836
+ }
837
+
838
+ .banEdit .lower-canvas {
839
+ z-index: 9;
840
+ }
841
+
842
+ .onChain_toolbar {
843
+ opacity: 1;
844
+ transition: opacity 0.5s;
845
+ }
846
+
847
+ .onChain_toolbar:hover {
848
+ opacity: 1 !important;
849
+ }
850
+
851
+ .onChain_toolbar.hidden {
852
+ opacity: 0;
853
+ }
854
+
855
+ #libTooltip {
856
+ display: none !important;
857
+ }
858
+ .content_editable:empty:before {
859
+ content: "请输入批注内容";
860
+ font-size: 12px;
861
+ color: #6c81b1;
862
+ }
863
+ .content_editable:focus:before {
864
+ content: "";
865
+ }
866
+ }
867
+
868
+ .mde-preview-content img {
869
+ width: 100%;
870
+ }
871
+ .side_browse {
872
+ border-right: 3px solid #e0e0e0;
873
+ width: 300px;
874
+ }
875
+
876
+ .headTabs {
877
+ padding: 0px 12px;
878
+ display: flex;
879
+ align-items: center;
880
+ background-color: #fff;
881
+ border-bottom: 1px solid @sider-border;
882
+ height: 50px !important;
883
+ .frontend-tabs {
884
+ height: 50px;
885
+ }
886
+ .frontend-tabs-tab {
887
+ padding: 13px 0 15px 0px;
888
+ }
889
+ .frontend-tabs-tab-btn {
890
+ font-size: 13px;
891
+ font-weight: 400;
892
+ }
893
+ .frontend-tabs-tab + .frontend-tabs-tab {
894
+ margin: 0 0 0 24px;
895
+ }
896
+ .frontend-tabs-top > .frontend-tabs-nav::before,
897
+ .frontend-tabs-bottom > .frontend-tabs-nav::before,
898
+ .frontend-tabs-top > div > .frontend-tabs-nav::before,
899
+ .frontend-tabs-bottom > div > .frontend-tabs-nav::before {
900
+ border-bottom: none;
901
+ }
902
+ }
903
+ // #annotate_list {
904
+ // width: 0px !important;
905
+ // overflow: hidden !important;
906
+ // }
907
+
908
+ // #pdf_scroll_warpper {
909
+ // width: 100% !important;
910
+ // }
911
+
912
+ #annotate_list {
913
+ padding: 0px 10px 12px 0px !important;
914
+ overflow: hidden !important;
915
+ }
916
+ #annotate_scroll_list {
917
+ width: 100%;
918
+ }
919
+
920
+ .PDFViewer-viewer-Document .PDFPage {
921
+ box-shadow: 0px 2px 12px 0px rgba(29, 53, 72, 0.08);
922
+ }
923
+
924
+ textarea {
925
+ outline: none !important;
926
+ }
927
+
928
+ .noBeforeAfter {
929
+ &::before {
930
+ display: none;
931
+ }
932
+ &::after {
933
+ display: none;
934
+ }
935
+ }
936
+
937
+ .luckysheet-scrollbar-y,
938
+ .luckysheet-scrollbar-x {
939
+ z-index: 1 !important;
940
+ }
941
+
942
+ #luckysheet-sheets-leftscroll,
943
+ #luckysheet-sheets-rightscroll {
944
+ display: none !important;
945
+ }
946
+
947
+ .luckysheet-sheet-area div.luckysheet-sheets-item .luckysheet-sheets-item-menu {
948
+ display: none !important;
949
+ }
950
+
951
+ .testasc {
952
+ .frontend-modal-body {
953
+ padding: 12px !important;
954
+ }
955
+ .frontend-modal-confirm-btns {
956
+ // margin-bottom: 0px !important;
957
+ margin-top: 0px !important;
958
+ }
959
+ }
960
+
961
+ .menu_resizer {
962
+ width: 100%;
963
+ height: 4px;
964
+ position: absolute;
965
+ bottom: 0px;
966
+ left: 0;
967
+ background: #0563b0;
968
+ cursor: row-resize;
969
+ }
970
+
971
+ .ͼ2 .cm-panels-bottom {
972
+ display: none !important;
973
+ }