@opendesign-plus/components 0.0.1-rc.93 → 0.0.1-rc.95
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/activity/index.d.ts +9 -9
- package/dist/components/anchor-bar/OAnchorBar.vue.d.ts +2 -2
- package/dist/components/anchor-bar/index.d.ts +9 -9
- package/dist/components/article/OArticle.vue.d.ts +196 -14
- package/dist/components/article/components/ArticleTitle.vue.d.ts +22 -0
- package/dist/components/{markdown/components/MarkdownPageTitle.vue.d.ts → article/components/DocTitle.vue.d.ts} +6 -5
- package/dist/components/article/index.d.ts +151 -50
- package/dist/components/article-anchor/index.d.ts +9 -9
- package/dist/components/article-pagination/index.d.ts +17 -17
- package/dist/components/banner/index.d.ts +6 -6
- package/dist/components/brand/index.d.ts +15 -15
- package/dist/components/doc-layout/ODocLayout.vue.d.ts +38 -0
- package/dist/components/doc-layout/index.d.ts +59 -0
- 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/markdown/OMarkdown.vue.d.ts +7 -16
- package/dist/components/markdown/index.d.ts +13 -45
- package/dist/components/meeting/OMeetingPlayback.vue.d.ts +6 -6
- package/dist/components/meeting/components/OMeetingPlaybackVideo.vue.d.ts +1 -1
- package/dist/components/meeting/index.d.ts +51 -51
- package/dist/components/org/index.d.ts +9 -9
- package/dist/components/recursion-menu/index.d.ts +3 -3
- package/dist/components/search/index.d.ts +11 -11
- package/dist/components/search-result/OSearchResultHeader.vue.d.ts +24 -24
- package/dist/components/search-result/index.d.ts +31 -31
- package/dist/components/sig/index.d.ts +15 -15
- package/dist/components/summit/index.d.ts +12 -12
- package/dist/components/user-center/index.d.ts +18 -18
- package/dist/components/video/index.d.ts +3 -3
- package/dist/components.cjs.js +44 -44
- package/dist/components.css +1 -1
- package/dist/components.es.js +10037 -9808
- package/dist/index.d.ts +1 -0
- package/dist/treeshaking/_virtual/icon-menu-fold.mjs +20 -0
- package/dist/treeshaking/_virtual/icon-menu-unfold.mjs +20 -0
- package/dist/treeshaking/components/activity/index.d.ts +9 -9
- package/dist/treeshaking/components/anchor-bar/OAnchorBar.vue.d.ts +2 -2
- package/dist/treeshaking/components/anchor-bar/index.d.ts +9 -9
- package/dist/treeshaking/components/article/OArticle.css +18 -124
- package/dist/treeshaking/components/article/OArticle.vue.d.ts +196 -14
- package/dist/treeshaking/components/article/OArticle.vue.mjs +1 -1
- package/dist/treeshaking/components/article/OArticle.vue2.mjs +48 -82
- package/dist/treeshaking/components/article/components/ArticleTitle.css +123 -0
- package/dist/treeshaking/components/article/components/ArticleTitle.vue.d.ts +22 -0
- package/dist/treeshaking/components/article/components/ArticleTitle.vue.mjs +7 -0
- package/dist/treeshaking/components/article/components/ArticleTitle.vue2.mjs +97 -0
- package/dist/treeshaking/components/article/components/DocTitle.css +246 -0
- package/dist/treeshaking/components/{markdown/components/MarkdownPageTitle.vue.d.ts → article/components/DocTitle.vue.d.ts} +6 -5
- package/dist/treeshaking/components/article/components/DocTitle.vue.mjs +7 -0
- package/dist/treeshaking/components/{markdown/components/MarkdownPageTitle.vue2.mjs → article/components/DocTitle.vue2.mjs} +131 -80
- package/dist/treeshaking/components/article/index.d.ts +151 -50
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.css +4 -4
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue.mjs +1 -1
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue2.mjs +4 -5
- package/dist/treeshaking/components/article-anchor/index.d.ts +9 -9
- package/dist/treeshaking/components/article-pagination/index.d.ts +17 -17
- package/dist/treeshaking/components/banner/index.d.ts +6 -6
- package/dist/treeshaking/components/brand/index.d.ts +15 -15
- package/dist/treeshaking/components/doc-layout/ODocLayout.css +271 -0
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue.d.ts +38 -0
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue.mjs +7 -0
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue2.mjs +165 -0
- package/dist/treeshaking/components/doc-layout/index.d.ts +59 -0
- package/dist/treeshaking/components/doc-layout/index.mjs +9 -0
- package/dist/treeshaking/components/events/OEventsList.vue.mjs +1 -1
- 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/markdown/OMarkdown.vue.d.ts +7 -16
- package/dist/treeshaking/components/markdown/OMarkdown.vue.mjs +1 -1
- package/dist/treeshaking/components/markdown/OMarkdown.vue2.mjs +47 -36
- package/dist/treeshaking/components/markdown/OMarkdown2.css +3 -3
- package/dist/treeshaking/components/markdown/components/MarkdownTitle.css +22 -22
- package/dist/treeshaking/components/markdown/components/MarkdownTitle.vue.mjs +1 -1
- package/dist/treeshaking/components/markdown/components/MarkdownTitle.vue2.mjs +11 -5
- package/dist/treeshaking/components/markdown/index.d.ts +13 -45
- package/dist/treeshaking/components/meeting/OMeetingPlayback.vue.d.ts +6 -6
- package/dist/treeshaking/components/meeting/components/OMeetingPlaybackVideo.vue.d.ts +1 -1
- package/dist/treeshaking/components/meeting/index.d.ts +51 -51
- package/dist/treeshaking/components/org/index.d.ts +9 -9
- package/dist/treeshaking/components/recursion-menu/ORecursionMenu.vue.mjs +1 -1
- package/dist/treeshaking/components/recursion-menu/index.d.ts +3 -3
- package/dist/treeshaking/components/search/index.d.ts +11 -11
- package/dist/treeshaking/components/search-result/OSearchResultHeader.vue.d.ts +24 -24
- package/dist/treeshaking/components/search-result/index.d.ts +31 -31
- package/dist/treeshaking/components/sig/index.d.ts +15 -15
- package/dist/treeshaking/components/summit/index.d.ts +12 -12
- package/dist/treeshaking/components/user-center/index.d.ts +18 -18
- package/dist/treeshaking/components/user-center/index.mjs +0 -2
- package/dist/treeshaking/components/video/index.d.ts +3 -3
- package/dist/treeshaking/index.d.ts +1 -0
- package/dist/treeshaking/index.mjs +2 -0
- package/package.json +2 -2
- package/dist/components/markdown/replacer/h1.d.ts +0 -11
- package/dist/treeshaking/components/markdown/components/MarkdownPageTitle.css +0 -261
- package/dist/treeshaking/components/markdown/components/MarkdownPageTitle.vue.mjs +0 -7
- package/dist/treeshaking/components/markdown/replacer/h1.d.ts +0 -11
- package/dist/treeshaking/components/markdown/replacer/h1.mjs +0 -29
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { MaybeRefOrGetter } from 'vue';
|
|
2
|
-
import { OMarkdownMaybeElementT } from '
|
|
2
|
+
import { OMarkdownMaybeElementT } from '../../markdown/types';
|
|
3
3
|
type __VLS_Props = {
|
|
4
|
-
el
|
|
4
|
+
el?: OMarkdownMaybeElementT;
|
|
5
|
+
title?: string;
|
|
5
6
|
bgImage?: MaybeRefOrGetter<string>;
|
|
6
7
|
sourceUrl?: MaybeRefOrGetter<string>;
|
|
7
8
|
updateTime?: MaybeRefOrGetter<string>;
|
|
8
9
|
enableDownload?: MaybeRefOrGetter<boolean>;
|
|
9
10
|
enableStar?: MaybeRefOrGetter<boolean>;
|
|
11
|
+
enableCopyLink?: MaybeRefOrGetter<boolean>;
|
|
10
12
|
};
|
|
11
13
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
14
|
download: () => any;
|
|
@@ -17,7 +19,6 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
17
19
|
}>, {
|
|
18
20
|
enableDownload: MaybeRefOrGetter<boolean>;
|
|
19
21
|
enableStar: MaybeRefOrGetter<boolean>;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}, any>;
|
|
22
|
+
enableCopyLink: MaybeRefOrGetter<boolean>;
|
|
23
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
24
|
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from "./DocTitle.vue2.mjs";
|
|
2
|
+
import './DocTitle.css';
|
|
3
|
+
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const DocTitle = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ea84d56c"]]);
|
|
5
|
+
export {
|
|
6
|
+
DocTitle as default
|
|
7
|
+
};
|
|
@@ -1,45 +1,56 @@
|
|
|
1
|
-
import { defineComponent, useCssVars, computed, toValue, ref,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { useScreen } from "@opendesign-plus/composables";
|
|
1
|
+
import { defineComponent, useCssVars, computed, toValue, ref, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, unref, toDisplayString, withDirectives, createBlock, withCtx, createVNode, createCommentVNode, createTextVNode } from "vue";
|
|
2
|
+
import { useMessage, useToast, OIcon, OPopover, ODivider, OLink, ODialog } from "@opensig/opendesign";
|
|
3
|
+
import { useScreen, useClipboard } from "@opendesign-plus/composables";
|
|
5
4
|
import { buildVueDompurifyHTMLDirective } from "vue-dompurify-html";
|
|
6
5
|
import { useI18n } from "../../../i18n/index.mjs";
|
|
7
6
|
import IconOutlink from "../../../_virtual/icon-outlink.mjs";
|
|
8
7
|
import IconMore from "../../../_virtual/icon-more.mjs";
|
|
9
8
|
import IconDownload from "../../../_virtual/icon-download.mjs";
|
|
10
9
|
import IconStar from "../../../_virtual/icon-star.mjs";
|
|
11
|
-
|
|
12
|
-
const
|
|
10
|
+
import IconLink from "../../../_virtual/icon-link.mjs";
|
|
11
|
+
const _hoisted_1 = { class: "o-doc-title-content" };
|
|
12
|
+
const _hoisted_2 = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "o-doc-title-text"
|
|
15
|
+
};
|
|
13
16
|
const _hoisted_3 = {
|
|
17
|
+
key: 1,
|
|
18
|
+
class: "o-doc-title-text __mounted"
|
|
19
|
+
};
|
|
20
|
+
const _hoisted_4 = {
|
|
14
21
|
key: 0,
|
|
15
|
-
class: "o-
|
|
22
|
+
class: "o-doc-title-actions"
|
|
16
23
|
};
|
|
17
|
-
const
|
|
18
|
-
const
|
|
24
|
+
const _hoisted_5 = { class: "o-doc-title-actions-left" };
|
|
25
|
+
const _hoisted_6 = {
|
|
19
26
|
key: 0,
|
|
20
|
-
class: "o-
|
|
27
|
+
class: "o-doc-title-update-time"
|
|
21
28
|
};
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
+
const _hoisted_7 = { class: "o-doc-title-dlg-action-box-container" };
|
|
30
|
+
const _hoisted_8 = { class: "o-doc-title-dlg-action-box-icon" };
|
|
31
|
+
const _hoisted_9 = { class: "o-doc-title-dlg-action-box-label" };
|
|
32
|
+
const _hoisted_10 = { class: "o-doc-title-dlg-action-box-icon" };
|
|
33
|
+
const _hoisted_11 = { class: "o-doc-title-dlg-action-box-label" };
|
|
34
|
+
const _hoisted_12 = { class: "o-doc-title-dlg-action-box-icon" };
|
|
35
|
+
const _hoisted_13 = { class: "o-doc-title-dlg-action-box-label" };
|
|
36
|
+
const _hoisted_14 = { class: "o-doc-title-dlg-action-box-icon" };
|
|
37
|
+
const _hoisted_15 = { class: "o-doc-title-dlg-action-box-label" };
|
|
29
38
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
30
|
-
__name: "
|
|
39
|
+
__name: "DocTitle",
|
|
31
40
|
props: {
|
|
32
41
|
el: {},
|
|
42
|
+
title: {},
|
|
33
43
|
bgImage: {},
|
|
34
44
|
sourceUrl: {},
|
|
35
45
|
updateTime: {},
|
|
36
46
|
enableDownload: { default: false },
|
|
37
|
-
enableStar: { default: false }
|
|
47
|
+
enableStar: { default: false },
|
|
48
|
+
enableCopyLink: { default: false }
|
|
38
49
|
},
|
|
39
50
|
emits: ["download", "collect"],
|
|
40
51
|
setup(__props, { emit: __emit }) {
|
|
41
52
|
useCssVars((_ctx) => ({
|
|
42
|
-
"
|
|
53
|
+
"bc7b9dec": bgImage.value
|
|
43
54
|
}));
|
|
44
55
|
const props = __props;
|
|
45
56
|
const emit = __emit;
|
|
@@ -51,7 +62,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
51
62
|
const updateTime = computed(() => toValue(props.updateTime));
|
|
52
63
|
const enableDownload = computed(() => toValue(props.enableDownload));
|
|
53
64
|
const enableStar = computed(() => toValue(props.enableStar));
|
|
54
|
-
const
|
|
65
|
+
const enableCopyLink = computed(() => toValue(props.enableCopyLink));
|
|
66
|
+
const showActions = computed(() => sourceUrl.value || updateTime.value || enableDownload.value || enableStar.value || enableCopyLink.value);
|
|
55
67
|
const showDivider = computed(() => sourceUrl.value && (enableDownload.value || enableStar.value));
|
|
56
68
|
const vDompurifyHtml = buildVueDompurifyHTMLDirective({
|
|
57
69
|
default: {
|
|
@@ -59,59 +71,61 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
59
71
|
}
|
|
60
72
|
});
|
|
61
73
|
const { lePadV } = useScreen();
|
|
62
|
-
const { width } = useWindowSize();
|
|
63
74
|
const { t } = useI18n();
|
|
64
|
-
const
|
|
65
|
-
const
|
|
75
|
+
const message = useMessage();
|
|
76
|
+
const toast = useToast();
|
|
66
77
|
const showActionsDlg = ref(false);
|
|
67
|
-
const checkShowDownloadPdf = () => {
|
|
68
|
-
var _a;
|
|
69
|
-
const mdBodyH1 = document.querySelector(".o-markdown-body h1");
|
|
70
|
-
const myH1 = (_a = titleRef.value) == null ? void 0 : _a.querySelector("h1");
|
|
71
|
-
isFirstH1.value = myH1 === mdBodyH1;
|
|
72
|
-
};
|
|
73
|
-
onMounted(async () => {
|
|
74
|
-
await nextTick();
|
|
75
|
-
checkShowDownloadPdf();
|
|
76
|
-
});
|
|
77
|
-
watch([lePadV, width], async () => {
|
|
78
|
-
await nextTick();
|
|
79
|
-
checkShowDownloadPdf();
|
|
80
|
-
});
|
|
81
78
|
const openSourceUrl = () => {
|
|
82
79
|
window.open(sourceUrl.value, "_blank", "noopener,noreferrer");
|
|
80
|
+
showActionsDlg.value = false;
|
|
81
|
+
};
|
|
82
|
+
const copyLink = async () => {
|
|
83
|
+
const success = await useClipboard(window.location.href);
|
|
84
|
+
if (success) {
|
|
85
|
+
if (lePadV.value) {
|
|
86
|
+
toast.show(t("common.copySuccess"));
|
|
87
|
+
showActionsDlg.value = false;
|
|
88
|
+
} else {
|
|
89
|
+
message.success(t("common.copySuccess"));
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
const onDownload = () => {
|
|
94
|
+
emit("download");
|
|
95
|
+
showActionsDlg.value = false;
|
|
96
|
+
};
|
|
97
|
+
const onCollect = () => {
|
|
98
|
+
emit("collect");
|
|
99
|
+
showActionsDlg.value = false;
|
|
83
100
|
};
|
|
84
101
|
return (_ctx, _cache) => {
|
|
85
102
|
var _a;
|
|
86
103
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
87
104
|
createElementVNode("div", {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
"is-simple": !isFirstH1.value || unref(lePadV),
|
|
92
|
-
"first-h1": isFirstH1.value,
|
|
93
|
-
"more-h1": !isFirstH1.value
|
|
105
|
+
class: normalizeClass(["o-doc-title", {
|
|
106
|
+
"is-simple": unref(lePadV),
|
|
107
|
+
"first-h1": true
|
|
94
108
|
}])
|
|
95
109
|
}, [
|
|
96
110
|
createElementVNode("div", _hoisted_1, [
|
|
97
|
-
|
|
111
|
+
__props.title ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
112
|
+
createElementVNode("h1", null, toDisplayString(__props.title), 1)
|
|
113
|
+
])) : withDirectives((openBlock(), createElementBlock("div", _hoisted_3, null, 512)), [
|
|
98
114
|
[unref(vDompurifyHtml), (_a = __props.el) == null ? void 0 : _a.outerHTML]
|
|
99
115
|
])
|
|
100
116
|
]),
|
|
101
|
-
|
|
102
|
-
unref(lePadV) ? (openBlock(),
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
114
|
-
createElementVNode("div", _hoisted_4, [
|
|
117
|
+
showActions.value ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
118
|
+
unref(lePadV) ? (openBlock(), createBlock(unref(OIcon), {
|
|
119
|
+
key: 0,
|
|
120
|
+
class: "o-doc-title-icon-more",
|
|
121
|
+
onClick: _cache[0] || (_cache[0] = ($event) => showActionsDlg.value = true)
|
|
122
|
+
}, {
|
|
123
|
+
default: withCtx(() => [
|
|
124
|
+
createVNode(unref(IconMore))
|
|
125
|
+
]),
|
|
126
|
+
_: 1
|
|
127
|
+
})) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
128
|
+
createElementVNode("div", _hoisted_5, [
|
|
115
129
|
enableDownload.value ? (openBlock(), createBlock(unref(OPopover), {
|
|
116
130
|
key: 0,
|
|
117
131
|
position: "top",
|
|
@@ -120,7 +134,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
120
134
|
}, {
|
|
121
135
|
target: withCtx(() => [
|
|
122
136
|
createVNode(unref(OIcon), {
|
|
123
|
-
class: "o-
|
|
137
|
+
class: "o-doc-title-icon-download",
|
|
124
138
|
onClick: _cache[1] || (_cache[1] = ($event) => emit("download"))
|
|
125
139
|
}, {
|
|
126
140
|
default: withCtx(() => [
|
|
@@ -142,7 +156,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
142
156
|
}, {
|
|
143
157
|
target: withCtx(() => [
|
|
144
158
|
createVNode(unref(OIcon), {
|
|
145
|
-
class: "o-
|
|
159
|
+
class: "o-doc-title-icon-star",
|
|
146
160
|
onClick: _cache[2] || (_cache[2] = ($event) => emit("collect"))
|
|
147
161
|
}, {
|
|
148
162
|
default: withCtx(() => [
|
|
@@ -156,14 +170,36 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
156
170
|
]),
|
|
157
171
|
_: 1
|
|
158
172
|
})) : createCommentVNode("", true),
|
|
159
|
-
|
|
173
|
+
enableCopyLink.value ? (openBlock(), createBlock(unref(OPopover), {
|
|
160
174
|
key: 2,
|
|
175
|
+
position: "top",
|
|
176
|
+
trigger: "hover",
|
|
177
|
+
offset: 12
|
|
178
|
+
}, {
|
|
179
|
+
target: withCtx(() => [
|
|
180
|
+
createVNode(unref(OIcon), {
|
|
181
|
+
class: "o-doc-title-icon-copy",
|
|
182
|
+
onClick: copyLink
|
|
183
|
+
}, {
|
|
184
|
+
default: withCtx(() => [
|
|
185
|
+
createVNode(unref(IconLink))
|
|
186
|
+
]),
|
|
187
|
+
_: 1
|
|
188
|
+
})
|
|
189
|
+
]),
|
|
190
|
+
default: withCtx(() => [
|
|
191
|
+
createElementVNode("span", null, toDisplayString(unref(t)("common.copyLink")), 1)
|
|
192
|
+
]),
|
|
193
|
+
_: 1
|
|
194
|
+
})) : createCommentVNode("", true),
|
|
195
|
+
showDivider.value ? (openBlock(), createBlock(unref(ODivider), {
|
|
196
|
+
key: 3,
|
|
161
197
|
direction: "v",
|
|
162
198
|
style: { "--o-divider-label-gap": "0" }
|
|
163
199
|
})) : createCommentVNode("", true),
|
|
164
200
|
sourceUrl.value ? (openBlock(), createBlock(unref(OLink), {
|
|
165
|
-
key:
|
|
166
|
-
class: "o-
|
|
201
|
+
key: 4,
|
|
202
|
+
class: "o-doc-title-source-code",
|
|
167
203
|
size: "large",
|
|
168
204
|
href: sourceUrl.value,
|
|
169
205
|
target: "_blank",
|
|
@@ -171,7 +207,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
171
207
|
}, {
|
|
172
208
|
default: withCtx(() => [
|
|
173
209
|
createTextVNode(toDisplayString(unref(t)("md.gitSource")) + " ", 1),
|
|
174
|
-
createVNode(unref(OIcon), { class: "o-
|
|
210
|
+
createVNode(unref(OIcon), { class: "o-doc-title-icon-outlink" }, {
|
|
175
211
|
default: withCtx(() => [
|
|
176
212
|
createVNode(unref(IconOutlink))
|
|
177
213
|
]),
|
|
@@ -181,14 +217,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
181
217
|
_: 1
|
|
182
218
|
}, 8, ["href"])) : createCommentVNode("", true)
|
|
183
219
|
]),
|
|
184
|
-
updateTime.value ? (openBlock(), createElementBlock("span",
|
|
220
|
+
updateTime.value ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(unref(t)("md.updateTime")) + toDisplayString(updateTime.value), 1)) : createCommentVNode("", true)
|
|
185
221
|
], 64))
|
|
186
222
|
])) : createCommentVNode("", true)
|
|
187
223
|
], 2),
|
|
188
224
|
unref(lePadV) && showActions.value ? (openBlock(), createBlock(unref(ODialog), {
|
|
189
225
|
key: 0,
|
|
190
226
|
visible: showActionsDlg.value,
|
|
191
|
-
"onUpdate:visible": _cache[
|
|
227
|
+
"onUpdate:visible": _cache[3] || (_cache[3] = ($event) => showActionsDlg.value = $event),
|
|
192
228
|
size: "medium",
|
|
193
229
|
"phone-half-full": ""
|
|
194
230
|
}, {
|
|
@@ -196,13 +232,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
196
232
|
createTextVNode(toDisplayString(unref(t)("md.moreActions")), 1)
|
|
197
233
|
]),
|
|
198
234
|
default: withCtx(() => [
|
|
199
|
-
createElementVNode("div",
|
|
235
|
+
createElementVNode("div", _hoisted_7, [
|
|
200
236
|
enableDownload.value ? (openBlock(), createElementBlock("div", {
|
|
201
237
|
key: 0,
|
|
202
|
-
class: "o-
|
|
203
|
-
onClick:
|
|
238
|
+
class: "o-doc-title-dlg-action-box",
|
|
239
|
+
onClick: onDownload
|
|
204
240
|
}, [
|
|
205
|
-
createElementVNode("div",
|
|
241
|
+
createElementVNode("div", _hoisted_8, [
|
|
206
242
|
createVNode(unref(OIcon), null, {
|
|
207
243
|
default: withCtx(() => [
|
|
208
244
|
createVNode(unref(IconDownload))
|
|
@@ -210,14 +246,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
210
246
|
_: 1
|
|
211
247
|
})
|
|
212
248
|
]),
|
|
213
|
-
createElementVNode("div",
|
|
249
|
+
createElementVNode("div", _hoisted_9, toDisplayString(unref(t)("md.downloadDoc")), 1)
|
|
214
250
|
])) : createCommentVNode("", true),
|
|
215
251
|
enableStar.value ? (openBlock(), createElementBlock("div", {
|
|
216
252
|
key: 1,
|
|
217
|
-
class: "o-
|
|
218
|
-
onClick:
|
|
253
|
+
class: "o-doc-title-dlg-action-box",
|
|
254
|
+
onClick: onCollect
|
|
219
255
|
}, [
|
|
220
|
-
createElementVNode("div",
|
|
256
|
+
createElementVNode("div", _hoisted_10, [
|
|
221
257
|
createVNode(unref(OIcon), null, {
|
|
222
258
|
default: withCtx(() => [
|
|
223
259
|
createVNode(unref(IconStar))
|
|
@@ -225,14 +261,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
225
261
|
_: 1
|
|
226
262
|
})
|
|
227
263
|
]),
|
|
228
|
-
createElementVNode("div",
|
|
264
|
+
createElementVNode("div", _hoisted_11, toDisplayString(unref(t)("md.starDoc")), 1)
|
|
229
265
|
])) : createCommentVNode("", true),
|
|
230
|
-
|
|
266
|
+
enableCopyLink.value ? (openBlock(), createElementBlock("div", {
|
|
231
267
|
key: 2,
|
|
232
|
-
class: "o-
|
|
268
|
+
class: "o-doc-title-dlg-action-box",
|
|
269
|
+
onClick: copyLink
|
|
270
|
+
}, [
|
|
271
|
+
createElementVNode("div", _hoisted_12, [
|
|
272
|
+
createVNode(unref(OIcon), null, {
|
|
273
|
+
default: withCtx(() => [
|
|
274
|
+
createVNode(unref(IconLink))
|
|
275
|
+
]),
|
|
276
|
+
_: 1
|
|
277
|
+
})
|
|
278
|
+
]),
|
|
279
|
+
createElementVNode("div", _hoisted_13, toDisplayString(unref(t)("common.copyLink")), 1)
|
|
280
|
+
])) : createCommentVNode("", true),
|
|
281
|
+
sourceUrl.value ? (openBlock(), createElementBlock("div", {
|
|
282
|
+
key: 3,
|
|
283
|
+
class: "o-doc-title-dlg-action-box",
|
|
233
284
|
onClick: openSourceUrl
|
|
234
285
|
}, [
|
|
235
|
-
createElementVNode("div",
|
|
286
|
+
createElementVNode("div", _hoisted_14, [
|
|
236
287
|
createVNode(unref(OIcon), null, {
|
|
237
288
|
default: withCtx(() => [
|
|
238
289
|
createVNode(unref(IconOutlink))
|
|
@@ -240,7 +291,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
240
291
|
_: 1
|
|
241
292
|
})
|
|
242
293
|
]),
|
|
243
|
-
createElementVNode("div",
|
|
294
|
+
createElementVNode("div", _hoisted_15, toDisplayString(unref(t)("md.gitSource")), 1)
|
|
244
295
|
])) : createCommentVNode("", true)
|
|
245
296
|
])
|
|
246
297
|
]),
|