@opendesign-plus/components 0.0.1-rc.62 → 0.0.1-rc.64
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 +4 -4
- package/dist/components/activity/index.d.ts +9 -9
- package/dist/components/banner/index.d.ts +6 -6
- package/dist/components/events/index.d.ts +20 -20
- package/dist/components/float-poster/OFloatPoster.vue.d.ts +24 -0
- package/dist/components/float-poster/index.d.ts +72 -0
- package/dist/components/float-poster/types.d.ts +21 -0
- package/dist/components/footer/index.d.ts +3 -3
- package/dist/components/header/OHeaderMobile.vue.d.ts +8 -8
- package/dist/components/header/components/HeaderNavMobile.vue.d.ts +1 -1
- package/dist/components/header/index.d.ts +28 -28
- package/dist/components/header-search/index.d.ts +13 -13
- package/dist/components/logo-swiper/index.d.ts +11 -11
- package/dist/components/meeting/OMeetingPlayback.vue.d.ts +6 -6
- package/dist/components/meeting/OMeetingSigCalendar.vue.d.ts +2 -1
- package/dist/components/meeting/components/OMeetingPlaybackVideo.vue.d.ts +1 -1
- package/dist/components/meeting/index.d.ts +37 -34
- package/dist/components/search/index.d.ts +11 -11
- package/dist/components/sig/components/OSigDetailInfoCard.vue.d.ts +3 -1
- package/dist/components/sig/components/OSigItem.vue.d.ts +0 -3
- package/dist/components/sig/components/utils.d.ts +38 -3
- package/dist/components/sig/types.d.ts +12 -7
- package/dist/components.cjs.js +42 -42
- package/dist/components.css +1 -1
- package/dist/components.es.js +9481 -9351
- package/dist/index.d.ts +1 -0
- package/dist/treeshaking/_virtual/icon-outlink.mjs +1 -1
- package/dist/treeshaking/components/activity/index.d.ts +9 -9
- package/dist/treeshaking/components/banner/index.d.ts +6 -6
- package/dist/treeshaking/components/events/index.d.ts +20 -20
- package/dist/treeshaking/components/float-poster/OFloatPoster.css +64 -0
- package/dist/treeshaking/components/float-poster/OFloatPoster.vue.d.ts +24 -0
- package/dist/treeshaking/components/float-poster/OFloatPoster.vue.mjs +7 -0
- package/dist/treeshaking/components/float-poster/OFloatPoster.vue2.mjs +84 -0
- package/dist/treeshaking/components/float-poster/index.d.ts +72 -0
- package/dist/treeshaking/components/float-poster/index.mjs +9 -0
- package/dist/treeshaking/components/float-poster/types.d.ts +21 -0
- package/dist/treeshaking/components/footer/index.d.ts +3 -3
- package/dist/treeshaking/components/header/OHeaderMobile.vue.d.ts +8 -8
- package/dist/treeshaking/components/header/components/HeaderNavMobile.vue.d.ts +1 -1
- package/dist/treeshaking/components/header/index.d.ts +28 -28
- package/dist/treeshaking/components/header-search/index.d.ts +13 -13
- package/dist/treeshaking/components/logo-swiper/OLogoSwiperItems.css +18 -18
- package/dist/treeshaking/components/logo-swiper/OLogoSwiperItems.vue.mjs +1 -1
- package/dist/treeshaking/components/logo-swiper/OLogoSwiperItems.vue2.mjs +5 -5
- package/dist/treeshaking/components/logo-swiper/index.d.ts +11 -11
- package/dist/treeshaking/components/meeting/OMeetingPlayback.vue.d.ts +6 -6
- package/dist/treeshaking/components/meeting/OMeetingSigCalendar.css +29 -1
- package/dist/treeshaking/components/meeting/OMeetingSigCalendar.vue.d.ts +2 -1
- package/dist/treeshaking/components/meeting/OMeetingSigCalendar.vue.mjs +20 -6
- package/dist/treeshaking/components/meeting/components/OMeetingPlaybackVideo.vue.d.ts +1 -1
- package/dist/treeshaking/components/meeting/index.d.ts +37 -34
- package/dist/treeshaking/components/search/index.d.ts +11 -11
- package/dist/treeshaking/components/sig/OSigDetail.css +82 -23
- package/dist/treeshaking/components/sig/OSigDetail.vue.mjs +54 -17
- package/dist/treeshaking/components/sig/OSigList.css +59 -5
- package/dist/treeshaking/components/sig/OSigList.vue.mjs +61 -59
- package/dist/treeshaking/components/sig/components/OSigDetailInfoCard.css +80 -1
- package/dist/treeshaking/components/sig/components/OSigDetailInfoCard.vue.d.ts +3 -1
- package/dist/treeshaking/components/sig/components/OSigDetailInfoCard.vue.mjs +36 -10
- package/dist/treeshaking/components/sig/components/OSigItem.css +387 -58
- package/dist/treeshaking/components/sig/components/OSigItem.vue.d.ts +0 -3
- package/dist/treeshaking/components/sig/components/OSigItem.vue.mjs +25 -45
- package/dist/treeshaking/components/sig/components/OSigMember.css +0 -60
- package/dist/treeshaking/components/sig/components/OSigMember.vue.mjs +12 -18
- package/dist/treeshaking/components/sig/components/OSigRepo.css +15 -0
- package/dist/treeshaking/components/sig/components/OSigRepo.vue.mjs +46 -41
- package/dist/treeshaking/components/sig/components/OSigUserContribute.css +24 -0
- package/dist/treeshaking/components/sig/components/OSigUserContribute.vue.mjs +12 -10
- package/dist/treeshaking/components/sig/components/utils.d.ts +38 -3
- package/dist/treeshaking/components/sig/components/utils.mjs +36 -3
- package/dist/treeshaking/components/sig/types.d.ts +12 -7
- package/dist/treeshaking/i18n/en.mjs +2 -2
- package/dist/treeshaking/i18n/zh.mjs +2 -2
- package/dist/treeshaking/index.d.ts +1 -0
- package/dist/treeshaking/index.mjs +2 -0
- package/package.json +1 -1
- package/dist/components/sig/components/config-sig.d.ts +0 -1
- package/dist/treeshaking/components/sig/components/config-sig.d.ts +0 -1
- package/dist/treeshaking/components/sig/components/config-sig.mjs +0 -4
|
@@ -306,8 +306,16 @@
|
|
|
306
306
|
}
|
|
307
307
|
@media (max-width: 840px) {
|
|
308
308
|
.o-sig-list .o-sig-filter-box {
|
|
309
|
-
|
|
309
|
+
background-color: transparent;
|
|
310
|
+
padding: 0;
|
|
311
|
+
}
|
|
310
312
|
}
|
|
313
|
+
.o-sig-list .o-sig-filter-box.o-sig-filter-box--no-filter-type {
|
|
314
|
+
padding: 0;
|
|
315
|
+
background-color: transparent;
|
|
316
|
+
}
|
|
317
|
+
.o-sig-list .o-sig-filter-box.o-sig-filter-box--no-filter-type .o-sig-filter-select-box {
|
|
318
|
+
justify-content: flex-start;
|
|
311
319
|
}
|
|
312
320
|
@media (max-width: 600px) {
|
|
313
321
|
.o-sig-list .o-sig-filter-box {
|
|
@@ -444,6 +452,11 @@
|
|
|
444
452
|
display: flex;
|
|
445
453
|
justify-content: flex-start;
|
|
446
454
|
}
|
|
455
|
+
@media (max-width: 840px) {
|
|
456
|
+
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box {
|
|
457
|
+
width: 100%;
|
|
458
|
+
}
|
|
459
|
+
}
|
|
447
460
|
@media (max-width: 600px) {
|
|
448
461
|
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box {
|
|
449
462
|
padding: var(--o-gap-3);
|
|
@@ -458,33 +471,50 @@
|
|
|
458
471
|
z-index: 9;
|
|
459
472
|
border: 1px solid var(--o-color-control1);
|
|
460
473
|
border-radius: var(--o-radius-xs);
|
|
474
|
+
background-color: var(--o-color-fill2);
|
|
461
475
|
}
|
|
462
476
|
@media (hover: hover) {
|
|
463
477
|
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-sig-filter-select:hover {
|
|
464
478
|
border: 1px solid var(--o-color-primary2);
|
|
465
479
|
}
|
|
466
480
|
}
|
|
467
|
-
@media (max-width:
|
|
481
|
+
@media (max-width: 840px) {
|
|
468
482
|
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-sig-filter-select {
|
|
469
483
|
width: 100%;
|
|
470
484
|
}
|
|
471
485
|
}
|
|
472
|
-
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-sig-filter-select .o-input .o-icon svg path {
|
|
473
|
-
fill: currentColor;
|
|
474
|
-
}
|
|
475
486
|
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-sig-filter-select-focus {
|
|
476
487
|
border: 1px solid var(--o-color-primary3);
|
|
477
488
|
}
|
|
478
489
|
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-select {
|
|
479
490
|
--select-height: 40px;
|
|
480
491
|
--select-icon-size: 24px;
|
|
492
|
+
--select-bg-color: var(--o-color-fill2);
|
|
493
|
+
--select-bg-color-hover: var(--o-color-fill2);
|
|
494
|
+
--select-bg-color-focus: var(--o-color-fill2);
|
|
481
495
|
max-width: 135px;
|
|
482
496
|
border-radius: var(--o-radius-xs) 0 0 var(--o-radius-xs);
|
|
483
497
|
border: none;
|
|
484
498
|
border-right: 1px solid var(--o-color-control1);
|
|
485
499
|
}
|
|
500
|
+
@media (max-width: 840px) {
|
|
501
|
+
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-select {
|
|
502
|
+
--select-height: 38px;
|
|
503
|
+
max-width: 100%;
|
|
504
|
+
width: 40%;
|
|
505
|
+
}
|
|
506
|
+
}
|
|
486
507
|
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-input {
|
|
487
508
|
width: 320px;
|
|
509
|
+
--_box-bg-color: var(--o-color-fill2);
|
|
510
|
+
--_box-bg-color-hover: var(--o-color-fill2);
|
|
511
|
+
--_box-bg-color-focus: var(--o-color-fill2);
|
|
512
|
+
}
|
|
513
|
+
@media (max-width: 840px) {
|
|
514
|
+
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-input {
|
|
515
|
+
flex: 1;
|
|
516
|
+
width: 60%;
|
|
517
|
+
}
|
|
488
518
|
}
|
|
489
519
|
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-input .o_box-main {
|
|
490
520
|
border: none;
|
|
@@ -505,6 +535,15 @@
|
|
|
505
535
|
font-size: 24px;
|
|
506
536
|
}
|
|
507
537
|
}
|
|
538
|
+
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-input .o-icon svg path {
|
|
539
|
+
fill: currentColor;
|
|
540
|
+
}
|
|
541
|
+
@media (max-width: 840px) {
|
|
542
|
+
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-input .o_box {
|
|
543
|
+
width: 100%;
|
|
544
|
+
--box-height: 38px;
|
|
545
|
+
}
|
|
546
|
+
}
|
|
508
547
|
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-sig-search-data {
|
|
509
548
|
position: absolute;
|
|
510
549
|
top: 44px;
|
|
@@ -631,6 +670,21 @@
|
|
|
631
670
|
line-height: 18px;
|
|
632
671
|
}
|
|
633
672
|
}
|
|
673
|
+
@media (max-width: 840px) {
|
|
674
|
+
.o-sig-list .o-sig-filter-box .o-sig-filter-btn {
|
|
675
|
+
display: flex;
|
|
676
|
+
align-items: center;
|
|
677
|
+
justify-content: flex-end;
|
|
678
|
+
margin-top: 8px;
|
|
679
|
+
position: relative;
|
|
680
|
+
}
|
|
681
|
+
.o-sig-list .o-sig-filter-box .o-sig-filter-btn .o-icon {
|
|
682
|
+
--icon-size: 16px;
|
|
683
|
+
}
|
|
684
|
+
.o-sig-list .o-sig-filter-box .o-sig-filter-btn .o-sig-filter-text {
|
|
685
|
+
margin-left: 8px;
|
|
686
|
+
}
|
|
687
|
+
}
|
|
634
688
|
.o-sig-list .o-sig-filter-box-en .o-select {
|
|
635
689
|
max-width: 150px;
|
|
636
690
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, watch, onMounted, onUnmounted, openBlock, createElementBlock, createElementVNode, normalizeClass, unref, toDisplayString, createVNode, withCtx,
|
|
1
|
+
import { defineComponent, computed, ref, watch, onMounted, onUnmounted, openBlock, createElementBlock, createElementVNode, normalizeClass, Fragment, unref, toDisplayString, createVNode, withCtx, renderList, createBlock, createTextVNode, createCommentVNode, withModifiers, withDirectives, nextTick } from "vue";
|
|
2
2
|
import { ElSelect, ElOption } from "element-plus";
|
|
3
3
|
import "element-plus/es/components/select/style/css";
|
|
4
4
|
import "element-plus/es/components/option/style/css";
|
|
@@ -80,11 +80,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
80
80
|
sigQuery.value.pageSize = PAGE_SIZE_DEFAULT;
|
|
81
81
|
};
|
|
82
82
|
const allSigInfo = ref([]);
|
|
83
|
-
const activeRepo = ref("");
|
|
84
83
|
const landscapeList = ref([]);
|
|
85
84
|
const featureArr = ref([]);
|
|
86
85
|
const mergedSigList = ref([]);
|
|
87
86
|
const constructLandscapeMap = () => {
|
|
87
|
+
if (!props.sigLandscape.length) {
|
|
88
|
+
featureArr.value = [];
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
88
91
|
landscapeList.value = props.sigLandscape.map(({ created_at: _created, ...rest }) => rest);
|
|
89
92
|
const seen = /* @__PURE__ */ new Set();
|
|
90
93
|
const features = [];
|
|
@@ -312,60 +315,62 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
312
315
|
return (_ctx, _cache) => {
|
|
313
316
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
314
317
|
createElementVNode("div", {
|
|
315
|
-
class: normalizeClass(["o-sig-filter-box", `o-sig-filter-box-${locale.value}`])
|
|
318
|
+
class: normalizeClass(["o-sig-filter-box", `o-sig-filter-box-${locale.value} ${featureArr.value.length ? "" : "o-sig-filter-box--no-filter-type"}`])
|
|
316
319
|
}, [
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
320
|
+
featureArr.value.length ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
321
|
+
!unref(isPhone) ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
322
|
+
createElementVNode("p", _hoisted_3, toDisplayString(unref(t)("sig.type")), 1),
|
|
323
|
+
createVNode(unref(ORadioGroup), {
|
|
324
|
+
modelValue: featureType.value,
|
|
325
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => featureType.value = $event)
|
|
326
|
+
}, {
|
|
327
|
+
default: withCtx(() => [
|
|
328
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(featureArr.value, (option) => {
|
|
329
|
+
return openBlock(), createBlock(unref(ORadio), {
|
|
330
|
+
key: option.value,
|
|
331
|
+
value: option.value
|
|
332
|
+
}, {
|
|
333
|
+
radio: withCtx(({ checked }) => [
|
|
334
|
+
createVNode(unref(OToggle), {
|
|
335
|
+
class: normalizeClass(["o-sig-tag-normal", { active: checked }]),
|
|
336
|
+
checked,
|
|
337
|
+
onClick: ($event) => clearChecked(checked)
|
|
338
|
+
}, {
|
|
339
|
+
default: withCtx(() => [
|
|
340
|
+
createTextVNode(toDisplayString(option.label[locale.value]), 1)
|
|
341
|
+
]),
|
|
342
|
+
_: 2
|
|
343
|
+
}, 1032, ["class", "checked", "onClick"])
|
|
344
|
+
]),
|
|
345
|
+
_: 2
|
|
346
|
+
}, 1032, ["value"]);
|
|
347
|
+
}), 128))
|
|
348
|
+
]),
|
|
349
|
+
_: 1
|
|
350
|
+
}, 8, ["modelValue"])
|
|
351
|
+
])) : createCommentVNode("", true),
|
|
352
|
+
unref(isPhone) ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
353
|
+
createVNode(unref(ElSelect), {
|
|
354
|
+
modelValue: featureType.value,
|
|
355
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => featureType.value = $event),
|
|
356
|
+
filterable: "",
|
|
357
|
+
size: "large",
|
|
358
|
+
placeholder: unref(t)("sig.selectOrSearchCate")
|
|
359
|
+
}, {
|
|
360
|
+
default: withCtx(() => [
|
|
361
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(featureArr.value, (option) => {
|
|
362
|
+
return openBlock(), createBlock(unref(ElOption), {
|
|
363
|
+
key: option.value,
|
|
364
|
+
label: option.label[locale.value] ?? option.value,
|
|
365
|
+
value: option.value
|
|
366
|
+
}, null, 8, ["label", "value"]);
|
|
367
|
+
}), 128))
|
|
368
|
+
]),
|
|
369
|
+
_: 1
|
|
370
|
+
}, 8, ["modelValue", "placeholder"])
|
|
371
|
+
])) : createCommentVNode("", true),
|
|
372
|
+
createVNode(unref(ODivider), { direction: "h" })
|
|
373
|
+
], 64)) : createCommentVNode("", true),
|
|
369
374
|
createElementVNode("div", _hoisted_5, [
|
|
370
375
|
createElementVNode("div", {
|
|
371
376
|
ref_key: "panelRef",
|
|
@@ -466,11 +471,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
466
471
|
default: withCtx(() => [
|
|
467
472
|
createVNode(_sfc_main$1, {
|
|
468
473
|
sig,
|
|
469
|
-
locale: locale.value,
|
|
470
|
-
mobile: unref(lePadV),
|
|
471
|
-
"active-repo": activeRepo.value,
|
|
472
474
|
onToSigDetail: toSigDetail
|
|
473
|
-
}, null, 8, ["sig"
|
|
475
|
+
}, null, 8, ["sig"])
|
|
474
476
|
]),
|
|
475
477
|
_: 2
|
|
476
478
|
}, 1032, ["flex"]);
|
|
@@ -26,12 +26,17 @@
|
|
|
26
26
|
}
|
|
27
27
|
@media (max-width: 840px) {
|
|
28
28
|
.o-sig-detail-info-card {
|
|
29
|
-
padding: var(--o-gap-3);
|
|
29
|
+
padding: var(--o-gap-3) var(--o-gap-2);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
.o-sig-detail-info-card .o-sig-detail-name-box {
|
|
33
33
|
display: flex;
|
|
34
34
|
align-items: center;
|
|
35
|
+
flex-wrap: wrap;
|
|
36
|
+
row-gap: var(--o-gap-2);
|
|
37
|
+
}
|
|
38
|
+
.o-sig-detail-info-card .o-sig-detail-name-box.is-wrapped .o-divider {
|
|
39
|
+
display: none;
|
|
35
40
|
}
|
|
36
41
|
.o-sig-detail-info-card .o-sig-detail-name {
|
|
37
42
|
font-weight: 600;
|
|
@@ -80,12 +85,76 @@
|
|
|
80
85
|
--o-divider-gap: var(--o-gap-2);
|
|
81
86
|
}
|
|
82
87
|
}
|
|
88
|
+
.o-sig-detail-info-card .o-link {
|
|
89
|
+
font-size: 16px;
|
|
90
|
+
line-height: 24px;
|
|
91
|
+
}
|
|
92
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
93
|
+
.o-sig-detail-info-card .o-link {
|
|
94
|
+
font-size: 14px;
|
|
95
|
+
line-height: 22px;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
99
|
+
.o-sig-detail-info-card .o-link {
|
|
100
|
+
font-size: 14px;
|
|
101
|
+
line-height: 22px;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
@media (min-width: 601px) and (max-width: 840px) {
|
|
105
|
+
.o-sig-detail-info-card .o-link {
|
|
106
|
+
font-size: 14px;
|
|
107
|
+
line-height: 22px;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
@media (max-width: 600px) {
|
|
111
|
+
.o-sig-detail-info-card .o-link {
|
|
112
|
+
font-size: 12px;
|
|
113
|
+
line-height: 18px;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
@media (max-width: 600px) {
|
|
117
|
+
.o-sig-detail-info-card .o-link {
|
|
118
|
+
font-size: 18px;
|
|
119
|
+
line-height: 26px;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
@media (max-width: 600px) and (min-width: 1201px) and (max-width: 1680px) {
|
|
123
|
+
.o-sig-detail-info-card .o-link {
|
|
124
|
+
font-size: 16px;
|
|
125
|
+
line-height: 24px;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
@media (max-width: 600px) and (min-width: 841px) and (max-width: 1200px) {
|
|
129
|
+
.o-sig-detail-info-card .o-link {
|
|
130
|
+
font-size: 14px;
|
|
131
|
+
line-height: 22px;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
@media (max-width: 600px) and (min-width: 601px) and (max-width: 840px) {
|
|
135
|
+
.o-sig-detail-info-card .o-link {
|
|
136
|
+
font-size: 14px;
|
|
137
|
+
line-height: 22px;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
@media (max-width: 600px) and (max-width: 600px) {
|
|
141
|
+
.o-sig-detail-info-card .o-link {
|
|
142
|
+
font-size: 14px;
|
|
143
|
+
line-height: 22px;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
83
146
|
.o-sig-detail-info-card .o-link .o-link-label {
|
|
84
147
|
display: flex;
|
|
85
148
|
align-items: center;
|
|
86
149
|
}
|
|
87
150
|
.o-sig-detail-info-card .o-link .o-link-label .o-icon {
|
|
88
151
|
margin-left: var(--o-gap-1);
|
|
152
|
+
font-size: 24px;
|
|
153
|
+
}
|
|
154
|
+
@media (max-width: 1680px) {
|
|
155
|
+
.o-sig-detail-info-card .o-link .o-link-label .o-icon {
|
|
156
|
+
font-size: 20px;
|
|
157
|
+
}
|
|
89
158
|
}
|
|
90
159
|
.o-sig-detail-info-card .o-sig-detail-info-content {
|
|
91
160
|
margin-top: var(--o-gap-4);
|
|
@@ -123,4 +192,14 @@
|
|
|
123
192
|
font-size: 12px;
|
|
124
193
|
line-height: 18px;
|
|
125
194
|
}
|
|
195
|
+
}
|
|
196
|
+
@media (min-width: 601px) {
|
|
197
|
+
.o-sig-detail-info-card .o-sig-detail-description {
|
|
198
|
+
overflow: hidden;
|
|
199
|
+
text-overflow: ellipsis;
|
|
200
|
+
word-break: break-all;
|
|
201
|
+
display: -webkit-box;
|
|
202
|
+
-webkit-box-orient: vertical;
|
|
203
|
+
-webkit-line-clamp: 4;
|
|
204
|
+
}
|
|
126
205
|
}
|
|
@@ -9,5 +9,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
9
9
|
sigName: string;
|
|
10
10
|
bg: string;
|
|
11
11
|
giteeAddress: string;
|
|
12
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
13
|
+
nameBoxRef: HTMLDivElement;
|
|
14
|
+
}, HTMLDivElement>;
|
|
13
15
|
export default _default;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createElementBlock, normalizeStyle, createElementVNode, toDisplayString, createVNode, unref, withCtx } from "vue";
|
|
1
|
+
import { defineComponent, computed, ref, onMounted, onBeforeUnmount, openBlock, createElementBlock, normalizeStyle, createElementVNode, normalizeClass, toDisplayString, createVNode, unref, withCtx } from "vue";
|
|
2
2
|
import { useI18n } from "../../../i18n/index.mjs";
|
|
3
3
|
import { ODivider, OLink, OIcon } from "@opensig/opendesign";
|
|
4
4
|
import IconOutlink from "../../../_virtual/icon-outlink.mjs";
|
|
5
|
-
const _hoisted_1 = { class: "o-sig-detail-name
|
|
6
|
-
const _hoisted_2 = { class: "o-sig-detail-
|
|
7
|
-
const _hoisted_3 = { class: "o-sig-detail-
|
|
8
|
-
const _hoisted_4 = { class: "o-sig-detail-description" };
|
|
5
|
+
const _hoisted_1 = { class: "o-sig-detail-name" };
|
|
6
|
+
const _hoisted_2 = { class: "o-sig-detail-info-content" };
|
|
7
|
+
const _hoisted_3 = { class: "o-sig-detail-description" };
|
|
9
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
9
|
__name: "OSigDetailInfoCard",
|
|
11
10
|
props: {
|
|
@@ -23,13 +22,40 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
22
|
backgroundImage: `url(${props.bg})`
|
|
24
23
|
};
|
|
25
24
|
});
|
|
25
|
+
const nameBoxRef = ref();
|
|
26
|
+
const isWrapped = ref(false);
|
|
27
|
+
let resizeObserver;
|
|
28
|
+
const checkWrapped = () => {
|
|
29
|
+
const box = nameBoxRef.value;
|
|
30
|
+
if (!box) return;
|
|
31
|
+
const nameEl = box.querySelector(".o-sig-detail-name");
|
|
32
|
+
const linkEl = box.querySelector(".o-sig-detail-more-gitee");
|
|
33
|
+
if (!nameEl || !linkEl) return;
|
|
34
|
+
isWrapped.value = Math.abs(nameEl.offsetTop - linkEl.offsetTop) > 16;
|
|
35
|
+
};
|
|
36
|
+
onMounted(() => {
|
|
37
|
+
checkWrapped();
|
|
38
|
+
if (typeof ResizeObserver !== "undefined") {
|
|
39
|
+
resizeObserver = new ResizeObserver(checkWrapped);
|
|
40
|
+
if (nameBoxRef.value) {
|
|
41
|
+
resizeObserver.observe(nameBoxRef.value);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
onBeforeUnmount(() => {
|
|
46
|
+
resizeObserver == null ? void 0 : resizeObserver.disconnect();
|
|
47
|
+
});
|
|
26
48
|
return (_ctx, _cache) => {
|
|
27
49
|
return openBlock(), createElementBlock("div", {
|
|
28
50
|
class: "o-sig-detail-info-card",
|
|
29
51
|
style: normalizeStyle(cardStyle.value)
|
|
30
52
|
}, [
|
|
31
|
-
createElementVNode("div",
|
|
32
|
-
|
|
53
|
+
createElementVNode("div", {
|
|
54
|
+
ref_key: "nameBoxRef",
|
|
55
|
+
ref: nameBoxRef,
|
|
56
|
+
class: normalizeClass(["o-sig-detail-name-box", { "is-wrapped": isWrapped.value }])
|
|
57
|
+
}, [
|
|
58
|
+
createElementVNode("span", _hoisted_1, toDisplayString(__props.sigName), 1),
|
|
33
59
|
createVNode(unref(ODivider), { direction: "v" }),
|
|
34
60
|
createVNode(unref(OLink), {
|
|
35
61
|
color: "primary",
|
|
@@ -48,9 +74,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
48
74
|
]),
|
|
49
75
|
_: 1
|
|
50
76
|
}, 8, ["href"])
|
|
51
|
-
]),
|
|
52
|
-
createElementVNode("div",
|
|
53
|
-
createElementVNode("div",
|
|
77
|
+
], 2),
|
|
78
|
+
createElementVNode("div", _hoisted_2, [
|
|
79
|
+
createElementVNode("div", _hoisted_3, toDisplayString(__props.description), 1)
|
|
54
80
|
])
|
|
55
81
|
], 4);
|
|
56
82
|
};
|