@opendesign-plus-test/components 0.0.1-rc.308 → 0.0.1-rc.309
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/article/OArticle.vue.d.ts +3 -0
- package/dist/components/article/components/DocTitle.vue.d.ts +2 -0
- package/dist/components/article/index.d.ts +6 -0
- package/dist/components/article/types.d.ts +1 -0
- package/dist/components/article-anchor/components/ArticleAnchorMobile.vue.d.ts +156 -1
- package/dist/components/community-updates/OCommunityUpdates.vue.d.ts +357 -2
- package/dist/components/community-updates/index.d.ts +178 -1
- package/dist/components/doc-layout/ODocLayout.vue.d.ts +5 -1
- package/dist/components/doc-layout/index.d.ts +15 -3
- package/dist/components/footer/OFooter.vue.d.ts +5 -1
- package/dist/components/footer/components/FooterList.vue.d.ts +5 -1
- package/dist/components/footer/components/FooterSimple.vue.d.ts +5 -1
- package/dist/components/footer/index.d.ts +13 -3
- package/dist/components/footer/types.d.ts +3 -1
- package/dist/components/html-viewer/utils.d.ts +1 -8
- package/dist/components.cjs.js +4 -4
- package/dist/components.css +1 -1
- package/dist/components.es.js +2049 -1915
- package/dist/components.umd.min.js +8 -0
- package/dist/treeshaking/assets/styles/element-plus.css +1 -0
- package/dist/treeshaking/components/activity/OActivityForm.vue_vue_type_style_index_0_lang.css +1 -0
- package/dist/treeshaking/components/activity/OActivityForm.vue_vue_type_style_index_1_lang.css +1 -0
- package/dist/treeshaking/components/activity/OActivityMyCalendar.vue_vue_type_style_index_0_lang.css +1 -0
- package/dist/treeshaking/components/activity/OActivityMyCalendar.vue_vue_type_style_index_1_lang.css +1 -0
- package/dist/treeshaking/components/article/OArticle.mjs +2 -2
- package/dist/treeshaking/components/article/OArticle.vue.d.ts +3 -0
- package/dist/treeshaking/components/article/OArticle.vue_vue_type_script_setup_true_lang.mjs +4 -1
- package/dist/treeshaking/components/article/{OArticle.vue_vue_type_style_index_0_scoped_f94c0e57_lang.css → OArticle.vue_vue_type_style_index_0_scoped_5f5f164f_lang.css} +11 -11
- package/dist/treeshaking/components/article/OArticleList.vue_vue_type_script_setup_true_lang.mjs +12 -4
- package/dist/treeshaking/components/article/OArticleList.vue_vue_type_style_index_0_lang.css +7 -7
- package/dist/treeshaking/components/article/components/DocTitle.mjs +2 -2
- package/dist/treeshaking/components/article/components/DocTitle.vue.d.ts +2 -0
- package/dist/treeshaking/components/article/components/DocTitle.vue_vue_type_script_setup_true_lang.mjs +48 -28
- package/dist/treeshaking/components/article/components/{DocTitle.vue_vue_type_style_index_0_scoped_d7f11be9_lang.css → DocTitle.vue_vue_type_style_index_0_scoped_f78bcf2d_lang.css} +94 -62
- package/dist/treeshaking/components/article/index.d.ts +6 -0
- package/dist/treeshaking/components/article/types.d.ts +1 -0
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.mjs +2 -2
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue_vue_type_script_setup_true_lang.mjs +4 -2
- package/dist/treeshaking/components/article-anchor/{OArticleAnchor.vue_vue_type_style_index_0_scoped_4f5aa268_lang.css → OArticleAnchor.vue_vue_type_style_index_0_scoped_4f781be4_lang.css} +9 -9
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.mjs +2 -2
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.vue.d.ts +156 -1
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.vue_vue_type_script_setup_true_lang.mjs +73 -13
- package/dist/treeshaking/components/article-anchor/components/{ArticleAnchorMobile.vue_vue_type_style_index_0_scoped_3d9befab_lang.css → ArticleAnchorMobile.vue_vue_type_style_index_0_scoped_48812513_lang.css} +13 -10
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPad.mjs +2 -2
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPad.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/treeshaking/components/article-anchor/components/{ArticleAnchorPad.vue_vue_type_style_index_0_scoped_06601233_lang.css → ArticleAnchorPad.vue_vue_type_style_index_0_scoped_3618aaf9_lang.css} +16 -12
- package/dist/treeshaking/components/brand/OBrandFile.mjs +2 -2
- package/dist/treeshaking/components/brand/{OBrandFile.vue_vue_type_style_index_0_scoped_9919f662_lang.css → OBrandFile.vue_vue_type_style_index_0_scoped_8c067acb_lang.css} +30 -15
- package/dist/treeshaking/components/community-updates/OCommunityUpdates.mjs +2 -2
- package/dist/treeshaking/components/community-updates/OCommunityUpdates.vue.d.ts +357 -2
- package/dist/treeshaking/components/community-updates/OCommunityUpdates.vue_vue_type_script_setup_true_lang.mjs +9 -2
- package/dist/treeshaking/components/community-updates/{OCommunityUpdates.vue_vue_type_style_index_0_scoped_cab17fde_lang.css → OCommunityUpdates.vue_vue_type_style_index_0_scoped_cdd7bf86_lang.css} +43 -29
- package/dist/treeshaking/components/community-updates/OCommunityUpdatesCard.vue_vue_type_style_index_0_lang.css +6 -6
- package/dist/treeshaking/components/community-updates/index.d.ts +178 -1
- package/dist/treeshaking/components/doc-layout/ODocLayout.mjs +2 -2
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue.d.ts +5 -1
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue_vue_type_script_setup_true_lang.mjs +14 -2
- package/dist/treeshaking/components/doc-layout/{ODocLayout.vue_vue_type_style_index_0_scoped_5403350d_lang.css → ODocLayout.vue_vue_type_style_index_0_scoped_a143db47_lang.css} +69 -50
- package/dist/treeshaking/components/doc-layout/index.d.ts +15 -3
- package/dist/treeshaking/components/element-plus/OElCookieNotice.vue_vue_type_style_index_0_lang.css +1 -0
- package/dist/treeshaking/components/element-plus/OElCookieNotice.vue_vue_type_style_index_1_scoped_5fa9f6f1_lang.css +1 -0
- package/dist/treeshaking/components/footer/OFooter.mjs +2 -2
- package/dist/treeshaking/components/footer/OFooter.vue.d.ts +5 -1
- package/dist/treeshaking/components/footer/OFooter.vue_vue_type_script_setup_true_lang.mjs +9 -3
- package/dist/treeshaking/components/footer/{OFooter.vue_vue_type_style_index_0_scoped_41010b1f_lang.css → OFooter.vue_vue_type_style_index_0_scoped_f0f4e884_lang.css} +13 -13
- package/dist/treeshaking/components/footer/components/FooterList.mjs +2 -2
- package/dist/treeshaking/components/footer/components/FooterList.vue.d.ts +5 -1
- package/dist/treeshaking/components/footer/components/FooterList.vue_vue_type_script_setup_true_lang.mjs +45 -25
- package/dist/treeshaking/components/footer/components/{FooterList.vue_vue_type_style_index_0_scoped_0ed4bc5f_lang.css → FooterList.vue_vue_type_style_index_0_scoped_6946816d_lang.css} +110 -106
- package/dist/treeshaking/components/footer/components/FooterSimple.mjs +2 -2
- package/dist/treeshaking/components/footer/components/FooterSimple.vue.d.ts +5 -1
- package/dist/treeshaking/components/footer/components/FooterSimple.vue_vue_type_script_setup_true_lang.mjs +28 -8
- package/dist/treeshaking/components/footer/components/{FooterSimple.vue_vue_type_style_index_0_scoped_42242446_lang.css → FooterSimple.vue_vue_type_style_index_0_scoped_1dd6e901_lang.css} +29 -25
- package/dist/treeshaking/components/footer/index.d.ts +13 -3
- package/dist/treeshaking/components/footer/types.d.ts +3 -1
- package/dist/treeshaking/components/html-viewer/OHtmlViewer.mjs +2 -2
- package/dist/treeshaking/components/html-viewer/{OHtmlViewer.vue_vue_type_style_index_0_scoped_f3e7e0ec_lang.css → OHtmlViewer.vue_vue_type_style_index_0_scoped_36fc9311_lang.css} +68 -84
- package/dist/treeshaking/components/html-viewer/utils.d.ts +1 -8
- package/dist/treeshaking/components/html-viewer/utils.mjs +8 -15
- package/dist/treeshaking/components/meeting/OMeetingCalendar.vue_vue_type_style_index_0_lang.css +1 -0
- package/dist/treeshaking/components/meeting/OMeetingForm.vue_vue_type_style_index_0_lang.css +1 -0
- package/dist/treeshaking/components/meeting/OMeetingForm.vue_vue_type_style_index_1_lang.css +1 -0
- package/dist/treeshaking/components/meeting/OMeetingMyCalendar.vue_vue_type_style_index_0_lang.css +1 -0
- package/dist/treeshaking/components/meeting/OMeetingMyCalendar.vue_vue_type_style_index_1_lang.css +1 -0
- package/dist/treeshaking/components/meeting/components/OMeetingCalendarSelector.vue_vue_type_style_index_0_lang.css +1 -0
- package/dist/treeshaking/components/meeting/components/OMeetingCalendarSelector.vue_vue_type_style_index_1_lang.css +1 -0
- package/dist/treeshaking/components/meeting/components/OMeetingPlaybackSubtitles.vue_vue_type_style_index_0_lang.css +1 -0
- package/dist/treeshaking/components/meeting/components/OMeetingPlaybackSubtitles.vue_vue_type_style_index_1_lang.css +1 -0
- package/dist/treeshaking/components/search-result/OSearchResult.mjs +2 -2
- package/dist/treeshaking/components/search-result/{OSearchResult.vue_vue_type_style_index_0_scoped_f993da8c_lang.css → OSearchResult.vue_vue_type_style_index_0_scoped_da5b23ad_lang.css} +33 -30
- package/dist/treeshaking/components/section/OSection.mjs +2 -2
- package/dist/treeshaking/components/section/OSection.vue_vue_type_script_setup_true_lang.mjs +9 -9
- package/dist/treeshaking/components/section/OSection.vue_vue_type_style_index_0_scoped_885285f2_lang.css +133 -0
- package/dist/treeshaking/components/sig/OSigList.vue_vue_type_style_index_0_lang.css +1 -0
- package/dist/treeshaking/components/user-center/internal/OUploadAvatar.vue_vue_type_style_index_0_scoped_7067a565_lang.css +1 -0
- package/dist/treeshaking/components/user-center/internal/OUploadAvatar.vue_vue_type_style_index_1_lang.css +1 -0
- package/package.json +4 -2
- package/dist/treeshaking/components/section/OSection.vue_vue_type_style_index_0_scoped_dae37748_lang.css +0 -173
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
2
|
import OArticle_vue_vue_type_script_setup_true_lang_default from "./OArticle.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
|
-
import './OArticle.
|
|
3
|
+
import './OArticle.vue_vue_type_style_index_0_scoped_5f5f164f_lang.css';
|
|
4
4
|
// src/components/article/OArticle.vue
|
|
5
|
-
var OArticle_default = /*#__PURE__*/ _plugin_vue_export_helper_default(OArticle_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var OArticle_default = /*#__PURE__*/ _plugin_vue_export_helper_default(OArticle_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-5f5f164f"]]);
|
|
6
6
|
export { OArticle_default as default };
|
|
@@ -32,6 +32,8 @@ type __VLS_Props = {
|
|
|
32
32
|
enableStar?: boolean;
|
|
33
33
|
/** 透传给 DocTitle(type='doc'):是否展示「复制链接」操作,点击复制当前页面链接 */
|
|
34
34
|
enableCopyLink?: boolean;
|
|
35
|
+
/** 透传给 DocTitle(type='doc'):桌面端(> pad_v)复制链接位置,'title' 显示在标题后,'actions' 与下载 / 收藏同区;≤ pad_v 固定收在「更多」弹窗 */
|
|
36
|
+
copyLinkPosition?: 'title' | 'actions';
|
|
35
37
|
/** 透传给 OArticlePagination:上一篇文案,留空取 i18n 默认值 */
|
|
36
38
|
prevLabel?: string;
|
|
37
39
|
/** 透传给 OArticlePagination:下一篇文案,留空取 i18n 默认值 */
|
|
@@ -162,6 +164,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
162
164
|
enableDownload: boolean;
|
|
163
165
|
enableStar: boolean;
|
|
164
166
|
enableCopyLink: boolean;
|
|
167
|
+
copyLinkPosition: "title" | "actions";
|
|
165
168
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
166
169
|
markdownRef: ({
|
|
167
170
|
$: import('vue').ComponentInternalInstance;
|
package/dist/treeshaking/components/article/OArticle.vue_vue_type_script_setup_true_lang.mjs
CHANGED
|
@@ -44,6 +44,7 @@ var OArticle_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
44
44
|
type: Boolean,
|
|
45
45
|
default: false
|
|
46
46
|
},
|
|
47
|
+
copyLinkPosition: { default: "title" },
|
|
47
48
|
prevLabel: {},
|
|
48
49
|
nextLabel: {},
|
|
49
50
|
radius: { default: "var(--o-radius-xs)" }
|
|
@@ -98,6 +99,7 @@ var OArticle_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
98
99
|
"enable-download": __props.enableDownload,
|
|
99
100
|
"enable-star": __props.enableStar,
|
|
100
101
|
"enable-copy-link": __props.enableCopyLink,
|
|
102
|
+
"copy-link-position": __props.copyLinkPosition,
|
|
101
103
|
onDownload: _cache[0] || (_cache[0] = ($event) => emit("download")),
|
|
102
104
|
onCollect: _cache[1] || (_cache[1] = ($event) => emit("collect"))
|
|
103
105
|
}, null, 8, [
|
|
@@ -108,7 +110,8 @@ var OArticle_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
108
110
|
"source-url",
|
|
109
111
|
"enable-download",
|
|
110
112
|
"enable-star",
|
|
111
|
-
"enable-copy-link"
|
|
113
|
+
"enable-copy-link",
|
|
114
|
+
"copy-link-position"
|
|
112
115
|
]))]),
|
|
113
116
|
footer: withCtx(() => [createVNode(OArticlePagination_default, {
|
|
114
117
|
prev: __props.prev,
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
.hover-icon-rotate .o-icon[data-v-
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-5f5f164f] {
|
|
2
2
|
transition: all var(--o-duration-m1) var(--o-easing-standard-in);
|
|
3
3
|
}
|
|
4
4
|
@media (hover: hover) {
|
|
5
|
-
.hover-icon-rotate:hover .o-icon[data-v-
|
|
5
|
+
.hover-icon-rotate:hover .o-icon[data-v-5f5f164f] {
|
|
6
6
|
transform: rotate(-180deg);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
.o-article[data-v-
|
|
9
|
+
.o-article[data-v-5f5f164f] {
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-direction: column;
|
|
12
12
|
min-width: 0;
|
|
13
13
|
border-radius: var(--o-article-radius);
|
|
14
14
|
}
|
|
15
|
-
.o-article[data-v-
|
|
15
|
+
.o-article[data-v-5f5f164f] .o-markdown > .o-markdown-content {
|
|
16
16
|
padding: 32px;
|
|
17
17
|
background-color: var(--o-color-fill2);
|
|
18
18
|
border-radius: 0 0 var(--o-article-radius) var(--o-article-radius);
|
|
19
19
|
}
|
|
20
20
|
@media (max-width: 1680px) {
|
|
21
|
-
.o-article[data-v-
|
|
21
|
+
.o-article[data-v-5f5f164f] .o-markdown > .o-markdown-content {
|
|
22
22
|
padding: 24px;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
@media (max-width: 1200px) {
|
|
26
|
-
.o-article[data-v-
|
|
26
|
+
.o-article[data-v-5f5f164f] .o-markdown > .o-markdown-content {
|
|
27
27
|
padding: 16px;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
@media (max-width: 840px) {
|
|
31
|
-
.o-article[data-v-
|
|
31
|
+
.o-article[data-v-5f5f164f] .o-markdown > .o-markdown-content {
|
|
32
32
|
padding: 12px;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
.o-article .doc[data-v-
|
|
35
|
+
.o-article .doc[data-v-5f5f164f] .o-markdown > .o-markdown-content {
|
|
36
36
|
padding: 32px 16px 16px 16px;
|
|
37
37
|
}
|
|
38
38
|
@media (max-width: 1680px) {
|
|
39
|
-
.o-article .doc[data-v-
|
|
39
|
+
.o-article .doc[data-v-5f5f164f] .o-markdown > .o-markdown-content {
|
|
40
40
|
padding: 24px 12px 12px 12px;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
@media (max-width: 1200px) {
|
|
44
|
-
.o-article .doc[data-v-
|
|
44
|
+
.o-article .doc[data-v-5f5f164f] .o-markdown > .o-markdown-content {
|
|
45
45
|
padding: 16px 8px 8px 8px;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
@media (max-width: 840px) {
|
|
49
|
-
.o-article .doc[data-v-
|
|
49
|
+
.o-article .doc[data-v-5f5f164f] .o-markdown > .o-markdown-content {
|
|
50
50
|
padding: 16px 0 0 0;
|
|
51
51
|
}
|
|
52
52
|
}
|
package/dist/treeshaking/components/article/OArticleList.vue_vue_type_script_setup_true_lang.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import OEmpty_default from "../empty/OEmpty.mjs";
|
|
2
2
|
import icon_time_default from "../../_virtual/~icons/components/icon-time.mjs";
|
|
3
3
|
import icon_avatar_line_default from "../../_virtual/~icons/components/icon-avatar-line.mjs";
|
|
4
|
-
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useSlots, watch, withCtx } from "vue";
|
|
4
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, normalizeStyle, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useSlots, watch, withCtx } from "vue";
|
|
5
5
|
import { OCard, OCol, OIcon, OPagination, ORow, OTag } from "@opensig/opendesign";
|
|
6
6
|
import { useScreen } from "@opendesign-plus/composables";
|
|
7
7
|
// src/components/article/OArticleList.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -39,7 +39,8 @@ var OArticleList_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
39
39
|
] },
|
|
40
40
|
defaultCovers: { default: () => [] },
|
|
41
41
|
emptyImg: {},
|
|
42
|
-
mobileLayout: { default: "h" }
|
|
42
|
+
mobileLayout: { default: "h" },
|
|
43
|
+
coverHeight: {}
|
|
43
44
|
},
|
|
44
45
|
emits: ["page-change"],
|
|
45
46
|
setup(__props, { emit: __emit }) {
|
|
@@ -76,6 +77,11 @@ var OArticleList_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
76
77
|
const covers = props.defaultCovers;
|
|
77
78
|
return covers.length ? covers[index % covers.length] : void 0;
|
|
78
79
|
};
|
|
80
|
+
const coverHeightStyle = computed(() => {
|
|
81
|
+
const h = props.coverHeight;
|
|
82
|
+
if (h === void 0 || h === null || h === "") return;
|
|
83
|
+
return { "--article-cover-height": typeof h === "number" ? `${h}px` : h };
|
|
84
|
+
});
|
|
79
85
|
return (_ctx, _cache) => {
|
|
80
86
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
81
87
|
unref(slots).filter ? (openBlock(), createElementBlock("div", _hoisted_2, [renderSlot(_ctx.$slots, "filter")])) : createCommentVNode("", true),
|
|
@@ -101,7 +107,8 @@ var OArticleList_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
101
107
|
"title-max-row": 2,
|
|
102
108
|
cover: getCover(item, index),
|
|
103
109
|
href: item.href,
|
|
104
|
-
layout: unref(lePadV) ? __props.mobileLayout : "v"
|
|
110
|
+
layout: unref(lePadV) ? __props.mobileLayout : "v",
|
|
111
|
+
style: normalizeStyle(coverHeightStyle.value)
|
|
105
112
|
}, createSlots({
|
|
106
113
|
detail: withCtx(() => [item.tags?.length ? (openBlock(), createElementBlock("div", _hoisted_4, [(openBlock(true), createElementBlock(Fragment, null, renderList(item.tags, (tag, idx) => {
|
|
107
114
|
return openBlock(), createBlock(unref(OTag), {
|
|
@@ -150,7 +157,8 @@ var OArticleList_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
150
157
|
"title",
|
|
151
158
|
"cover",
|
|
152
159
|
"href",
|
|
153
|
-
"layout"
|
|
160
|
+
"layout",
|
|
161
|
+
"style"
|
|
154
162
|
])])]),
|
|
155
163
|
_: 2
|
|
156
164
|
}, 1024);
|
package/dist/treeshaking/components/article/OArticleList.vue_vue_type_style_index_0_lang.css
CHANGED
|
@@ -86,36 +86,36 @@
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
.o-article-list .article-content .o-card .o-card-cover-img {
|
|
89
|
-
height: 266px;
|
|
89
|
+
height: var(--article-cover-height, 266px);
|
|
90
90
|
}
|
|
91
91
|
@media (min-width: 1921px) {
|
|
92
92
|
.o-article-list .article-content .o-card .o-card-cover-img {
|
|
93
|
-
height: 266px;
|
|
93
|
+
height: var(--article-cover-height, 266px);
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
@media (max-width: 1680px) {
|
|
97
97
|
.o-article-list .article-content .o-card .o-card-cover-img {
|
|
98
|
-
height: 245px;
|
|
98
|
+
height: var(--article-cover-height, 245px);
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
@media (min-width: 841px) and (max-width: 1200px) {
|
|
102
102
|
.o-article-list .article-content .o-card .o-card-cover-img {
|
|
103
|
-
height: 184px;
|
|
103
|
+
height: var(--article-cover-height, 184px);
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
@media (min-width: 601px) and (max-width: 840px) {
|
|
107
107
|
.o-article-list .article-content .o-card .o-card-cover-img {
|
|
108
|
-
height: 184px;
|
|
108
|
+
height: var(--article-cover-height, 184px);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
@media (max-width: 600px) {
|
|
112
112
|
.o-article-list .article-content .o-card .o-card-cover-img {
|
|
113
|
-
height: 100
|
|
113
|
+
height: var(--article-cover-height, 100%);
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
@media (max-width: 600px) {
|
|
117
117
|
.o-article-list .article-content .o-card.o-card-layout-v .o-card-cover-img {
|
|
118
|
-
height: 184px;
|
|
118
|
+
height: var(--article-cover-height, 184px);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
.o-article-list .article-content .o-card .o-card-detail {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
2
|
import DocTitle_vue_vue_type_script_setup_true_lang_default from "./DocTitle.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
|
-
import './DocTitle.
|
|
3
|
+
import './DocTitle.vue_vue_type_style_index_0_scoped_f78bcf2d_lang.css';
|
|
4
4
|
// src/components/article/components/DocTitle.vue
|
|
5
|
-
var DocTitle_default = /*#__PURE__*/ _plugin_vue_export_helper_default(DocTitle_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var DocTitle_default = /*#__PURE__*/ _plugin_vue_export_helper_default(DocTitle_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-f78bcf2d"]]);
|
|
6
6
|
export { DocTitle_default as default };
|
|
@@ -9,6 +9,7 @@ type __VLS_Props = {
|
|
|
9
9
|
enableDownload?: MaybeRefOrGetter<boolean>;
|
|
10
10
|
enableStar?: MaybeRefOrGetter<boolean>;
|
|
11
11
|
enableCopyLink?: MaybeRefOrGetter<boolean>;
|
|
12
|
+
copyLinkPosition?: 'title' | 'actions';
|
|
12
13
|
};
|
|
13
14
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
15
|
download: () => any;
|
|
@@ -20,5 +21,6 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
20
21
|
enableDownload: MaybeRefOrGetter<boolean>;
|
|
21
22
|
enableStar: MaybeRefOrGetter<boolean>;
|
|
22
23
|
enableCopyLink: MaybeRefOrGetter<boolean>;
|
|
24
|
+
copyLinkPosition: "title" | "actions";
|
|
23
25
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
24
26
|
export default _default;
|
|
@@ -10,31 +10,32 @@ import { useClipboard, useScreen } from "@opendesign-plus/composables";
|
|
|
10
10
|
import { buildVueDompurifyHTMLDirective } from "vue-dompurify-html";
|
|
11
11
|
// src/components/article/components/DocTitle.vue?vue&type=script&setup=true&lang.ts
|
|
12
12
|
var _hoisted_1 = { class: "o-doc-title-content" };
|
|
13
|
-
var _hoisted_2 = {
|
|
13
|
+
var _hoisted_2 = { class: "o-doc-title-text-wrap" };
|
|
14
|
+
var _hoisted_3 = {
|
|
14
15
|
key: 0,
|
|
15
16
|
class: "o-doc-title-text"
|
|
16
17
|
};
|
|
17
|
-
var
|
|
18
|
+
var _hoisted_4 = {
|
|
18
19
|
key: 1,
|
|
19
20
|
class: "o-doc-title-text __mounted"
|
|
20
21
|
};
|
|
21
|
-
var
|
|
22
|
+
var _hoisted_5 = {
|
|
22
23
|
key: 0,
|
|
23
24
|
class: "o-doc-title-actions"
|
|
24
25
|
};
|
|
25
|
-
var
|
|
26
|
-
var
|
|
26
|
+
var _hoisted_6 = { class: "o-doc-title-actions-left" };
|
|
27
|
+
var _hoisted_7 = {
|
|
27
28
|
key: 0,
|
|
28
29
|
class: "o-doc-title-update-time"
|
|
29
30
|
};
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var
|
|
31
|
+
var _hoisted_8 = { class: "o-doc-title-dlg-action-box-icon" };
|
|
32
|
+
var _hoisted_9 = { class: "o-doc-title-dlg-action-box-label" };
|
|
33
|
+
var _hoisted_10 = { class: "o-doc-title-dlg-action-box-icon" };
|
|
34
|
+
var _hoisted_11 = { class: "o-doc-title-dlg-action-box-label" };
|
|
35
|
+
var _hoisted_12 = { class: "o-doc-title-dlg-action-box-icon" };
|
|
36
|
+
var _hoisted_13 = { class: "o-doc-title-dlg-action-box-label" };
|
|
37
|
+
var _hoisted_14 = { class: "o-doc-title-dlg-action-box-icon" };
|
|
38
|
+
var _hoisted_15 = { class: "o-doc-title-dlg-action-box-label" };
|
|
38
39
|
var DocTitle_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
39
40
|
__name: "DocTitle",
|
|
40
41
|
props: {
|
|
@@ -45,11 +46,12 @@ var DocTitle_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
45
46
|
updateTime: {},
|
|
46
47
|
enableDownload: { default: false },
|
|
47
48
|
enableStar: { default: false },
|
|
48
|
-
enableCopyLink: { default: false }
|
|
49
|
+
enableCopyLink: { default: false },
|
|
50
|
+
copyLinkPosition: { default: "title" }
|
|
49
51
|
},
|
|
50
52
|
emits: ["download", "collect"],
|
|
51
53
|
setup(__props, { emit: __emit }) {
|
|
52
|
-
useCssVars((_ctx) => ({ "
|
|
54
|
+
useCssVars((_ctx) => ({ "d9c0b960": bgImage.value }));
|
|
53
55
|
const props = __props;
|
|
54
56
|
const emit = __emit;
|
|
55
57
|
const bgImage = computed(() => {
|
|
@@ -62,7 +64,8 @@ var DocTitle_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
62
64
|
const enableStar = computed(() => toValue(props.enableStar));
|
|
63
65
|
const enableCopyLink = computed(() => toValue(props.enableCopyLink));
|
|
64
66
|
const showActions = computed(() => sourceUrl.value || updateTime.value || enableDownload.value || enableStar.value || enableCopyLink.value);
|
|
65
|
-
const
|
|
67
|
+
const showDesktopActions = computed(() => sourceUrl.value || updateTime.value || enableDownload.value || enableStar.value || enableCopyLink.value && props.copyLinkPosition === "actions");
|
|
68
|
+
const showDivider = computed(() => sourceUrl.value && (enableDownload.value || enableStar.value || enableCopyLink.value && props.copyLinkPosition === "actions"));
|
|
66
69
|
const actionCount = computed(() => [
|
|
67
70
|
enableDownload.value,
|
|
68
71
|
enableStar.value,
|
|
@@ -71,6 +74,8 @@ var DocTitle_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
71
74
|
].filter(Boolean).length);
|
|
72
75
|
const vDompurifyHtml = buildVueDompurifyHTMLDirective({ default: { FORBID_ATTR: ["style"] } });
|
|
73
76
|
const { lePadV } = useScreen();
|
|
77
|
+
const showCopyInTitle = computed(() => enableCopyLink.value && !lePadV.value && props.copyLinkPosition === "title");
|
|
78
|
+
const showCopyInActions = computed(() => enableCopyLink.value && !lePadV.value && props.copyLinkPosition === "actions");
|
|
74
79
|
const { t } = useI18n();
|
|
75
80
|
const message = useMessage();
|
|
76
81
|
const toast = useToast();
|
|
@@ -100,14 +105,29 @@ var DocTitle_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
100
105
|
return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", { class: normalizeClass(["o-doc-title", {
|
|
101
106
|
"is-simple": unref(lePadV),
|
|
102
107
|
"first-h1": true
|
|
103
|
-
}]) }, [createElementVNode("div", _hoisted_1, [__props.title ? (openBlock(), createElementBlock("div",
|
|
108
|
+
}]) }, [createElementVNode("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [__props.title ? (openBlock(), createElementBlock("div", _hoisted_3, [createElementVNode("h1", null, toDisplayString(__props.title), 1)])) : withDirectives((openBlock(), createElementBlock("div", _hoisted_4, null, 512)), [[unref(vDompurifyHtml), __props.el?.outerHTML]]), showCopyInTitle.value ? (openBlock(), createBlock(unref(OPopover), {
|
|
109
|
+
key: 2,
|
|
110
|
+
position: "right",
|
|
111
|
+
trigger: "hover",
|
|
112
|
+
offset: 8
|
|
113
|
+
}, {
|
|
114
|
+
target: withCtx(() => [createVNode(unref(OIcon), {
|
|
115
|
+
class: "o-doc-title-icon-copy",
|
|
116
|
+
onClick: copyLink
|
|
117
|
+
}, {
|
|
118
|
+
default: withCtx(() => [createVNode(unref(icon_link_default))]),
|
|
119
|
+
_: 1
|
|
120
|
+
})]),
|
|
121
|
+
default: withCtx(() => [createElementVNode("span", null, toDisplayString(unref(t)("common.copyLink")), 1)]),
|
|
122
|
+
_: 1
|
|
123
|
+
})) : createCommentVNode("", true)])]), (unref(lePadV) ? showActions.value : showDesktopActions.value) ? (openBlock(), createElementBlock("div", _hoisted_5, [unref(lePadV) ? (openBlock(), createBlock(unref(OIcon), {
|
|
104
124
|
key: 0,
|
|
105
125
|
class: "o-doc-title-icon-more",
|
|
106
126
|
onClick: _cache[0] || (_cache[0] = ($event) => showActionsDlg.value = true)
|
|
107
127
|
}, {
|
|
108
128
|
default: withCtx(() => [createVNode(unref(icon_more_default))]),
|
|
109
129
|
_: 1
|
|
110
|
-
})) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createElementVNode("div",
|
|
130
|
+
})) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createElementVNode("div", _hoisted_6, [
|
|
111
131
|
enableDownload.value ? (openBlock(), createBlock(unref(OPopover), {
|
|
112
132
|
key: 0,
|
|
113
133
|
position: "top",
|
|
@@ -140,7 +160,7 @@ var DocTitle_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
140
160
|
default: withCtx(() => [createElementVNode("span", null, toDisplayString(unref(t)("md.starDoc")), 1)]),
|
|
141
161
|
_: 1
|
|
142
162
|
})) : createCommentVNode("", true),
|
|
143
|
-
|
|
163
|
+
showCopyInActions.value ? (openBlock(), createBlock(unref(OPopover), {
|
|
144
164
|
key: 2,
|
|
145
165
|
position: "top",
|
|
146
166
|
trigger: "hover",
|
|
@@ -175,7 +195,7 @@ var DocTitle_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
175
195
|
})]),
|
|
176
196
|
_: 1
|
|
177
197
|
}, 8, ["href"])) : createCommentVNode("", true)
|
|
178
|
-
]), updateTime.value ? (openBlock(), createElementBlock("span",
|
|
198
|
+
]), updateTime.value ? (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(unref(t)("md.updateTime")) + toDisplayString(updateTime.value), 1)) : createCommentVNode("", true)], 64))])) : createCommentVNode("", true)], 2), unref(lePadV) && showActions.value ? (openBlock(), createBlock(unref(ODialog), {
|
|
179
199
|
key: 0,
|
|
180
200
|
visible: showActionsDlg.value,
|
|
181
201
|
"onUpdate:visible": _cache[3] || (_cache[3] = ($event) => showActionsDlg.value = $event),
|
|
@@ -188,34 +208,34 @@ var DocTitle_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
188
208
|
key: 0,
|
|
189
209
|
class: "o-doc-title-dlg-action-box",
|
|
190
210
|
onClick: onDownload
|
|
191
|
-
}, [createElementVNode("div",
|
|
211
|
+
}, [createElementVNode("div", _hoisted_8, [createVNode(unref(OIcon), null, {
|
|
192
212
|
default: withCtx(() => [createVNode(unref(icon_download_default))]),
|
|
193
213
|
_: 1
|
|
194
|
-
})]), createElementVNode("div",
|
|
214
|
+
})]), createElementVNode("div", _hoisted_9, toDisplayString(unref(t)("md.downloadDoc")), 1)])) : createCommentVNode("", true),
|
|
195
215
|
enableStar.value ? (openBlock(), createElementBlock("div", {
|
|
196
216
|
key: 1,
|
|
197
217
|
class: "o-doc-title-dlg-action-box",
|
|
198
218
|
onClick: onCollect
|
|
199
|
-
}, [createElementVNode("div",
|
|
219
|
+
}, [createElementVNode("div", _hoisted_10, [createVNode(unref(OIcon), null, {
|
|
200
220
|
default: withCtx(() => [createVNode(unref(icon_star_default))]),
|
|
201
221
|
_: 1
|
|
202
|
-
})]), createElementVNode("div",
|
|
222
|
+
})]), createElementVNode("div", _hoisted_11, toDisplayString(unref(t)("md.starDoc")), 1)])) : createCommentVNode("", true),
|
|
203
223
|
enableCopyLink.value ? (openBlock(), createElementBlock("div", {
|
|
204
224
|
key: 2,
|
|
205
225
|
class: "o-doc-title-dlg-action-box",
|
|
206
226
|
onClick: copyLink
|
|
207
|
-
}, [createElementVNode("div",
|
|
227
|
+
}, [createElementVNode("div", _hoisted_12, [createVNode(unref(OIcon), null, {
|
|
208
228
|
default: withCtx(() => [createVNode(unref(icon_link_default))]),
|
|
209
229
|
_: 1
|
|
210
|
-
})]), createElementVNode("div",
|
|
230
|
+
})]), createElementVNode("div", _hoisted_13, toDisplayString(unref(t)("common.copyLink")), 1)])) : createCommentVNode("", true),
|
|
211
231
|
sourceUrl.value ? (openBlock(), createElementBlock("div", {
|
|
212
232
|
key: 3,
|
|
213
233
|
class: "o-doc-title-dlg-action-box",
|
|
214
234
|
onClick: openSourceUrl
|
|
215
|
-
}, [createElementVNode("div",
|
|
235
|
+
}, [createElementVNode("div", _hoisted_14, [createVNode(unref(OIcon), null, {
|
|
216
236
|
default: withCtx(() => [createVNode(unref(icon_outlink_default))]),
|
|
217
237
|
_: 1
|
|
218
|
-
})]), createElementVNode("div",
|
|
238
|
+
})]), createElementVNode("div", _hoisted_15, toDisplayString(unref(t)("md.gitSourceShort")), 1)])) : createCommentVNode("", true)
|
|
219
239
|
], 2)]),
|
|
220
240
|
_: 1
|
|
221
241
|
}, 8, ["visible"])) : createCommentVNode("", true)], 64);
|