@opendesign-plus-test/components 0.0.1-rc.137 → 0.0.1-rc.139
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 +2 -0
- package/dist/components/sig/components/OSigDetailInfoCard.vue.d.ts +3 -1
- package/dist/components/sig/components/OSigItem.vue.d.ts +0 -2
- package/dist/components/sig/components/utils.d.ts +3 -3
- package/dist/components/sig/types.d.ts +6 -6
- package/dist/components.cjs.js +38 -38
- package/dist/components.css +1 -1
- package/dist/components.es.js +5342 -5321
- package/dist/treeshaking/components/sig/OSigDetail.css +6 -1
- package/dist/treeshaking/components/sig/OSigDetail.vue.mjs +29 -8
- package/dist/treeshaking/components/sig/OSigList.css +5 -1
- package/dist/treeshaking/components/sig/OSigList.vue.mjs +63 -67
- package/dist/treeshaking/components/sig/components/OSigDetailInfoCard.css +74 -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 +35 -22
- package/dist/treeshaking/components/sig/components/OSigItem.vue.d.ts +0 -2
- package/dist/treeshaking/components/sig/components/OSigItem.vue.mjs +4 -7
- package/dist/treeshaking/components/sig/components/OSigMember.vue.mjs +1 -2
- package/dist/treeshaking/components/sig/components/OSigRepo.css +3 -0
- package/dist/treeshaking/components/sig/components/OSigRepo.vue.mjs +6 -6
- package/dist/treeshaking/components/sig/components/OSigUserContribute.vue.mjs +2 -2
- package/dist/treeshaking/components/sig/components/utils.d.ts +3 -3
- package/dist/treeshaking/components/sig/types.d.ts +6 -6
- package/dist/treeshaking/i18n/en.mjs +1 -0
- package/dist/treeshaking/i18n/zh.mjs +1 -0
- package/package.json +3 -3
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
}
|
|
24
24
|
@media (max-width: 1200px) {
|
|
25
25
|
.o-sig-detail .o-sig-detail-content {
|
|
26
|
-
--sig-floor-gap: var(--o-gap-
|
|
26
|
+
--sig-floor-gap: var(--o-gap-4);
|
|
27
27
|
display: block;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -215,4 +215,9 @@
|
|
|
215
215
|
font-size: 14px;
|
|
216
216
|
line-height: 22px;
|
|
217
217
|
}
|
|
218
|
+
}
|
|
219
|
+
@media (min-width: ) {
|
|
220
|
+
.o-sig-detail .o-sig-detail-content .o-sig-floor-title {
|
|
221
|
+
font-size: 16px;
|
|
222
|
+
}
|
|
218
223
|
}
|
|
@@ -77,12 +77,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
77
77
|
return ((_a = sigDetailInfo.value) == null ? void 0 : _a[`meeting_agenda_${locale.value}`]) ?? ((_b = sigDetailInfo.value) == null ? void 0 : _b.meeting_agenda) ?? [];
|
|
78
78
|
});
|
|
79
79
|
return (_ctx, _cache) => {
|
|
80
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
80
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
81
81
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
82
82
|
createVNode(_sfc_main$1, {
|
|
83
83
|
description: (_a = sigDetailInfo.value) == null ? void 0 : _a.description,
|
|
84
84
|
"sig-name": props.sigName,
|
|
85
|
-
"gitee-address": (_b = sigDetailInfo.value) == null ? void 0 : _b.
|
|
85
|
+
"gitee-address": (_b = sigDetailInfo.value) == null ? void 0 : _b.git_url,
|
|
86
86
|
bg: __props.headerBg
|
|
87
87
|
}, null, 8, ["description", "sig-name", "gitee-address", "bg"]),
|
|
88
88
|
createElementVNode("div", _hoisted_2, [
|
|
@@ -104,9 +104,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
104
104
|
_: 1
|
|
105
105
|
}),
|
|
106
106
|
createElementVNode("p", _hoisted_10, toDisplayString(unref(t)("sig.workMeeting")), 1),
|
|
107
|
-
((_c = sigDetailInfo.value) == null ? void 0 : _c.
|
|
107
|
+
((_c = sigDetailInfo.value) == null ? void 0 : _c.etherpad_url) ? (openBlock(), createBlock(unref(OLink), {
|
|
108
108
|
key: 0,
|
|
109
|
-
href: (_d = sigDetailInfo.value) == null ? void 0 : _d.
|
|
109
|
+
href: (_d = sigDetailInfo.value) == null ? void 0 : _d.etherpad_url,
|
|
110
110
|
target: "_blank",
|
|
111
111
|
color: "primary"
|
|
112
112
|
}, {
|
|
@@ -157,11 +157,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
157
157
|
}),
|
|
158
158
|
_: 1
|
|
159
159
|
}, 8, ["href"]),
|
|
160
|
-
((_f = sigDetailInfo.value) == null ? void 0 : _f.
|
|
160
|
+
((_f = sigDetailInfo.value) == null ? void 0 : _f.subscribe_url) ? (openBlock(), createBlock(unref(OButton), {
|
|
161
161
|
key: 0,
|
|
162
162
|
round: "pill",
|
|
163
163
|
color: "primary",
|
|
164
|
-
href: (_g = sigDetailInfo.value) == null ? void 0 : _g.
|
|
164
|
+
href: (_g = sigDetailInfo.value) == null ? void 0 : _g.subscribe_url,
|
|
165
165
|
target: "_blank",
|
|
166
166
|
size: "medium"
|
|
167
167
|
}, {
|
|
@@ -177,9 +177,30 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
177
177
|
createTextVNode(toDisplayString(unref(t)("sig.subscribe")) + " ", 1)
|
|
178
178
|
]),
|
|
179
179
|
_: 1
|
|
180
|
+
}, 8, ["href"])) : createCommentVNode("", true),
|
|
181
|
+
((_h = sigDetailInfo.value) == null ? void 0 : _h.archive_url) ? (openBlock(), createBlock(unref(OButton), {
|
|
182
|
+
key: 1,
|
|
183
|
+
round: "pill",
|
|
184
|
+
color: "primary",
|
|
185
|
+
href: (_i = sigDetailInfo.value) == null ? void 0 : _i.archive_url,
|
|
186
|
+
target: "_blank",
|
|
187
|
+
size: "medium"
|
|
188
|
+
}, {
|
|
189
|
+
suffix: withCtx(() => [
|
|
190
|
+
createVNode(unref(OIcon), null, {
|
|
191
|
+
default: withCtx(() => [
|
|
192
|
+
createVNode(unref(IconOutlink))
|
|
193
|
+
]),
|
|
194
|
+
_: 1
|
|
195
|
+
})
|
|
196
|
+
]),
|
|
197
|
+
default: withCtx(() => [
|
|
198
|
+
createTextVNode(toDisplayString(unref(t)("sig.viewArchive")) + " ", 1)
|
|
199
|
+
]),
|
|
200
|
+
_: 1
|
|
180
201
|
}, 8, ["href"])) : createCommentVNode("", true)
|
|
181
202
|
]),
|
|
182
|
-
((
|
|
203
|
+
((_j = sigDetailInfo.value) == null ? void 0 : _j.discuss_url) ? (openBlock(), createElementBlock("div", _hoisted_15, [
|
|
183
204
|
createElementVNode("div", _hoisted_16, [
|
|
184
205
|
createVNode(unref(OIcon), null, {
|
|
185
206
|
default: withCtx(() => [
|
|
@@ -191,7 +212,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
191
212
|
]),
|
|
192
213
|
createVNode(unref(OLink), {
|
|
193
214
|
color: "primary",
|
|
194
|
-
href: (
|
|
215
|
+
href: (_k = sigDetailInfo.value) == null ? void 0 : _k.discuss_url,
|
|
195
216
|
target: "_blank",
|
|
196
217
|
class: "o-sig-detail-icon-link"
|
|
197
218
|
}, {
|
|
@@ -310,8 +310,12 @@
|
|
|
310
310
|
padding: 0;
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
+
.o-sig-list .o-sig-filter-box.o-sig-filter-box--no-filter-type {
|
|
314
|
+
padding: 0;
|
|
315
|
+
background-color: transparent;
|
|
316
|
+
}
|
|
313
317
|
.o-sig-list .o-sig-filter-box.o-sig-filter-box--no-filter-type .o-sig-filter-select-box {
|
|
314
|
-
justify-content: flex-
|
|
318
|
+
justify-content: flex-start;
|
|
315
319
|
}
|
|
316
320
|
@media (max-width: 600px) {
|
|
317
321
|
.o-sig-list .o-sig-filter-box {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, watch, onMounted, onUnmounted,
|
|
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
|
+
import { ElSelect, ElOption } from "element-plus";
|
|
3
|
+
import "element-plus/es/components/select/style/css";
|
|
4
|
+
import "element-plus/es/components/option/style/css";
|
|
2
5
|
import { useDebounceFn, onClickOutside, useThrottleFn } from "@vueuse/core";
|
|
3
6
|
import { useScreen } from "@opendesign-plus/composables";
|
|
4
7
|
import { useI18n } from "../../i18n/index.mjs";
|
|
@@ -14,43 +17,42 @@ const _hoisted_2 = {
|
|
|
14
17
|
class: "o-sig-filter-type"
|
|
15
18
|
};
|
|
16
19
|
const _hoisted_3 = { class: "o-sig-filter-title" };
|
|
17
|
-
const _hoisted_4 = {
|
|
18
|
-
|
|
20
|
+
const _hoisted_4 = {
|
|
21
|
+
key: 1,
|
|
22
|
+
class: "o-sig-filter-input"
|
|
23
|
+
};
|
|
24
|
+
const _hoisted_5 = { class: "o-sig-filter-select-box" };
|
|
25
|
+
const _hoisted_6 = {
|
|
19
26
|
key: 0,
|
|
20
27
|
class: "o-sig-search-data"
|
|
21
28
|
};
|
|
22
|
-
const
|
|
29
|
+
const _hoisted_7 = {
|
|
23
30
|
key: 0,
|
|
24
31
|
class: "o-sig-search-label"
|
|
25
32
|
};
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
33
|
+
const _hoisted_8 = ["onClick"];
|
|
34
|
+
const _hoisted_9 = ["title"];
|
|
35
|
+
const _hoisted_10 = {
|
|
29
36
|
key: 2,
|
|
30
37
|
class: "o-sig-no-result"
|
|
31
38
|
};
|
|
32
|
-
const
|
|
33
|
-
key: 1,
|
|
34
|
-
class: "o-sig-filter-btn"
|
|
35
|
-
};
|
|
36
|
-
const _hoisted_11 = { class: "o-sig-filter-text" };
|
|
37
|
-
const _hoisted_12 = {
|
|
39
|
+
const _hoisted_11 = {
|
|
38
40
|
key: 0,
|
|
39
41
|
class: "o-sig-filter-result-tip"
|
|
40
42
|
};
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
const
|
|
43
|
+
const _hoisted_12 = { key: 0 };
|
|
44
|
+
const _hoisted_13 = { class: "o-sig-num" };
|
|
45
|
+
const _hoisted_14 = {
|
|
44
46
|
key: 0,
|
|
45
47
|
class: "o-sig-num"
|
|
46
48
|
};
|
|
47
|
-
const
|
|
48
|
-
const
|
|
49
|
-
const
|
|
49
|
+
const _hoisted_15 = { key: 1 };
|
|
50
|
+
const _hoisted_16 = { class: "o-sig-num" };
|
|
51
|
+
const _hoisted_17 = {
|
|
50
52
|
key: 3,
|
|
51
53
|
class: "o-sig-loading"
|
|
52
54
|
};
|
|
53
|
-
const
|
|
55
|
+
const _hoisted_18 = {
|
|
54
56
|
key: 4,
|
|
55
57
|
class: "o-sig-pagination"
|
|
56
58
|
};
|
|
@@ -311,14 +313,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
311
313
|
window.removeEventListener("scroll", throttleEvent);
|
|
312
314
|
});
|
|
313
315
|
return (_ctx, _cache) => {
|
|
314
|
-
const _component_IconFilter = resolveComponent("IconFilter");
|
|
315
|
-
const _component_OButton = resolveComponent("OButton");
|
|
316
316
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
317
317
|
createElementVNode("div", {
|
|
318
318
|
class: normalizeClass(["o-sig-filter-box", `o-sig-filter-box-${locale.value} ${featureArr.value.length ? "" : "o-sig-filter-box--no-filter-type"}`])
|
|
319
319
|
}, [
|
|
320
320
|
featureArr.value.length ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
321
|
-
!unref(
|
|
321
|
+
!unref(isPhone) ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
322
322
|
createElementVNode("p", _hoisted_3, toDisplayString(unref(t)("sig.type")), 1),
|
|
323
323
|
createVNode(unref(ORadioGroup), {
|
|
324
324
|
modelValue: featureType.value,
|
|
@@ -349,12 +349,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
349
349
|
_: 1
|
|
350
350
|
}, 8, ["modelValue"])
|
|
351
351
|
])) : createCommentVNode("", true),
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
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" })
|
|
356
373
|
], 64)) : createCommentVNode("", true),
|
|
357
|
-
createElementVNode("div",
|
|
374
|
+
createElementVNode("div", _hoisted_5, [
|
|
358
375
|
createElementVNode("div", {
|
|
359
376
|
ref_key: "panelRef",
|
|
360
377
|
ref: panelRef,
|
|
@@ -362,7 +379,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
362
379
|
}, [
|
|
363
380
|
createVNode(unref(OSelect), {
|
|
364
381
|
modelValue: searchType.value,
|
|
365
|
-
"onUpdate:modelValue": _cache[
|
|
382
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => searchType.value = $event),
|
|
366
383
|
size: "large",
|
|
367
384
|
trigger: "click",
|
|
368
385
|
variant: "outline",
|
|
@@ -381,11 +398,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
381
398
|
}, 8, ["modelValue"]),
|
|
382
399
|
createVNode(unref(OInput), {
|
|
383
400
|
modelValue: debounceSig.value,
|
|
384
|
-
"onUpdate:modelValue": _cache[
|
|
401
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => debounceSig.value = $event),
|
|
385
402
|
size: "large",
|
|
386
403
|
clearable: "",
|
|
387
404
|
placeholder: placeholderType.value,
|
|
388
|
-
onFocusCapture: _cache[
|
|
405
|
+
onFocusCapture: _cache[4] || (_cache[4] = ($event) => showPanel.value = true),
|
|
389
406
|
onPressEnter: changeSearchInput,
|
|
390
407
|
onClear: clearInput
|
|
391
408
|
}, {
|
|
@@ -399,13 +416,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
399
416
|
]),
|
|
400
417
|
_: 1
|
|
401
418
|
}, 8, ["modelValue", "placeholder"]),
|
|
402
|
-
showPanel.value && sigInput.value ? (openBlock(), createElementBlock("div",
|
|
419
|
+
showPanel.value && sigInput.value ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
403
420
|
(openBlock(true), createElementBlock(Fragment, null, renderList(hasSearchData.value, (item) => {
|
|
404
421
|
return openBlock(), createElementBlock("div", {
|
|
405
422
|
key: item.id,
|
|
406
423
|
class: "o-sig-search-group"
|
|
407
424
|
}, [
|
|
408
|
-
searchType.value === "all" ? (openBlock(), createElementBlock("p",
|
|
425
|
+
searchType.value === "all" ? (openBlock(), createElementBlock("p", _hoisted_7, toDisplayString(item.label), 1)) : createCommentVNode("", true),
|
|
409
426
|
item.list.length ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(item.list, (it) => {
|
|
410
427
|
return openBlock(), createElementBlock("div", {
|
|
411
428
|
key: it.name,
|
|
@@ -415,46 +432,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
415
432
|
withDirectives(createElementVNode("span", {
|
|
416
433
|
title: stripHtml(it == null ? void 0 : it.name),
|
|
417
434
|
class: "o-sig-search-title"
|
|
418
|
-
}, null, 8,
|
|
435
|
+
}, null, 8, _hoisted_9), [
|
|
419
436
|
[unref(vDompurifyHtml), it == null ? void 0 : it.name]
|
|
420
437
|
])
|
|
421
|
-
], 8,
|
|
422
|
-
}), 128)) : (openBlock(), createElementBlock("p",
|
|
438
|
+
], 8, _hoisted_8);
|
|
439
|
+
}), 128)) : (openBlock(), createElementBlock("p", _hoisted_10, toDisplayString(unref(t)("sig.noResult")), 1))
|
|
423
440
|
]);
|
|
424
441
|
}), 128))
|
|
425
442
|
])) : createCommentVNode("", true)
|
|
426
443
|
], 2)
|
|
427
|
-
])
|
|
428
|
-
unref(lePadV) && featureArr.value.length ? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
429
|
-
createVNode(_component_OButton, {
|
|
430
|
-
variant: "text",
|
|
431
|
-
color: "normal",
|
|
432
|
-
class: "o-sig-select-btn",
|
|
433
|
-
onClick: _cache[4] || (_cache[4] = ($event) => _ctx.filterVisible = true)
|
|
434
|
-
}, {
|
|
435
|
-
default: withCtx(() => [
|
|
436
|
-
createVNode(unref(OIcon), null, {
|
|
437
|
-
default: withCtx(() => [
|
|
438
|
-
createVNode(_component_IconFilter)
|
|
439
|
-
]),
|
|
440
|
-
_: 1
|
|
441
|
-
}),
|
|
442
|
-
createElementVNode("span", _hoisted_11, toDisplayString(unref(t)("sig.filter")), 1)
|
|
443
|
-
]),
|
|
444
|
-
_: 1
|
|
445
|
-
})
|
|
446
|
-
])) : createCommentVNode("", true)
|
|
444
|
+
])
|
|
447
445
|
], 2),
|
|
448
|
-
featureType.value !== "all" || enterSearchInput.value ? (openBlock(), createElementBlock("div",
|
|
449
|
-
sigInput.value ? (openBlock(), createElementBlock("div",
|
|
446
|
+
featureType.value !== "all" || enterSearchInput.value ? (openBlock(), createElementBlock("div", _hoisted_11, [
|
|
447
|
+
sigInput.value ? (openBlock(), createElementBlock("div", _hoisted_12, [
|
|
450
448
|
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip1")), 1),
|
|
451
|
-
createElementVNode("span",
|
|
449
|
+
createElementVNode("span", _hoisted_13, toDisplayString(filterSearchData.value.length), 1),
|
|
452
450
|
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip2")), 1),
|
|
453
|
-
locale.value === "zh" ? (openBlock(), createElementBlock("span",
|
|
451
|
+
locale.value === "zh" ? (openBlock(), createElementBlock("span", _hoisted_14, toDisplayString(sigInput.value), 1)) : createCommentVNode("", true),
|
|
454
452
|
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip3")), 1)
|
|
455
|
-
])) : (openBlock(), createElementBlock("div",
|
|
453
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_15, [
|
|
456
454
|
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip4")), 1),
|
|
457
|
-
createElementVNode("span",
|
|
455
|
+
createElementVNode("span", _hoisted_16, toDisplayString(filterSearchData.value.length), 1),
|
|
458
456
|
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip5")), 1)
|
|
459
457
|
]))
|
|
460
458
|
])) : createCommentVNode("", true),
|
|
@@ -473,10 +471,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
473
471
|
default: withCtx(() => [
|
|
474
472
|
createVNode(_sfc_main$1, {
|
|
475
473
|
sig,
|
|
476
|
-
locale: locale.value,
|
|
477
|
-
mobile: unref(lePadV),
|
|
478
474
|
onToSigDetail: toSigDetail
|
|
479
|
-
}, null, 8, ["sig"
|
|
475
|
+
}, null, 8, ["sig"])
|
|
480
476
|
]),
|
|
481
477
|
_: 2
|
|
482
478
|
}, 1032, ["flex"]);
|
|
@@ -491,8 +487,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
491
487
|
"--result-image-height": "170px"
|
|
492
488
|
}
|
|
493
489
|
})),
|
|
494
|
-
unref(lePadV) && filterDataMb.value.length && filterDataMb.value.length < filterSearchData.value.length ? (openBlock(), createElementBlock("p",
|
|
495
|
-
filterSearchData.value.length > COUNT_PER_PAGE[0] ? (openBlock(), createElementBlock("div",
|
|
490
|
+
unref(lePadV) && filterDataMb.value.length && filterDataMb.value.length < filterSearchData.value.length ? (openBlock(), createElementBlock("p", _hoisted_17, toDisplayString(unref(t)("sig.loading")), 1)) : createCommentVNode("", true),
|
|
491
|
+
filterSearchData.value.length > COUNT_PER_PAGE[0] ? (openBlock(), createElementBlock("div", _hoisted_18, [
|
|
496
492
|
createVNode(unref(OPagination), {
|
|
497
493
|
page: sigQuery.value.page,
|
|
498
494
|
"onUpdate:page": _cache[5] || (_cache[5] = ($event) => sigQuery.value.page = $event),
|
|
@@ -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,6 +85,64 @@
|
|
|
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;
|
|
@@ -123,4 +186,14 @@
|
|
|
123
186
|
font-size: 12px;
|
|
124
187
|
line-height: 18px;
|
|
125
188
|
}
|
|
189
|
+
}
|
|
190
|
+
@media (min-width: 601px) {
|
|
191
|
+
.o-sig-detail-info-card .o-sig-detail-description {
|
|
192
|
+
overflow: hidden;
|
|
193
|
+
text-overflow: ellipsis;
|
|
194
|
+
word-break: break-all;
|
|
195
|
+
display: -webkit-box;
|
|
196
|
+
-webkit-box-orient: vertical;
|
|
197
|
+
-webkit-line-clamp: 4;
|
|
198
|
+
}
|
|
126
199
|
}
|
|
@@ -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
|
};
|
|
@@ -135,9 +135,6 @@
|
|
|
135
135
|
line-height: 18px;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
.o-sig-item .o-link .o-link-label {
|
|
139
|
-
display: flex;
|
|
140
|
-
}
|
|
141
138
|
@media (max-width: 840px) {
|
|
142
139
|
.o-sig-item .o-link {
|
|
143
140
|
font-size: 18px;
|
|
@@ -168,16 +165,14 @@
|
|
|
168
165
|
line-height: 22px;
|
|
169
166
|
}
|
|
170
167
|
}
|
|
168
|
+
.o-sig-item .o-link .o-link-label {
|
|
169
|
+
display: flex;
|
|
170
|
+
}
|
|
171
171
|
.o-sig-description {
|
|
172
172
|
margin-top: var(--o-gap-3);
|
|
173
173
|
color: var(--o-color-info2);
|
|
174
174
|
font-weight: 400;
|
|
175
|
-
|
|
176
|
-
text-overflow: ellipsis;
|
|
177
|
-
word-break: break-all;
|
|
178
|
-
display: -webkit-box;
|
|
179
|
-
-webkit-box-orient: vertical;
|
|
180
|
-
-webkit-line-clamp: 2;
|
|
175
|
+
min-height: 2lh;
|
|
181
176
|
font-size: 14px;
|
|
182
177
|
line-height: 22px;
|
|
183
178
|
}
|
|
@@ -205,6 +200,14 @@
|
|
|
205
200
|
line-height: 18px;
|
|
206
201
|
}
|
|
207
202
|
}
|
|
203
|
+
.o-sig-description {
|
|
204
|
+
overflow: hidden;
|
|
205
|
+
text-overflow: ellipsis;
|
|
206
|
+
word-break: break-all;
|
|
207
|
+
display: -webkit-box;
|
|
208
|
+
-webkit-box-orient: vertical;
|
|
209
|
+
-webkit-line-clamp: 2;
|
|
210
|
+
}
|
|
208
211
|
@media (max-width: 840px) {
|
|
209
212
|
.o-sig-description {
|
|
210
213
|
margin-top: var(--o-gap-2);
|
|
@@ -239,9 +242,9 @@
|
|
|
239
242
|
}
|
|
240
243
|
.o-sig-bottom {
|
|
241
244
|
display: flex;
|
|
242
|
-
align-items: center;
|
|
243
|
-
margin-top: var(--o-gap-2);
|
|
244
245
|
color: var(--o-color-info3);
|
|
246
|
+
align-items: center;
|
|
247
|
+
margin-top: var(--o-gap-4);
|
|
245
248
|
font-size: 12px;
|
|
246
249
|
line-height: 18px;
|
|
247
250
|
}
|
|
@@ -269,17 +272,6 @@
|
|
|
269
272
|
line-height: 18px;
|
|
270
273
|
}
|
|
271
274
|
}
|
|
272
|
-
.o-sig-bottom .o-icon {
|
|
273
|
-
--icon-size: 16px;
|
|
274
|
-
margin-right: 4px;
|
|
275
|
-
}
|
|
276
|
-
.o-sig-bottom .o-icon svg path {
|
|
277
|
-
fill: currentColor;
|
|
278
|
-
}
|
|
279
|
-
.o-sig-bottom .o-sig-meta-text {
|
|
280
|
-
cursor: pointer;
|
|
281
|
-
margin-bottom: 0;
|
|
282
|
-
}
|
|
283
275
|
@media (max-width: 840px) {
|
|
284
276
|
.o-sig-bottom {
|
|
285
277
|
font-size: 16px;
|
|
@@ -310,6 +302,27 @@
|
|
|
310
302
|
line-height: 18px;
|
|
311
303
|
}
|
|
312
304
|
}
|
|
305
|
+
@media (max-width: 1680px) {
|
|
306
|
+
.o-sig-bottom {
|
|
307
|
+
margin-top: var(--o-gap-3);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
@media (min-width: ) {
|
|
311
|
+
.o-sig-bottom {
|
|
312
|
+
margin-top: var(--o-gap-2);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
.o-sig-bottom .o-icon {
|
|
316
|
+
--icon-size: 16px;
|
|
317
|
+
margin-right: 4px;
|
|
318
|
+
}
|
|
319
|
+
.o-sig-bottom .o-icon svg path {
|
|
320
|
+
fill: currentColor;
|
|
321
|
+
}
|
|
322
|
+
.o-sig-bottom .o-sig-meta-text {
|
|
323
|
+
cursor: pointer;
|
|
324
|
+
margin-bottom: 0;
|
|
325
|
+
}
|
|
313
326
|
.o-sig-meta {
|
|
314
327
|
display: flex;
|
|
315
328
|
align-items: center;
|
|
@@ -2,8 +2,6 @@ import { GroupInfoT, SigListItemT } from '../types';
|
|
|
2
2
|
type SigMergedItemT = SigListItemT & Partial<GroupInfoT>;
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
sig: SigMergedItemT;
|
|
5
|
-
locale: 'zh' | 'en';
|
|
6
|
-
mobile?: boolean;
|
|
7
5
|
};
|
|
8
6
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
9
7
|
"to-sig-detail": (sigName: string) => any;
|