@opendesign-plus/components 0.0.1-rc.76 → 0.0.1-rc.77
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/components.cjs.js +1 -1
- package/dist/components.css +1 -1
- package/dist/components.es.js +257 -255
- package/dist/treeshaking/components/sig/components/OSigDetailInfoCard.css +14 -1
- package/dist/treeshaking/components/sig/components/OSigDetailInfoCard.vue.mjs +13 -10
- package/package.json +3 -3
|
@@ -35,8 +35,13 @@
|
|
|
35
35
|
flex-wrap: wrap;
|
|
36
36
|
row-gap: var(--o-gap-2);
|
|
37
37
|
}
|
|
38
|
+
.o-sig-detail-info-card .o-sig-detail-name-box .o-sig-detail-name-wrap {
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
flex-shrink: 0;
|
|
42
|
+
}
|
|
38
43
|
.o-sig-detail-info-card .o-sig-detail-name-box.is-wrapped .o-divider {
|
|
39
|
-
|
|
44
|
+
visibility: hidden;
|
|
40
45
|
}
|
|
41
46
|
.o-sig-detail-info-card .o-sig-detail-name {
|
|
42
47
|
font-weight: 600;
|
|
@@ -147,6 +152,14 @@
|
|
|
147
152
|
display: flex;
|
|
148
153
|
align-items: center;
|
|
149
154
|
}
|
|
155
|
+
.o-sig-detail-info-card .o-link .o-link-label span {
|
|
156
|
+
overflow: hidden;
|
|
157
|
+
text-overflow: ellipsis;
|
|
158
|
+
word-break: break-all;
|
|
159
|
+
display: -webkit-box;
|
|
160
|
+
-webkit-box-orient: vertical;
|
|
161
|
+
-webkit-line-clamp: 1;
|
|
162
|
+
}
|
|
150
163
|
.o-sig-detail-info-card .o-link .o-link-label .o-icon {
|
|
151
164
|
margin-left: var(--o-gap-1);
|
|
152
165
|
font-size: 24px;
|
|
@@ -2,9 +2,10 @@ import { defineComponent, computed, ref, onMounted, onBeforeUnmount, openBlock,
|
|
|
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-
|
|
5
|
+
const _hoisted_1 = { class: "o-sig-detail-name-wrap" };
|
|
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" };
|
|
8
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
10
|
__name: "OSigDetailInfoCard",
|
|
10
11
|
props: {
|
|
@@ -28,10 +29,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
29
|
const checkWrapped = () => {
|
|
29
30
|
const box = nameBoxRef.value;
|
|
30
31
|
if (!box) return;
|
|
31
|
-
const
|
|
32
|
+
const nameWrapEl = box.querySelector(".o-sig-detail-name-wrap");
|
|
32
33
|
const linkEl = box.querySelector(".o-sig-detail-more-gitee");
|
|
33
|
-
if (!
|
|
34
|
-
isWrapped.value = Math.abs(
|
|
34
|
+
if (!nameWrapEl || !linkEl) return;
|
|
35
|
+
isWrapped.value = Math.abs(nameWrapEl.offsetTop - linkEl.offsetTop) > 16;
|
|
35
36
|
};
|
|
36
37
|
onMounted(() => {
|
|
37
38
|
checkWrapped();
|
|
@@ -55,8 +56,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
55
56
|
ref: nameBoxRef,
|
|
56
57
|
class: normalizeClass(["o-sig-detail-name-box", { "is-wrapped": isWrapped.value }])
|
|
57
58
|
}, [
|
|
58
|
-
createElementVNode("span", _hoisted_1,
|
|
59
|
-
|
|
59
|
+
createElementVNode("span", _hoisted_1, [
|
|
60
|
+
createElementVNode("span", _hoisted_2, toDisplayString(__props.sigName), 1),
|
|
61
|
+
createVNode(unref(ODivider), { direction: "v" })
|
|
62
|
+
]),
|
|
60
63
|
createVNode(unref(OLink), {
|
|
61
64
|
color: "primary",
|
|
62
65
|
href: __props.giteeAddress,
|
|
@@ -75,8 +78,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
75
78
|
_: 1
|
|
76
79
|
}, 8, ["href"])
|
|
77
80
|
], 2),
|
|
78
|
-
createElementVNode("div",
|
|
79
|
-
createElementVNode("div",
|
|
81
|
+
createElementVNode("div", _hoisted_3, [
|
|
82
|
+
createElementVNode("div", _hoisted_4, toDisplayString(__props.description), 1)
|
|
80
83
|
])
|
|
81
84
|
], 4);
|
|
82
85
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opendesign-plus/components",
|
|
3
|
-
"version": "0.0.1-rc.
|
|
3
|
+
"version": "0.0.1-rc.77",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"vue-dompurify-html": "^3.1.2",
|
|
46
46
|
"vue": "^3.5.13",
|
|
47
47
|
"element-plus": "2.13.1",
|
|
48
|
-
"@opendesign-plus/
|
|
49
|
-
"@opendesign-plus/
|
|
48
|
+
"@opendesign-plus/styles": "0.0.1-rc.2",
|
|
49
|
+
"@opendesign-plus/composables": "0.0.1-rc.10"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@vitejs/plugin-vue": "^5.2.1",
|