@opendesign-plus-test/components 0.0.1-rc.42 → 0.0.1-rc.45
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.
- package/dist/chunk-OElCookieNotice.cjs.js +1 -1
- package/dist/chunk-OElCookieNotice.es.js +132 -112
- package/dist/components/OHeaderSearch.vue.d.ts +824 -506
- package/dist/components/OSourceCode.vue.d.ts +4 -6
- package/dist/components/activity/OActivityApproval.vue.d.ts +6 -10
- package/dist/components/activity/OActivityForm.vue.d.ts +3 -5
- package/dist/components/activity/OMyActivityCalendar.vue.d.ts +100 -46
- package/dist/components/activity/index.d.ts +56 -33
- package/dist/components/activity/types.d.ts +8 -1
- package/dist/components/events/config.d.ts +5 -18
- package/dist/components/events/types.d.ts +4 -1
- package/dist/components/header/OHeaderMobile.vue.d.ts +18 -11
- package/dist/components/header/components/HeaderNavMobile.vue.d.ts +4 -1
- package/dist/components/header/index.d.ts +12 -5
- package/dist/components/header/types.d.ts +4 -0
- package/dist/components/meeting/OMeetingCalendar.vue.d.ts +8 -12
- package/dist/components/meeting/OMeetingForm.vue.d.ts +3 -5
- package/dist/components/meeting/OMeetingPlayback.vue.d.ts +45 -0
- package/dist/components/meeting/OMyMeetingCalendar.vue.d.ts +100 -46
- package/dist/components/meeting/components/OMeetingCalendarList.vue.d.ts +1 -1
- package/dist/components/meeting/index.d.ts +817 -0
- package/dist/components/meeting/types.d.ts +82 -17
- package/dist/components/meeting/utils.d.ts +1 -1
- package/dist/components/search/OSearchInput.vue.d.ts +1003 -0
- package/dist/components/search/composables/useImageSearch.d.ts +48 -0
- package/dist/components/search/composables/useKeywordHighlight.d.ts +2 -0
- package/dist/components/search/composables/useSearchHistory.d.ts +14 -0
- package/dist/components/search/index.d.ts +590 -0
- package/dist/components/search/internal/HighlightText.vue.d.ts +9 -0
- package/dist/components/search/internal/SearchImageInput.vue.d.ts +716 -0
- package/dist/components/search/internal/SearchPanel.vue.d.ts +100 -0
- package/dist/components/search/types.d.ts +20 -0
- package/dist/components.cjs.js +43 -43
- package/dist/components.css +1 -1
- package/dist/components.es.js +11681 -10636
- package/dist/index.d.ts +1 -0
- package/package.json +3 -3
- package/src/assets/svg-icons/icon-delete-hover.svg +4 -0
- package/src/assets/svg-icons/icon-delete.svg +5 -1
- package/src/assets/svg-icons/icon-image-close.svg +4 -0
- package/src/assets/svg-icons/icon-image-upload.svg +3 -0
- package/src/assets/svg-icons/icon-image-zoomin.svg +3 -0
- package/src/assets/svg-icons/icon-refresh.svg +3 -0
- package/src/components/OBanner.vue +18 -18
- package/src/components/OCookieNotice.vue +21 -21
- package/src/components/OFooter.vue +18 -17
- package/src/components/OHeaderSearch.vue +402 -420
- package/src/components/OHeaderUser.vue +3 -2
- package/src/components/OSection.vue +4 -4
- package/src/components/OSourceCode.vue +8 -10
- package/src/components/activity/OActivityApproval.vue +32 -32
- package/src/components/activity/OActivityForm.vue +5 -5
- package/src/components/activity/OMyActivityCalendar.vue +66 -50
- package/src/components/activity/config.ts +1 -1
- package/src/components/activity/types.ts +8 -1
- package/src/components/common/ContentWrapper.vue +3 -3
- package/src/components/common/MoreText.vue +1 -1
- package/src/components/common/ThFilter.vue +7 -7
- package/src/components/element-plus/OElCookieNotice.vue +27 -27
- package/src/components/events/OEventsApply.vue +44 -44
- package/src/components/events/OEventsCalendar.vue +14 -14
- package/src/components/events/OEventsList.vue +53 -26
- package/src/components/events/config.ts +1 -1
- package/src/components/events/types.ts +4 -1
- package/src/components/header/OHeader.vue +2 -2
- package/src/components/header/OHeaderMobile.vue +8 -1
- package/src/components/header/components/HeaderContent.vue +67 -63
- package/src/components/header/components/HeaderNav.vue +4 -4
- package/src/components/header/components/HeaderNavMobile.vue +8 -5
- package/src/components/header/types.ts +4 -0
- package/src/components/meeting/OMeetingCalendar.vue +66 -54
- package/src/components/meeting/OMeetingForm.vue +70 -51
- package/src/components/meeting/OMeetingPlayback.vue +8 -8
- package/src/components/meeting/OMyMeetingCalendar.vue +56 -45
- package/src/components/meeting/OSigMeetingCalendar.vue +31 -28
- package/src/components/meeting/components/OMeetingCalendarList.vue +31 -26
- package/src/components/meeting/components/OMeetingCalendarSelector.vue +10 -6
- package/src/components/meeting/components/OMeetingDetail.vue +32 -18
- package/src/components/meeting/components/OMeetingPlaybackSubtitles.vue +1 -1
- package/src/components/meeting/components/OMeetingPlaybackVideo.vue +12 -12
- package/src/components/meeting/components/OSigMeetingAside.vue +8 -9
- package/src/components/meeting/types.ts +88 -17
- package/src/components/search/OSearchInput.vue +463 -0
- package/src/components/search/composables/useImageSearch.ts +157 -0
- package/src/components/search/composables/useKeywordHighlight.ts +30 -0
- package/src/components/search/composables/useSearchHistory.ts +75 -0
- package/src/components/search/index.ts +23 -0
- package/src/components/search/internal/HighlightText.vue +37 -0
- package/src/components/search/internal/SearchImageInput.vue +488 -0
- package/src/components/search/internal/SearchPanel.vue +430 -0
- package/src/components/search/types.ts +25 -0
- package/src/draft/Banner.vue +6 -6
- package/src/draft/ButtonCards.vue +1 -1
- package/src/draft/Feature.vue +6 -6
- package/src/draft/Footer.vue +29 -22
- package/src/draft/HorizontalAnchor.vue +4 -4
- package/src/draft/ItemSwiper.vue +2 -2
- package/src/draft/Logo.vue +3 -3
- package/src/draft/LogoCard.vue +2 -2
- package/src/draft/MultiCard.vue +1 -1
- package/src/draft/MultiIconCard.vue +1 -1
- package/src/draft/OInfoCard.vue +4 -4
- package/src/draft/Section.vue +4 -4
- package/src/draft/SingleTabCard.vue +1 -1
- package/src/draft/SliderCard.vue +4 -3
- package/src/i18n/en.ts +10 -0
- package/src/i18n/zh.ts +10 -0
- package/src/index.ts +1 -0
- package/vite.config.ts +4 -3
|
@@ -33,8 +33,11 @@ const onMouseLeave = () => {
|
|
|
33
33
|
|
|
34
34
|
const showDesc = ref(false);
|
|
35
35
|
const descMouseenter = (e: MouseEvent) => {
|
|
36
|
-
if (!e || !e.target)
|
|
37
|
-
|
|
36
|
+
if (!e || !e.target) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const target = e.target as HTMLElement;
|
|
40
|
+
showDesc.value = target!.clientHeight < target.scrollHeight;
|
|
38
41
|
};
|
|
39
42
|
|
|
40
43
|
const onClickNavHref = (item: any, sub: any) => {
|
|
@@ -95,7 +98,8 @@ const onClickShortcut = (item: any) => {
|
|
|
95
98
|
<OTag v-if="subItem.tag" round="pill" color="danger" size="small" class="content-tag">{{ subItem.tag }}</OTag>
|
|
96
99
|
</a>
|
|
97
100
|
<div v-if="subItem.description" class="desc-container">
|
|
98
|
-
<p class="item-desc" :title="showDesc ? subItem.description :
|
|
101
|
+
<p class="item-desc" :title="showDesc ? subItem.description : undefined"
|
|
102
|
+
@mouseenter="descMouseenter($event)">
|
|
99
103
|
{{ subItem.description }}
|
|
100
104
|
</p>
|
|
101
105
|
</div>
|
|
@@ -164,7 +168,7 @@ const onClickShortcut = (item: any) => {
|
|
|
164
168
|
overflow-y: auto;
|
|
165
169
|
white-space: nowrap;
|
|
166
170
|
|
|
167
|
-
@include respond
|
|
171
|
+
@include respond('<=pad_v') {
|
|
168
172
|
--scroller-padding: 0 var(--layout-content-padding);
|
|
169
173
|
}
|
|
170
174
|
|
|
@@ -194,11 +198,11 @@ const onClickShortcut = (item: any) => {
|
|
|
194
198
|
.content-item {
|
|
195
199
|
width: 200px;
|
|
196
200
|
margin-top: 24px;
|
|
197
|
-
@include respond
|
|
201
|
+
@include respond('laptop') {
|
|
198
202
|
width: 170px;
|
|
199
203
|
margin-top: 16px;
|
|
200
204
|
}
|
|
201
|
-
@include respond
|
|
205
|
+
@include respond('pad_h') {
|
|
202
206
|
width: 132px;
|
|
203
207
|
margin-top: 12px;
|
|
204
208
|
}
|
|
@@ -220,14 +224,14 @@ const onClickShortcut = (item: any) => {
|
|
|
220
224
|
.o-icon {
|
|
221
225
|
--icon-size: 24px;
|
|
222
226
|
margin-left: var(--o-gap-2);
|
|
223
|
-
@include respond
|
|
227
|
+
@include respond('<=laptop') {
|
|
224
228
|
--icon-size: 16px;
|
|
225
229
|
}
|
|
226
230
|
}
|
|
227
231
|
.content-tag {
|
|
228
232
|
margin-left: var(--o-gap-2);
|
|
229
233
|
--layout-pkg-radius: var(--o-radius-xs);
|
|
230
|
-
@include respond
|
|
234
|
+
@include respond('<=laptop') {
|
|
231
235
|
display: none;
|
|
232
236
|
}
|
|
233
237
|
}
|
|
@@ -252,7 +256,7 @@ const onClickShortcut = (item: any) => {
|
|
|
252
256
|
margin: 0 16px;
|
|
253
257
|
flex-shrink: 0;
|
|
254
258
|
|
|
255
|
-
@include respond
|
|
259
|
+
@include respond('<=pad') {
|
|
256
260
|
display: none;
|
|
257
261
|
}
|
|
258
262
|
}
|
|
@@ -260,15 +264,15 @@ const onClickShortcut = (item: any) => {
|
|
|
260
264
|
width: 342px;
|
|
261
265
|
padding: 32px 0;
|
|
262
266
|
flex-shrink: 0;
|
|
263
|
-
@include respond
|
|
267
|
+
@include respond('laptop') {
|
|
264
268
|
width: 240px;
|
|
265
269
|
}
|
|
266
270
|
|
|
267
|
-
@include respond
|
|
271
|
+
@include respond('pad_h') {
|
|
268
272
|
width: 240px;
|
|
269
273
|
}
|
|
270
274
|
|
|
271
|
-
@include respond
|
|
275
|
+
@include respond('<=pad') {
|
|
272
276
|
display: none;
|
|
273
277
|
}
|
|
274
278
|
|
|
@@ -283,11 +287,11 @@ const onClickShortcut = (item: any) => {
|
|
|
283
287
|
cursor: pointer;
|
|
284
288
|
@include tip1;
|
|
285
289
|
|
|
286
|
-
@include respond
|
|
290
|
+
@include respond('laptop') {
|
|
287
291
|
@include text1;
|
|
288
292
|
}
|
|
289
293
|
|
|
290
|
-
@include respond
|
|
294
|
+
@include respond('pad_h') {
|
|
291
295
|
@include text1;
|
|
292
296
|
}
|
|
293
297
|
|
|
@@ -325,7 +329,7 @@ const onClickShortcut = (item: any) => {
|
|
|
325
329
|
text-decoration: none;
|
|
326
330
|
}
|
|
327
331
|
|
|
328
|
-
@include respond
|
|
332
|
+
@include respond('pad_h') {
|
|
329
333
|
&:not(:last-child) {
|
|
330
334
|
&:after {
|
|
331
335
|
content: '';
|
|
@@ -349,7 +353,7 @@ const onClickShortcut = (item: any) => {
|
|
|
349
353
|
display: block;
|
|
350
354
|
object-fit: contain;
|
|
351
355
|
|
|
352
|
-
@include respond
|
|
356
|
+
@include respond('<=laptop') {
|
|
353
357
|
display: none;
|
|
354
358
|
}
|
|
355
359
|
}
|
|
@@ -363,7 +367,7 @@ const onClickShortcut = (item: any) => {
|
|
|
363
367
|
justify-content: space-between;
|
|
364
368
|
white-space: normal;
|
|
365
369
|
|
|
366
|
-
@include respond
|
|
370
|
+
@include respond('<=laptop') {
|
|
367
371
|
margin-left: unset;
|
|
368
372
|
height: auto;
|
|
369
373
|
}
|
|
@@ -380,7 +384,7 @@ const onClickShortcut = (item: any) => {
|
|
|
380
384
|
@include hover {
|
|
381
385
|
color: var(--o-color-primary1);
|
|
382
386
|
}
|
|
383
|
-
@include respond
|
|
387
|
+
@include respond('pad_v-laptop') {
|
|
384
388
|
max-height: 44px;
|
|
385
389
|
}
|
|
386
390
|
}
|
|
@@ -405,7 +409,7 @@ const onClickShortcut = (item: any) => {
|
|
|
405
409
|
background-size: cover;
|
|
406
410
|
z-index: -1;
|
|
407
411
|
|
|
408
|
-
@include respond
|
|
412
|
+
@include respond('<=laptop') {
|
|
409
413
|
display: none;
|
|
410
414
|
}
|
|
411
415
|
}
|
|
@@ -418,7 +422,7 @@ const onClickShortcut = (item: any) => {
|
|
|
418
422
|
background-size: cover;
|
|
419
423
|
z-index: -1;
|
|
420
424
|
|
|
421
|
-
@include respond
|
|
425
|
+
@include respond('<=laptop') {
|
|
422
426
|
display: none;
|
|
423
427
|
}
|
|
424
428
|
}
|
|
@@ -443,7 +447,7 @@ const onClickShortcut = (item: any) => {
|
|
|
443
447
|
}
|
|
444
448
|
}
|
|
445
449
|
|
|
446
|
-
@include respond
|
|
450
|
+
@include respond('<=laptop') {
|
|
447
451
|
margin-left: 24px;
|
|
448
452
|
&:nth-of-type(1) {
|
|
449
453
|
.content-container {
|
|
@@ -460,7 +464,7 @@ const onClickShortcut = (item: any) => {
|
|
|
460
464
|
}
|
|
461
465
|
}
|
|
462
466
|
|
|
463
|
-
@include respond
|
|
467
|
+
@include respond('pad_h') {
|
|
464
468
|
&:nth-of-type(1) {
|
|
465
469
|
.content-container {
|
|
466
470
|
width: 344px;
|
|
@@ -469,7 +473,7 @@ const onClickShortcut = (item: any) => {
|
|
|
469
473
|
}
|
|
470
474
|
}
|
|
471
475
|
|
|
472
|
-
@include respond
|
|
476
|
+
@include respond('pad_h') {
|
|
473
477
|
.content-left {
|
|
474
478
|
.item-sub {
|
|
475
479
|
max-width: 25%;
|
|
@@ -500,20 +504,20 @@ const onClickShortcut = (item: any) => {
|
|
|
500
504
|
margin-left: 0;
|
|
501
505
|
}
|
|
502
506
|
|
|
503
|
-
@include respond
|
|
507
|
+
@include respond('>laptop') {
|
|
504
508
|
width: 200px;
|
|
505
509
|
}
|
|
506
510
|
|
|
507
|
-
@include respond
|
|
511
|
+
@include respond('laptop') {
|
|
508
512
|
width: 170px;
|
|
509
513
|
}
|
|
510
514
|
|
|
511
|
-
@include respond
|
|
515
|
+
@include respond('pad_h') {
|
|
512
516
|
width: 132px;
|
|
513
517
|
}
|
|
514
518
|
}
|
|
515
519
|
|
|
516
|
-
@include respond
|
|
520
|
+
@include respond('pad_h') {
|
|
517
521
|
.content-left {
|
|
518
522
|
.item-sub {
|
|
519
523
|
flex: 1 1 auto;
|
|
@@ -544,7 +548,7 @@ const onClickShortcut = (item: any) => {
|
|
|
544
548
|
margin-right: 0;
|
|
545
549
|
}
|
|
546
550
|
|
|
547
|
-
@include respond
|
|
551
|
+
@include respond('<=laptop') {
|
|
548
552
|
margin-right: 24px;
|
|
549
553
|
}
|
|
550
554
|
}
|
|
@@ -553,20 +557,20 @@ const onClickShortcut = (item: any) => {
|
|
|
553
557
|
margin-right: 40px;
|
|
554
558
|
}
|
|
555
559
|
}
|
|
556
|
-
@include respond
|
|
560
|
+
@include respond('>laptop') {
|
|
557
561
|
width: 992px;
|
|
558
562
|
}
|
|
559
|
-
@include respond
|
|
563
|
+
@include respond('laptop') {
|
|
560
564
|
width: 752px;
|
|
561
565
|
}
|
|
562
|
-
@include respond
|
|
566
|
+
@include respond('pad_h') {
|
|
563
567
|
width: auto;
|
|
564
568
|
}
|
|
565
569
|
}
|
|
566
570
|
}
|
|
567
571
|
}
|
|
568
572
|
|
|
569
|
-
@include respond
|
|
573
|
+
@include respond('pad_h') {
|
|
570
574
|
.content-left {
|
|
571
575
|
.item-sub {
|
|
572
576
|
max-width: 80%;
|
|
@@ -602,7 +606,7 @@ const onClickShortcut = (item: any) => {
|
|
|
602
606
|
}
|
|
603
607
|
}
|
|
604
608
|
|
|
605
|
-
@include respond
|
|
609
|
+
@include respond('<=laptop') {
|
|
606
610
|
margin-left: 24px;
|
|
607
611
|
&:nth-of-type(2) {
|
|
608
612
|
.content-container {
|
|
@@ -614,7 +618,7 @@ const onClickShortcut = (item: any) => {
|
|
|
614
618
|
}
|
|
615
619
|
}
|
|
616
620
|
|
|
617
|
-
@include respond
|
|
621
|
+
@include respond('pad_h') {
|
|
618
622
|
&:nth-of-type(2) {
|
|
619
623
|
.content-container {
|
|
620
624
|
width: auto;
|
|
@@ -623,7 +627,7 @@ const onClickShortcut = (item: any) => {
|
|
|
623
627
|
}
|
|
624
628
|
}
|
|
625
629
|
|
|
626
|
-
@include respond
|
|
630
|
+
@include respond('pad_h') {
|
|
627
631
|
.content-left {
|
|
628
632
|
.item-sub {
|
|
629
633
|
max-width: 25%;
|
|
@@ -666,7 +670,7 @@ const onClickShortcut = (item: any) => {
|
|
|
666
670
|
}
|
|
667
671
|
}
|
|
668
672
|
|
|
669
|
-
@include respond
|
|
673
|
+
@include respond('<=laptop') {
|
|
670
674
|
margin-left: 24px;
|
|
671
675
|
&:nth-of-type(1) {
|
|
672
676
|
.content-container {
|
|
@@ -684,7 +688,7 @@ const onClickShortcut = (item: any) => {
|
|
|
684
688
|
}
|
|
685
689
|
}
|
|
686
690
|
|
|
687
|
-
@include respond
|
|
691
|
+
@include respond('pad_h') {
|
|
688
692
|
&:nth-of-type(n) {
|
|
689
693
|
.content-container {
|
|
690
694
|
width: auto;
|
|
@@ -693,7 +697,7 @@ const onClickShortcut = (item: any) => {
|
|
|
693
697
|
}
|
|
694
698
|
}
|
|
695
699
|
|
|
696
|
-
@include respond
|
|
700
|
+
@include respond('pad_h') {
|
|
697
701
|
.content-left {
|
|
698
702
|
.item-sub {
|
|
699
703
|
max-width: 20%;
|
|
@@ -724,7 +728,7 @@ const onClickShortcut = (item: any) => {
|
|
|
724
728
|
}
|
|
725
729
|
}
|
|
726
730
|
|
|
727
|
-
@include respond
|
|
731
|
+
@include respond('<=laptop') {
|
|
728
732
|
&:nth-child(n) {
|
|
729
733
|
.content-container {
|
|
730
734
|
width: 170px;
|
|
@@ -732,7 +736,7 @@ const onClickShortcut = (item: any) => {
|
|
|
732
736
|
}
|
|
733
737
|
}
|
|
734
738
|
|
|
735
|
-
@include respond
|
|
739
|
+
@include respond('pad_h') {
|
|
736
740
|
&:nth-child(n) {
|
|
737
741
|
.content-container {
|
|
738
742
|
width: 132px;
|
|
@@ -741,7 +745,7 @@ const onClickShortcut = (item: any) => {
|
|
|
741
745
|
}
|
|
742
746
|
}
|
|
743
747
|
|
|
744
|
-
@include respond
|
|
748
|
+
@include respond('pad_h') {
|
|
745
749
|
.content-left {
|
|
746
750
|
.item-sub {
|
|
747
751
|
.content-container {
|
|
@@ -785,7 +789,7 @@ const onClickShortcut = (item: any) => {
|
|
|
785
789
|
}
|
|
786
790
|
}
|
|
787
791
|
|
|
788
|
-
@include respond
|
|
792
|
+
@include respond('<=laptop') {
|
|
789
793
|
margin-left: 24px;
|
|
790
794
|
&:nth-of-type(1) {
|
|
791
795
|
.content-container {
|
|
@@ -796,7 +800,7 @@ const onClickShortcut = (item: any) => {
|
|
|
796
800
|
}
|
|
797
801
|
}
|
|
798
802
|
|
|
799
|
-
@include respond
|
|
803
|
+
@include respond('laptop') {
|
|
800
804
|
&:nth-of-type(1) {
|
|
801
805
|
.content-container {
|
|
802
806
|
width: 558px;
|
|
@@ -809,7 +813,7 @@ const onClickShortcut = (item: any) => {
|
|
|
809
813
|
}
|
|
810
814
|
}
|
|
811
815
|
|
|
812
|
-
@include respond
|
|
816
|
+
@include respond('pad_h') {
|
|
813
817
|
&:nth-of-type(1) {
|
|
814
818
|
.content-container {
|
|
815
819
|
width: auto;
|
|
@@ -823,7 +827,7 @@ const onClickShortcut = (item: any) => {
|
|
|
823
827
|
}
|
|
824
828
|
}
|
|
825
829
|
|
|
826
|
-
@include respond
|
|
830
|
+
@include respond('pad_h') {
|
|
827
831
|
.content-left {
|
|
828
832
|
.item-sub {
|
|
829
833
|
max-width: 20%;
|
|
@@ -866,7 +870,7 @@ const onClickShortcut = (item: any) => {
|
|
|
866
870
|
margin-left: 0;
|
|
867
871
|
}
|
|
868
872
|
|
|
869
|
-
@include respond
|
|
873
|
+
@include respond('<=laptop') {
|
|
870
874
|
margin-left: 24px;
|
|
871
875
|
.content-container {
|
|
872
876
|
:deep(.content-item) {
|
|
@@ -874,20 +878,20 @@ const onClickShortcut = (item: any) => {
|
|
|
874
878
|
}
|
|
875
879
|
}
|
|
876
880
|
}
|
|
877
|
-
@include respond
|
|
881
|
+
@include respond('laptop') {
|
|
878
882
|
.content-container {
|
|
879
883
|
width: 364px;
|
|
880
884
|
}
|
|
881
885
|
}
|
|
882
886
|
|
|
883
|
-
@include respond
|
|
887
|
+
@include respond('pad_h') {
|
|
884
888
|
.content-container {
|
|
885
889
|
width: auto;
|
|
886
890
|
}
|
|
887
891
|
}
|
|
888
892
|
}
|
|
889
893
|
|
|
890
|
-
@include respond
|
|
894
|
+
@include respond('pad_h') {
|
|
891
895
|
.content-left {
|
|
892
896
|
.item-sub {
|
|
893
897
|
max-width: 40%;
|
|
@@ -909,10 +913,10 @@ const onClickShortcut = (item: any) => {
|
|
|
909
913
|
}
|
|
910
914
|
.item-sub + .item-sub {
|
|
911
915
|
margin-left: 48px;
|
|
912
|
-
@include respond
|
|
916
|
+
@include respond('laptop') {
|
|
913
917
|
margin-left: 32px;
|
|
914
918
|
}
|
|
915
|
-
@include respond
|
|
919
|
+
@include respond('pad_h') {
|
|
916
920
|
margin-left: 16px;
|
|
917
921
|
}
|
|
918
922
|
}
|
|
@@ -953,7 +957,7 @@ const onClickShortcut = (item: any) => {
|
|
|
953
957
|
}
|
|
954
958
|
}
|
|
955
959
|
|
|
956
|
-
@include respond
|
|
960
|
+
@include respond('<=laptop') {
|
|
957
961
|
margin-left: 24px;
|
|
958
962
|
&:nth-of-type(1) {
|
|
959
963
|
.content-container {
|
|
@@ -970,7 +974,7 @@ const onClickShortcut = (item: any) => {
|
|
|
970
974
|
}
|
|
971
975
|
}
|
|
972
976
|
|
|
973
|
-
@include respond
|
|
977
|
+
@include respond('pad_h') {
|
|
974
978
|
&:nth-of-type(1) {
|
|
975
979
|
.content-container {
|
|
976
980
|
width: 344px;
|
|
@@ -979,7 +983,7 @@ const onClickShortcut = (item: any) => {
|
|
|
979
983
|
}
|
|
980
984
|
}
|
|
981
985
|
|
|
982
|
-
@include respond
|
|
986
|
+
@include respond('pad_h') {
|
|
983
987
|
.content-left {
|
|
984
988
|
.item-sub {
|
|
985
989
|
max-width: 25%;
|
|
@@ -1027,7 +1031,7 @@ const onClickShortcut = (item: any) => {
|
|
|
1027
1031
|
margin-right: 0;
|
|
1028
1032
|
}
|
|
1029
1033
|
|
|
1030
|
-
@include respond
|
|
1034
|
+
@include respond('<=laptop') {
|
|
1031
1035
|
margin-right: 24px;
|
|
1032
1036
|
}
|
|
1033
1037
|
}
|
|
@@ -1036,20 +1040,20 @@ const onClickShortcut = (item: any) => {
|
|
|
1036
1040
|
margin-right: 40px;
|
|
1037
1041
|
}
|
|
1038
1042
|
}
|
|
1039
|
-
@include respond
|
|
1043
|
+
@include respond('>laptop') {
|
|
1040
1044
|
width: 992px;
|
|
1041
1045
|
}
|
|
1042
|
-
@include respond
|
|
1046
|
+
@include respond('laptop') {
|
|
1043
1047
|
width: 752px;
|
|
1044
1048
|
}
|
|
1045
|
-
@include respond
|
|
1049
|
+
@include respond('pad_h') {
|
|
1046
1050
|
width: auto;
|
|
1047
1051
|
}
|
|
1048
1052
|
}
|
|
1049
1053
|
}
|
|
1050
1054
|
}
|
|
1051
1055
|
|
|
1052
|
-
@include respond
|
|
1056
|
+
@include respond('pad_h') {
|
|
1053
1057
|
.content-left {
|
|
1054
1058
|
.item-sub {
|
|
1055
1059
|
max-width: 80%;
|
|
@@ -1082,7 +1086,7 @@ const onClickShortcut = (item: any) => {
|
|
|
1082
1086
|
margin-left: 0;
|
|
1083
1087
|
}
|
|
1084
1088
|
|
|
1085
|
-
@include respond
|
|
1089
|
+
@include respond('<=laptop') {
|
|
1086
1090
|
margin-left: 24px;
|
|
1087
1091
|
.content-container {
|
|
1088
1092
|
:deep(.content-item) {
|
|
@@ -1090,20 +1094,20 @@ const onClickShortcut = (item: any) => {
|
|
|
1090
1094
|
}
|
|
1091
1095
|
}
|
|
1092
1096
|
}
|
|
1093
|
-
@include respond
|
|
1097
|
+
@include respond('laptop') {
|
|
1094
1098
|
.content-container {
|
|
1095
1099
|
width: 364px;
|
|
1096
1100
|
}
|
|
1097
1101
|
}
|
|
1098
1102
|
|
|
1099
|
-
@include respond
|
|
1103
|
+
@include respond('pad_h') {
|
|
1100
1104
|
.content-container {
|
|
1101
1105
|
width: auto;
|
|
1102
1106
|
}
|
|
1103
1107
|
}
|
|
1104
1108
|
}
|
|
1105
1109
|
|
|
1106
|
-
@include respond
|
|
1110
|
+
@include respond('pad_h') {
|
|
1107
1111
|
.content-left {
|
|
1108
1112
|
.item-sub {
|
|
1109
1113
|
max-width: 40%;
|
|
@@ -187,7 +187,7 @@ onUnmounted(() => {
|
|
|
187
187
|
height: 100%;
|
|
188
188
|
right: 0;
|
|
189
189
|
top: 0;
|
|
190
|
-
background-image: linear-gradient(90deg, rgba(var(--o-
|
|
190
|
+
background-image: linear-gradient(90deg, rgba(var(--o-grey-1), 0) 0%, rgba(var(--o-grey-1), 1) 100%);
|
|
191
191
|
z-index: 0;
|
|
192
192
|
}
|
|
193
193
|
&::-webkit-scrollbar {
|
|
@@ -195,7 +195,7 @@ onUnmounted(() => {
|
|
|
195
195
|
}
|
|
196
196
|
&.dark {
|
|
197
197
|
&::after {
|
|
198
|
-
background-image: linear-gradient(90deg, rgba(var(--o-
|
|
198
|
+
background-image: linear-gradient(90deg, rgba(var(--o-grey-4), 0) 0%, rgba(var(--o-grey-4), 1) 100%);
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
}
|
|
@@ -255,10 +255,10 @@ onUnmounted(() => {
|
|
|
255
255
|
padding: 22px var(--o-gap-4);
|
|
256
256
|
@include text1;
|
|
257
257
|
|
|
258
|
-
@include respond
|
|
258
|
+
@include respond('laptop') {
|
|
259
259
|
padding: 22px 12px;
|
|
260
260
|
}
|
|
261
|
-
@include respond
|
|
261
|
+
@include respond('pad_h') {
|
|
262
262
|
padding: 22px 8px;
|
|
263
263
|
}
|
|
264
264
|
&.en {
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
import { ref, onMounted, watch } from 'vue';
|
|
3
3
|
import { OIcon, OTag } from '@opensig/opendesign';
|
|
4
4
|
|
|
5
|
-
import { type NavMobileItemT, NavType } from '../types.ts';
|
|
5
|
+
import { type NavMobileItemT, NavType, CodeItemT, LangItemT } from '../types.ts';
|
|
6
6
|
|
|
7
7
|
export interface OHeaderEmitsT {
|
|
8
8
|
(e: 'on-click'): void;
|
|
9
|
+
(e: 'lang-click', val: LangItemT): void;
|
|
9
10
|
(e: 'handle-click', val: any): void;
|
|
10
11
|
}
|
|
11
12
|
const emit = defineEmits<OHeaderEmitsT>();
|
|
@@ -42,9 +43,11 @@ const onClick = (url: string, target?: string) => {
|
|
|
42
43
|
emit('on-click');
|
|
43
44
|
};
|
|
44
45
|
|
|
45
|
-
const onClickNav = (val:
|
|
46
|
+
const onClickNav = (val: CodeItemT | LangItemT) => {
|
|
46
47
|
if (navActive.value === NavType.CODE) {
|
|
47
48
|
onClick(val.href, val?.target);
|
|
49
|
+
} else if (navActive.value === NavType.LANG) {
|
|
50
|
+
emit('lang-click', val);
|
|
48
51
|
}
|
|
49
52
|
};
|
|
50
53
|
|
|
@@ -242,7 +245,7 @@ watch(
|
|
|
242
245
|
top: 0;
|
|
243
246
|
width: 100%;
|
|
244
247
|
height: 1px;
|
|
245
|
-
background-color: rgba(var(--o-
|
|
248
|
+
background-color: rgba(var(--o-grey-14), 0.1);
|
|
246
249
|
}
|
|
247
250
|
}
|
|
248
251
|
.content-label {
|
|
@@ -340,7 +343,7 @@ watch(
|
|
|
340
343
|
word-break: normal;
|
|
341
344
|
@include tip1;
|
|
342
345
|
@include text-truncate(2);
|
|
343
|
-
@include respond
|
|
346
|
+
@include respond('phone') {
|
|
344
347
|
@include text1;
|
|
345
348
|
}
|
|
346
349
|
}
|
|
@@ -365,7 +368,7 @@ watch(
|
|
|
365
368
|
width: 99px;
|
|
366
369
|
@include nav-item;
|
|
367
370
|
@include tip1;
|
|
368
|
-
@include respond
|
|
371
|
+
@include respond('phone') {
|
|
369
372
|
@include text1;
|
|
370
373
|
}
|
|
371
374
|
}
|
|
@@ -11,6 +11,8 @@ export interface ChildrenItemT {
|
|
|
11
11
|
description?: string; // 描述
|
|
12
12
|
href?: string; // 链接
|
|
13
13
|
tag?: tagT; // 标签
|
|
14
|
+
icon?: any;
|
|
15
|
+
target?: string;
|
|
14
16
|
children?: ChildrenItemT[];
|
|
15
17
|
}
|
|
16
18
|
|
|
@@ -22,6 +24,8 @@ export interface ShortcutItemT {
|
|
|
22
24
|
tag?: tagT; // 标签
|
|
23
25
|
remark?: string; // 时间
|
|
24
26
|
type?: string; // 类型
|
|
27
|
+
target?: string;
|
|
28
|
+
icon?: string;
|
|
25
29
|
}
|
|
26
30
|
|
|
27
31
|
export interface NavItemT {
|