@opendesign-plus/components 0.0.1-rc.63 → 0.0.1-rc.65

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 (86) hide show
  1. package/dist/chunk-OElCookieNotice.cjs.js +1 -1
  2. package/dist/chunk-OElCookieNotice.es.js +59 -41
  3. package/dist/components/activity/OActivityApproval.vue.d.ts +1 -144
  4. package/dist/components/activity/index.d.ts +1 -6
  5. package/dist/components/logo-swiper/OLogoSwiper.vue.d.ts +1 -0
  6. package/dist/components/logo-swiper/index.d.ts +1 -0
  7. package/dist/components/meeting/OMeetingSigCalendar.vue.d.ts +2 -1
  8. package/dist/components/meeting/index.d.ts +6 -3
  9. package/dist/components/sig/components/OSigDetailInfoCard.vue.d.ts +3 -1
  10. package/dist/components/sig/components/OSigItem.vue.d.ts +0 -3
  11. package/dist/components/sig/components/utils.d.ts +38 -3
  12. package/dist/components/sig/types.d.ts +12 -7
  13. package/dist/components/video/OVideoDetail.vue.d.ts +7 -0
  14. package/dist/components/video/index.d.ts +27 -0
  15. package/dist/components/video/types.d.ts +24 -0
  16. package/dist/components.cjs.js +43 -43
  17. package/dist/components.css +1 -1
  18. package/dist/components.es.js +11890 -11742
  19. package/dist/index.d.ts +1 -0
  20. package/dist/treeshaking/_virtual/icon-chevron-right.mjs +2 -2
  21. package/dist/treeshaking/_virtual/icon-material.mjs +21 -0
  22. package/dist/treeshaking/_virtual/icon-outlink.mjs +1 -1
  23. package/dist/treeshaking/_virtual/icon-video.mjs +28 -0
  24. package/dist/treeshaking/components/activity/OActivityApproval.css +114 -407
  25. package/dist/treeshaking/components/activity/OActivityApproval.vue.d.ts +1 -144
  26. package/dist/treeshaking/components/activity/OActivityApproval.vue.mjs +198 -244
  27. package/dist/treeshaking/components/activity/OActivityApproval2.css +0 -288
  28. package/dist/treeshaking/components/activity/OActivityMyCalendar.css +441 -297
  29. package/dist/treeshaking/components/activity/OActivityMyCalendar.vue.mjs +110 -107
  30. package/dist/treeshaking/components/activity/OActivityMyCalendar2.css +10 -3
  31. package/dist/treeshaking/components/activity/index.d.ts +1 -6
  32. package/dist/treeshaking/components/common/WordAvatar.css +3 -2
  33. package/dist/treeshaking/components/common/WordAvatar.vue.mjs +19 -3
  34. package/dist/treeshaking/components/float-poster/OFloatPoster.css +25 -11
  35. package/dist/treeshaking/components/float-poster/OFloatPoster.vue.mjs +1 -1
  36. package/dist/treeshaking/components/logo-swiper/OLogoSwiper.css +18 -6
  37. package/dist/treeshaking/components/logo-swiper/OLogoSwiper.vue.d.ts +1 -0
  38. package/dist/treeshaking/components/logo-swiper/OLogoSwiper.vue.mjs +2 -9
  39. package/dist/treeshaking/components/logo-swiper/OLogoSwiper.vue2.mjs +21 -0
  40. package/dist/treeshaking/components/logo-swiper/OLogoSwiperItems.css +27 -27
  41. package/dist/treeshaking/components/logo-swiper/OLogoSwiperItems.vue.mjs +1 -1
  42. package/dist/treeshaking/components/logo-swiper/index.d.ts +1 -0
  43. package/dist/treeshaking/components/meeting/OMeetingSigCalendar.css +29 -1
  44. package/dist/treeshaking/components/meeting/OMeetingSigCalendar.vue.d.ts +2 -1
  45. package/dist/treeshaking/components/meeting/OMeetingSigCalendar.vue.mjs +20 -6
  46. package/dist/treeshaking/components/meeting/components/OMeetingCalendarList.vue.mjs +5 -5
  47. package/dist/treeshaking/components/meeting/index.d.ts +6 -3
  48. package/dist/treeshaking/components/section/OSection.vue2.mjs +2 -2
  49. package/dist/treeshaking/components/sig/OSigDetail.css +82 -23
  50. package/dist/treeshaking/components/sig/OSigDetail.vue.mjs +54 -17
  51. package/dist/treeshaking/components/sig/OSigList.css +59 -5
  52. package/dist/treeshaking/components/sig/OSigList.vue.mjs +61 -59
  53. package/dist/treeshaking/components/sig/components/OSigDetailInfoCard.css +80 -1
  54. package/dist/treeshaking/components/sig/components/OSigDetailInfoCard.vue.d.ts +3 -1
  55. package/dist/treeshaking/components/sig/components/OSigDetailInfoCard.vue.mjs +36 -10
  56. package/dist/treeshaking/components/sig/components/OSigItem.css +387 -58
  57. package/dist/treeshaking/components/sig/components/OSigItem.vue.d.ts +0 -3
  58. package/dist/treeshaking/components/sig/components/OSigItem.vue.mjs +25 -45
  59. package/dist/treeshaking/components/sig/components/OSigMember.css +0 -60
  60. package/dist/treeshaking/components/sig/components/OSigMember.vue.mjs +12 -18
  61. package/dist/treeshaking/components/sig/components/OSigRepo.css +15 -0
  62. package/dist/treeshaking/components/sig/components/OSigRepo.vue.mjs +46 -41
  63. package/dist/treeshaking/components/sig/components/OSigUserContribute.css +24 -0
  64. package/dist/treeshaking/components/sig/components/OSigUserContribute.vue.mjs +12 -10
  65. package/dist/treeshaking/components/sig/components/utils.d.ts +38 -3
  66. package/dist/treeshaking/components/sig/components/utils.mjs +36 -3
  67. package/dist/treeshaking/components/sig/types.d.ts +12 -7
  68. package/dist/treeshaking/components/video/OVideoDetail.css +754 -0
  69. package/dist/treeshaking/components/video/OVideoDetail.vue.d.ts +7 -0
  70. package/dist/treeshaking/components/video/OVideoDetail.vue.mjs +318 -0
  71. package/dist/treeshaking/components/video/OVideoDetail.vue3.mjs +5 -0
  72. package/dist/treeshaking/components/video/index.d.ts +27 -0
  73. package/dist/treeshaking/components/video/index.mjs +10 -0
  74. package/dist/treeshaking/components/video/types.d.ts +24 -0
  75. package/dist/treeshaking/i18n/en.mjs +12 -3
  76. package/dist/treeshaking/i18n/zh.mjs +12 -3
  77. package/dist/treeshaking/index.d.ts +1 -0
  78. package/dist/treeshaking/index.mjs +2 -0
  79. package/package.json +1 -1
  80. package/dist/components/sig/components/config-sig.d.ts +0 -1
  81. package/dist/treeshaking/_virtual/icon-filter.mjs +0 -21
  82. package/dist/treeshaking/components/common/ThFilter.css +0 -146
  83. package/dist/treeshaking/components/common/ThFilter.vue.mjs +0 -270
  84. package/dist/treeshaking/components/common/ThFilter.vue3.mjs +0 -5
  85. package/dist/treeshaking/components/sig/components/config-sig.d.ts +0 -1
  86. package/dist/treeshaking/components/sig/components/config-sig.mjs +0 -4
@@ -1,5 +1,4 @@
1
- import { defineComponent, computed, onMounted, nextTick, openBlock, createElementBlock, createVNode, unref, createElementVNode, toDisplayString, withCtx, createBlock, createTextVNode, createCommentVNode, renderSlot } from "vue";
2
- import { SIG_ADDRESS } from "./components/config-sig.mjs";
1
+ import { defineComponent, computed, onMounted, nextTick, openBlock, createElementBlock, createVNode, createElementVNode, toDisplayString, unref, withCtx, createBlock, createTextVNode, createCommentVNode, Fragment, renderList, renderSlot } from "vue";
3
2
  import { OIcon, OLink, OButton } from "@opensig/opendesign";
4
3
  import _sfc_main$1 from "./components/OSigDetailInfoCard.vue.mjs";
5
4
  import './components/OSigDetailInfoCard.css';
@@ -24,7 +23,7 @@ const _hoisted_7 = { class: "o-sig-detail-meeting-card" };
24
23
  const _hoisted_8 = { class: "o-sig-detail-info-item" };
25
24
  const _hoisted_9 = { class: "o-sig-detail-title-top" };
26
25
  const _hoisted_10 = { class: "o-sig-detail-text" };
27
- const _hoisted_11 = { class: "o-sig-detail-tip" };
26
+ const _hoisted_11 = { class: "o-sig-detail-meeting-agenda" };
28
27
  const _hoisted_12 = { class: "o-sig-detail-email-link" };
29
28
  const _hoisted_13 = { class: "o-sig-detail-title-top" };
30
29
  const _hoisted_14 = { class: "o-sig-detail-text" };
@@ -51,7 +50,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
51
50
  },
52
51
  setup(__props) {
53
52
  const props = __props;
54
- const { t } = useI18n();
53
+ const { t, locale } = useI18n();
55
54
  const sigDetailInfo = computed(() => props.sigDetail);
56
55
  const maintainerInfo = computed(() => {
57
56
  var _a;
@@ -72,13 +71,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
72
71
  }, 300);
73
72
  });
74
73
  });
74
+ const meetingAgenda = computed(() => {
75
+ var _a, _b;
76
+ return ((_a = sigDetailInfo.value) == null ? void 0 : _a[`meeting_agenda_${locale.value}`]) ?? ((_b = sigDetailInfo.value) == null ? void 0 : _b.meeting_agenda) ?? [];
77
+ });
75
78
  return (_ctx, _cache) => {
76
- var _a, _b, _c, _d, _e, _f;
79
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
77
80
  return openBlock(), createElementBlock("div", _hoisted_1, [
78
81
  createVNode(_sfc_main$1, {
79
82
  description: (_a = sigDetailInfo.value) == null ? void 0 : _a.description,
80
83
  "sig-name": props.sigName,
81
- "gitee-address": `${unref(SIG_ADDRESS)}${props.sigName}`,
84
+ "gitee-address": (_b = sigDetailInfo.value) == null ? void 0 : _b.git_url,
82
85
  bg: __props.headerBg
83
86
  }, null, 8, ["description", "sig-name", "gitee-address", "bg"]),
84
87
  createElementVNode("div", _hoisted_2, [
@@ -89,7 +92,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
89
92
  createElementVNode("div", _hoisted_3, [
90
93
  createElementVNode("div", _hoisted_4, [
91
94
  createElementVNode("div", _hoisted_5, [
92
- createElementVNode("p", _hoisted_6, toDisplayString(unref(t)("sig.sigMettingActive")), 1),
95
+ createElementVNode("p", _hoisted_6, toDisplayString(unref(t)("sig.sigMeetingActive")), 1),
93
96
  createElementVNode("div", _hoisted_7, [
94
97
  createElementVNode("div", _hoisted_8, [
95
98
  createElementVNode("div", _hoisted_9, [
@@ -100,9 +103,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
100
103
  _: 1
101
104
  }),
102
105
  createElementVNode("p", _hoisted_10, toDisplayString(unref(t)("sig.workMeeting")), 1),
103
- ((_b = sigDetailInfo.value) == null ? void 0 : _b.etherpadUrl) ? (openBlock(), createBlock(unref(OLink), {
106
+ ((_c = sigDetailInfo.value) == null ? void 0 : _c.etherpad_url) ? (openBlock(), createBlock(unref(OLink), {
104
107
  key: 0,
105
- href: (_c = sigDetailInfo.value) == null ? void 0 : _c.etherpadUrl,
108
+ href: (_d = sigDetailInfo.value) == null ? void 0 : _d.etherpad_url,
106
109
  target: "_blank",
107
110
  color: "primary"
108
111
  }, {
@@ -120,7 +123,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
120
123
  _: 1
121
124
  }, 8, ["href"])) : createCommentVNode("", true)
122
125
  ]),
123
- createElementVNode("p", _hoisted_11, toDisplayString(unref(t)("sig.sigMeetingIntro")), 1)
126
+ createElementVNode("div", _hoisted_11, [
127
+ (openBlock(true), createElementBlock(Fragment, null, renderList(meetingAgenda.value, (t2) => {
128
+ return openBlock(), createElementBlock("div", {
129
+ class: "o-sig-detail-meeting-agenda-item",
130
+ key: t2
131
+ }, toDisplayString(t2), 1);
132
+ }), 128))
133
+ ])
124
134
  ]),
125
135
  createElementVNode("div", _hoisted_12, [
126
136
  createElementVNode("div", _hoisted_13, [
@@ -134,7 +144,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
134
144
  ]),
135
145
  createVNode(unref(OLink), {
136
146
  color: "primary",
137
- href: `mailto:${(_d = sigDetailInfo.value) == null ? void 0 : _d.mailing_list}`,
147
+ href: `mailto:${(_e = sigDetailInfo.value) == null ? void 0 : _e.mailing_list}`,
138
148
  target: "_blank",
139
149
  class: "o-sig-detail-icon-link"
140
150
  }, {
@@ -146,11 +156,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
146
156
  }),
147
157
  _: 1
148
158
  }, 8, ["href"]),
149
- ((_e = sigDetailInfo.value) == null ? void 0 : _e.subscribeUrl) ? (openBlock(), createBlock(unref(OButton), {
159
+ ((_f = sigDetailInfo.value) == null ? void 0 : _f.subscribe_url) ? (openBlock(), createBlock(unref(OButton), {
150
160
  key: 0,
151
161
  round: "pill",
152
162
  color: "primary",
153
- href: (_f = sigDetailInfo.value) == null ? void 0 : _f.subscribeUrl,
163
+ href: (_g = sigDetailInfo.value) == null ? void 0 : _g.subscribe_url,
154
164
  target: "_blank",
155
165
  size: "medium"
156
166
  }, {
@@ -166,9 +176,30 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
166
176
  createTextVNode(toDisplayString(unref(t)("sig.subscribe")) + " ", 1)
167
177
  ]),
168
178
  _: 1
179
+ }, 8, ["href"])) : createCommentVNode("", true),
180
+ ((_h = sigDetailInfo.value) == null ? void 0 : _h.archive_url) ? (openBlock(), createBlock(unref(OButton), {
181
+ key: 1,
182
+ round: "pill",
183
+ color: "primary",
184
+ href: (_i = sigDetailInfo.value) == null ? void 0 : _i.archive_url,
185
+ target: "_blank",
186
+ size: "medium"
187
+ }, {
188
+ suffix: withCtx(() => [
189
+ createVNode(unref(OIcon), null, {
190
+ default: withCtx(() => [
191
+ createVNode(unref(IconOutlink))
192
+ ]),
193
+ _: 1
194
+ })
195
+ ]),
196
+ default: withCtx(() => [
197
+ createTextVNode(toDisplayString(unref(t)("sig.viewArchive")) + " ", 1)
198
+ ]),
199
+ _: 1
169
200
  }, 8, ["href"])) : createCommentVNode("", true)
170
201
  ]),
171
- sigDetailInfo.value.discuss_url ? (openBlock(), createElementBlock("div", _hoisted_15, [
202
+ ((_j = sigDetailInfo.value) == null ? void 0 : _j.discuss_url) ? (openBlock(), createElementBlock("div", _hoisted_15, [
172
203
  createElementVNode("div", _hoisted_16, [
173
204
  createVNode(unref(OIcon), null, {
174
205
  default: withCtx(() => [
@@ -180,14 +211,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
180
211
  ]),
181
212
  createVNode(unref(OLink), {
182
213
  color: "primary",
183
- href: sigDetailInfo.value.discuss_url,
214
+ href: (_k = sigDetailInfo.value) == null ? void 0 : _k.discuss_url,
184
215
  target: "_blank",
185
216
  class: "o-sig-detail-icon-link"
186
217
  }, {
187
218
  default: withCtx(() => {
188
219
  var _a2;
189
220
  return [
190
- createTextVNode(toDisplayString((_a2 = sigDetailInfo.value) == null ? void 0 : _a2.mailing_list), 1)
221
+ createTextVNode(toDisplayString((_a2 = sigDetailInfo.value) == null ? void 0 : _a2.discuss_url), 1)
191
222
  ];
192
223
  }),
193
224
  _: 1
@@ -200,7 +231,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
200
231
  renderSlot(_ctx.$slots, "meeting")
201
232
  ])) : createCommentVNode("", true),
202
233
  createElementVNode("div", _hoisted_19, [
203
- createVNode(_sfc_main$3, { repositories: __props.repositories }, null, 8, ["repositories"])
234
+ __props.repositories.length ? (openBlock(), createBlock(_sfc_main$3, {
235
+ key: 0,
236
+ repositories: __props.repositories
237
+ }, null, 8, ["repositories"])) : (openBlock(), createBlock(_sfc_main$3, {
238
+ key: 1,
239
+ repositories: __props.repositories
240
+ }, null, 8, ["repositories"]))
204
241
  ]),
205
242
  createElementVNode("div", _hoisted_20, [
206
243
  createVNode(_sfc_main$4, {
@@ -306,8 +306,16 @@
306
306
  }
307
307
  @media (max-width: 840px) {
308
308
  .o-sig-list .o-sig-filter-box {
309
- padding: var(--o-gap-3);
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: 600px) {
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, Fragment, renderList, createBlock, createTextVNode, createCommentVNode, withModifiers, withDirectives, nextTick } from "vue";
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
- !unref(isPhone) ? (openBlock(), createElementBlock("div", _hoisted_2, [
318
- createElementVNode("p", _hoisted_3, toDisplayString(unref(t)("sig.type")), 1),
319
- createVNode(unref(ORadioGroup), {
320
- modelValue: featureType.value,
321
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => featureType.value = $event)
322
- }, {
323
- default: withCtx(() => [
324
- (openBlock(true), createElementBlock(Fragment, null, renderList(featureArr.value, (option) => {
325
- return openBlock(), createBlock(unref(ORadio), {
326
- key: option.value,
327
- value: option.value
328
- }, {
329
- radio: withCtx(({ checked }) => [
330
- createVNode(unref(OToggle), {
331
- class: normalizeClass(["o-sig-tag-normal", { active: checked }]),
332
- checked,
333
- onClick: ($event) => clearChecked(checked)
334
- }, {
335
- default: withCtx(() => [
336
- createTextVNode(toDisplayString(option.label[locale.value]), 1)
337
- ]),
338
- _: 2
339
- }, 1032, ["class", "checked", "onClick"])
340
- ]),
341
- _: 2
342
- }, 1032, ["value"]);
343
- }), 128))
344
- ]),
345
- _: 1
346
- }, 8, ["modelValue"])
347
- ])) : createCommentVNode("", true),
348
- unref(isPhone) ? (openBlock(), createElementBlock("div", _hoisted_4, [
349
- createVNode(unref(ElSelect), {
350
- modelValue: featureType.value,
351
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => featureType.value = $event),
352
- filterable: "",
353
- size: "large",
354
- placeholder: unref(t)("sig.selectOrSearchCate")
355
- }, {
356
- default: withCtx(() => [
357
- (openBlock(true), createElementBlock(Fragment, null, renderList(featureArr.value, (option) => {
358
- return openBlock(), createBlock(unref(ElOption), {
359
- key: option.value,
360
- label: option.label[locale.value] ?? option.value,
361
- value: option.value
362
- }, null, 8, ["label", "value"]);
363
- }), 128))
364
- ]),
365
- _: 1
366
- }, 8, ["modelValue", "placeholder"])
367
- ])) : createCommentVNode("", true),
368
- createVNode(unref(ODivider), { direction: "h" }),
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", "locale", "mobile", "active-repo"])
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, {}, HTMLDivElement>;
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-box" };
6
- const _hoisted_2 = { class: "o-sig-detail-name" };
7
- const _hoisted_3 = { class: "o-sig-detail-info-content" };
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", _hoisted_1, [
32
- createElementVNode("span", _hoisted_2, toDisplayString(__props.sigName), 1),
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", _hoisted_3, [
53
- createElementVNode("div", _hoisted_4, toDisplayString(__props.description), 1)
77
+ ], 2),
78
+ createElementVNode("div", _hoisted_2, [
79
+ createElementVNode("div", _hoisted_3, toDisplayString(__props.description), 1)
54
80
  ])
55
81
  ], 4);
56
82
  };