@opendesign-plus/components 0.0.1-rc.63 → 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/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 +9083 -9016
- 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/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/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/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
|
@@ -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
|
};
|