@opendesign-plus-test/components 0.0.1-rc.160 → 0.0.1-rc.162
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 +40 -22
- package/dist/components/activity/OActivityApproval.vue.d.ts +169 -19
- package/dist/components/activity/OActivityForm.vue.d.ts +169 -19
- package/dist/components/activity/OActivityMyCalendar.vue.d.ts +18 -10
- package/dist/components/activity/index.d.ts +356 -52
- 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-language-switcher/OHeaderLanguageSwitcher.vue.d.ts +1 -1
- package/dist/components/header-language-switcher/index.d.ts +3 -3
- package/dist/components/header-search/OHeaderSearch.vue.d.ts +43 -35
- package/dist/components/header-search/index.d.ts +37 -33
- package/dist/components/logo-swiper/index.d.ts +11 -11
- package/dist/components/markdown/OMarkdown.vue.d.ts +37 -0
- package/dist/components/markdown/OMarkdownPagination.vue.d.ts +25 -0
- package/dist/components/markdown/components/MarkdownCode.vue.d.ts +7 -0
- package/dist/components/markdown/components/MarkdownImage.vue.d.ts +8 -0
- package/dist/components/markdown/components/MarkdownPageTitle.vue.d.ts +11 -0
- package/dist/components/markdown/components/MarkdownTable.vue.d.ts +5 -0
- package/dist/components/markdown/components/MarkdownTableData.vue.d.ts +11 -0
- package/dist/components/markdown/components/MarkdownTableExpand.vue.d.ts +12 -0
- package/dist/components/markdown/components/MarkdownTitle.vue.d.ts +12 -0
- package/dist/components/markdown/replacer/code.d.ts +2 -0
- package/dist/components/markdown/replacer/h1.d.ts +7 -0
- package/dist/components/markdown/replacer/h2.d.ts +2 -0
- package/dist/components/markdown/replacer/img.d.ts +2 -0
- package/dist/components/markdown/replacer/table.d.ts +2 -0
- package/dist/components/meeting/OMeetingForm.vue.d.ts +169 -19
- package/dist/components/meeting/OMeetingMinutes.vue.d.ts +18 -10
- package/dist/components/meeting/OMeetingMyCalendar.vue.d.ts +18 -10
- 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/components/OMeetingSigAside.vue.d.ts +9 -5
- package/dist/components/meeting/composables/useMeetingConfig.d.ts +1 -1
- package/dist/components/meeting/index.d.ts +221 -63
- package/dist/components/search/OSearchInput.vue.d.ts +43 -35
- package/dist/components/search/index.d.ts +35 -31
- package/dist/components/search/internal/SearchImageInput.vue.d.ts +37 -29
- package/dist/components/sig/index.d.ts +15 -15
- package/dist/components/summit/index.d.ts +12 -12
- package/dist/components/video/index.d.ts +3 -3
- package/dist/components.cjs.js +40 -40
- package/dist/components.css +1 -1
- package/dist/components.es.js +13996 -13100
- package/dist/index.d.ts +1 -0
- package/dist/treeshaking/_virtual/icon-copy2.mjs +20 -0
- package/dist/treeshaking/_virtual/icon-expand.mjs +21 -0
- package/dist/treeshaking/_virtual/icon-link.mjs +31 -0
- package/dist/treeshaking/_virtual/icon-more.mjs +19 -0
- package/dist/treeshaking/_virtual/icon-next.mjs +23 -0
- package/dist/treeshaking/_virtual/icon-unexpand.mjs +22 -0
- package/dist/treeshaking/assets/markdown/md-title-bg.png.mjs +4 -0
- package/dist/treeshaking/assets/svg-icons/icon-zoom.svg.mjs +4 -0
- package/dist/treeshaking/components/activity/OActivityApproval.vue.d.ts +169 -19
- package/dist/treeshaking/components/activity/OActivityForm.vue.d.ts +169 -19
- package/dist/treeshaking/components/activity/OActivityMyCalendar.vue.d.ts +18 -10
- package/dist/treeshaking/components/activity/index.d.ts +356 -52
- package/dist/treeshaking/components/banner/index.d.ts +6 -6
- package/dist/treeshaking/components/events/index.d.ts +20 -20
- package/dist/treeshaking/components/feedback-doc/OFeedbackDoc.css +5 -5
- package/dist/treeshaking/components/feedback-doc/OFeedbackDoc.vue.mjs +1 -1
- 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-language-switcher/OHeaderLanguageSwitcher.vue.d.ts +1 -1
- package/dist/treeshaking/components/header-language-switcher/index.d.ts +3 -3
- package/dist/treeshaking/components/header-search/OHeaderSearch.vue.d.ts +43 -35
- package/dist/treeshaking/components/header-search/index.d.ts +37 -33
- package/dist/treeshaking/components/logo-swiper/index.d.ts +11 -11
- package/dist/treeshaking/components/markdown/OMarkdown.css +1114 -0
- package/dist/treeshaking/components/markdown/OMarkdown.vue.d.ts +37 -0
- package/dist/treeshaking/components/markdown/OMarkdown.vue.mjs +8 -0
- package/dist/treeshaking/components/markdown/OMarkdown.vue2.mjs +147 -0
- package/dist/treeshaking/components/markdown/OMarkdown2.css +14 -0
- package/dist/treeshaking/components/markdown/OMarkdownPagination.css +213 -0
- package/dist/treeshaking/components/markdown/OMarkdownPagination.vue.d.ts +25 -0
- package/dist/treeshaking/components/markdown/OMarkdownPagination.vue.mjs +7 -0
- package/dist/treeshaking/components/markdown/OMarkdownPagination.vue2.mjs +101 -0
- package/dist/treeshaking/components/markdown/components/MarkdownCode.css +119 -0
- package/dist/treeshaking/components/markdown/components/MarkdownCode.vue.d.ts +7 -0
- package/dist/treeshaking/components/markdown/components/MarkdownCode.vue.mjs +7 -0
- package/dist/treeshaking/components/markdown/components/MarkdownCode.vue2.mjs +121 -0
- package/dist/treeshaking/components/markdown/components/MarkdownImage.css +48 -0
- package/dist/treeshaking/components/markdown/components/MarkdownImage.vue.d.ts +8 -0
- package/dist/treeshaking/components/markdown/components/MarkdownImage.vue.mjs +7 -0
- package/dist/treeshaking/components/markdown/components/MarkdownImage.vue2.mjs +73 -0
- package/dist/treeshaking/components/markdown/components/MarkdownPageTitle.css +264 -0
- package/dist/treeshaking/components/markdown/components/MarkdownPageTitle.vue.d.ts +11 -0
- package/dist/treeshaking/components/markdown/components/MarkdownPageTitle.vue.mjs +7 -0
- package/dist/treeshaking/components/markdown/components/MarkdownPageTitle.vue2.mjs +148 -0
- package/dist/treeshaking/components/markdown/components/MarkdownTable.css +61 -0
- package/dist/treeshaking/components/markdown/components/MarkdownTable.vue.d.ts +5 -0
- package/dist/treeshaking/components/markdown/components/MarkdownTable.vue.mjs +7 -0
- package/dist/treeshaking/components/markdown/components/MarkdownTable.vue2.mjs +59 -0
- package/dist/treeshaking/components/markdown/components/MarkdownTableData.css +107 -0
- package/dist/treeshaking/components/markdown/components/MarkdownTableData.vue.d.ts +11 -0
- package/dist/treeshaking/components/markdown/components/MarkdownTableData.vue.mjs +7 -0
- package/dist/treeshaking/components/markdown/components/MarkdownTableData.vue2.mjs +176 -0
- package/dist/treeshaking/components/markdown/components/MarkdownTableExpand.css +66 -0
- package/dist/treeshaking/components/markdown/components/MarkdownTableExpand.vue.d.ts +12 -0
- package/dist/treeshaking/components/markdown/components/MarkdownTableExpand.vue.mjs +7 -0
- package/dist/treeshaking/components/markdown/components/MarkdownTableExpand.vue2.mjs +83 -0
- package/dist/treeshaking/components/markdown/components/MarkdownTitle.css +173 -0
- package/dist/treeshaking/components/markdown/components/MarkdownTitle.vue.d.ts +12 -0
- package/dist/treeshaking/components/markdown/components/MarkdownTitle.vue.mjs +7 -0
- package/dist/treeshaking/components/markdown/components/MarkdownTitle.vue2.mjs +65 -0
- package/dist/treeshaking/components/markdown/index.mjs +16 -0
- package/dist/treeshaking/components/markdown/replacer/code.d.ts +2 -0
- package/dist/treeshaking/components/markdown/replacer/code.mjs +22 -0
- package/dist/treeshaking/components/markdown/replacer/h1.d.ts +7 -0
- package/dist/treeshaking/components/markdown/replacer/h1.mjs +25 -0
- package/dist/treeshaking/components/markdown/replacer/h2.d.ts +2 -0
- package/dist/treeshaking/components/markdown/replacer/h2.mjs +22 -0
- package/dist/treeshaking/components/markdown/replacer/img.d.ts +2 -0
- package/dist/treeshaking/components/markdown/replacer/img.mjs +22 -0
- package/dist/treeshaking/components/markdown/replacer/table.d.ts +2 -0
- package/dist/treeshaking/components/markdown/replacer/table.mjs +22 -0
- package/dist/treeshaking/components/meeting/OMeetingCalendar.vue.mjs +2 -8
- package/dist/treeshaking/components/meeting/OMeetingForm.vue.d.ts +169 -19
- package/dist/treeshaking/components/meeting/OMeetingMinutes.vue.d.ts +18 -10
- package/dist/treeshaking/components/meeting/OMeetingMyCalendar.vue.d.ts +18 -10
- 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/components/OMeetingSigAside.vue.d.ts +9 -5
- package/dist/treeshaking/components/meeting/composables/useMeetingConfig.d.ts +1 -1
- package/dist/treeshaking/components/meeting/index.d.ts +221 -63
- package/dist/treeshaking/components/search/OSearchInput.vue.d.ts +43 -35
- package/dist/treeshaking/components/search/index.d.ts +35 -31
- package/dist/treeshaking/components/search/internal/SearchImageInput.vue.d.ts +37 -29
- package/dist/treeshaking/components/sig/OSigDetail.css +1 -0
- package/dist/treeshaking/components/sig/OSigList.css +4 -3
- package/dist/treeshaking/components/sig/components/OSigDetailInfoCard.css +14 -1
- package/dist/treeshaking/components/sig/components/OSigDetailInfoCard.vue.mjs +13 -10
- package/dist/treeshaking/components/sig/index.d.ts +15 -15
- package/dist/treeshaking/components/summit/index.d.ts +12 -12
- package/dist/treeshaking/components/video/index.d.ts +3 -3
- package/dist/treeshaking/i18n/en.mjs +9 -0
- package/dist/treeshaking/i18n/zh.mjs +9 -0
- package/dist/treeshaking/index.d.ts +1 -0
- package/dist/treeshaking/index.mjs +3 -0
- package/dist/treeshaking/shared/theme.mjs +15 -3
- package/package.json +3 -3
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { defineComponent, computed, ref, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, createBlock, withCtx, toDisplayString, createVNode, createCommentVNode, withDirectives } from "vue";
|
|
2
|
+
import { useMessage, OPopover, OIcon, OScroller } from "@opensig/opendesign";
|
|
3
|
+
import { buildVueDompurifyHTMLDirective } from "vue-dompurify-html";
|
|
4
|
+
import { useScreen, useClipboard } from "@opendesign-plus/composables";
|
|
5
|
+
import { useI18n } from "../../../i18n/index.mjs";
|
|
6
|
+
import { useTheme } from "../../../shared/theme.mjs";
|
|
7
|
+
import IconCopy from "../../../_virtual/icon-copy2.mjs";
|
|
8
|
+
import IconMoon from "../../../_virtual/icon-moon.mjs";
|
|
9
|
+
import IconSun from "../../../_virtual/icon-sun.mjs";
|
|
10
|
+
const _hoisted_1 = { class: "o-md-code-tools" };
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "MarkdownCode",
|
|
13
|
+
props: {
|
|
14
|
+
el: {}
|
|
15
|
+
},
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const vDompurifyHtml = buildVueDompurifyHTMLDirective();
|
|
18
|
+
const message = useMessage();
|
|
19
|
+
const { t } = useI18n();
|
|
20
|
+
const { lePadV } = useScreen();
|
|
21
|
+
const { theme, codeTheme, toggleCodeTheme } = useTheme();
|
|
22
|
+
const isDark = computed(() => codeTheme.value === "dark");
|
|
23
|
+
const isHover = ref(false);
|
|
24
|
+
const mdCodeRef = ref();
|
|
25
|
+
const onClickCopy = async () => {
|
|
26
|
+
var _a;
|
|
27
|
+
const codeEl = (_a = mdCodeRef.value) == null ? void 0 : _a.querySelector("code");
|
|
28
|
+
const text = (codeEl == null ? void 0 : codeEl.textContent) || "";
|
|
29
|
+
if (await useClipboard(text)) {
|
|
30
|
+
message.success({
|
|
31
|
+
content: t("common.copySuccess")
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
const onClickChangeTheme = () => {
|
|
36
|
+
toggleCodeTheme();
|
|
37
|
+
};
|
|
38
|
+
return (_ctx, _cache) => {
|
|
39
|
+
return openBlock(), createElementBlock("div", {
|
|
40
|
+
ref_key: "mdCodeRef",
|
|
41
|
+
ref: mdCodeRef,
|
|
42
|
+
class: normalizeClass(["o-md-code", {
|
|
43
|
+
"is-dark": isDark.value && unref(codeTheme) != unref(theme),
|
|
44
|
+
"is-light": !isDark.value && unref(codeTheme) != unref(theme)
|
|
45
|
+
}]),
|
|
46
|
+
onMouseenter: _cache[0] || (_cache[0] = ($event) => isHover.value = true),
|
|
47
|
+
onMouseleave: _cache[1] || (_cache[1] = ($event) => isHover.value = false)
|
|
48
|
+
}, [
|
|
49
|
+
createElementVNode("div", _hoisted_1, [
|
|
50
|
+
unref(lePadV) || isHover.value ? (openBlock(), createBlock(unref(OPopover), {
|
|
51
|
+
key: 0,
|
|
52
|
+
position: "top",
|
|
53
|
+
trigger: "hover",
|
|
54
|
+
offset: 12
|
|
55
|
+
}, {
|
|
56
|
+
target: withCtx(() => [
|
|
57
|
+
createVNode(unref(OIcon), {
|
|
58
|
+
class: "o-md-code-icon-theme",
|
|
59
|
+
onClick: onClickChangeTheme
|
|
60
|
+
}, {
|
|
61
|
+
default: withCtx(() => [
|
|
62
|
+
isDark.value ? (openBlock(), createBlock(unref(IconSun), { key: 0 })) : (openBlock(), createBlock(unref(IconMoon), { key: 1 }))
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
})
|
|
66
|
+
]),
|
|
67
|
+
default: withCtx(() => [
|
|
68
|
+
createElementVNode("span", null, toDisplayString(unref(codeTheme) === "light" ? unref(t)("md.darkTheme") : unref(t)("md.lightTheme")), 1)
|
|
69
|
+
]),
|
|
70
|
+
_: 1
|
|
71
|
+
})) : createCommentVNode("", true),
|
|
72
|
+
unref(lePadV) || isHover.value ? (openBlock(), createBlock(unref(OPopover), {
|
|
73
|
+
key: 1,
|
|
74
|
+
position: "top",
|
|
75
|
+
trigger: "hover",
|
|
76
|
+
offset: 12
|
|
77
|
+
}, {
|
|
78
|
+
target: withCtx(() => [
|
|
79
|
+
createVNode(unref(OIcon), {
|
|
80
|
+
class: "o-md-code-icon-copy",
|
|
81
|
+
onClick: onClickCopy
|
|
82
|
+
}, {
|
|
83
|
+
default: withCtx(() => [
|
|
84
|
+
createVNode(unref(IconCopy))
|
|
85
|
+
]),
|
|
86
|
+
_: 1
|
|
87
|
+
})
|
|
88
|
+
]),
|
|
89
|
+
default: withCtx(() => [
|
|
90
|
+
createElementVNode("span", null, toDisplayString(unref(t)("common.copy")), 1)
|
|
91
|
+
]),
|
|
92
|
+
_: 1
|
|
93
|
+
})) : createCommentVNode("", true)
|
|
94
|
+
]),
|
|
95
|
+
createVNode(unref(OScroller), {
|
|
96
|
+
size: "small",
|
|
97
|
+
"show-type": "always",
|
|
98
|
+
"disabled-y": ""
|
|
99
|
+
}, {
|
|
100
|
+
default: withCtx(() => {
|
|
101
|
+
var _a;
|
|
102
|
+
return [
|
|
103
|
+
withDirectives(createElementVNode("div", {
|
|
104
|
+
class: normalizeClass(["markdown-body __mounted", {
|
|
105
|
+
"is-dark": isDark.value && unref(codeTheme) != unref(theme),
|
|
106
|
+
"is-light": !isDark.value && unref(codeTheme) != unref(theme)
|
|
107
|
+
}])
|
|
108
|
+
}, null, 2), [
|
|
109
|
+
[unref(vDompurifyHtml), (_a = __props.el) == null ? void 0 : _a.outerHTML]
|
|
110
|
+
])
|
|
111
|
+
];
|
|
112
|
+
}),
|
|
113
|
+
_: 1
|
|
114
|
+
})
|
|
115
|
+
], 34);
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
export {
|
|
120
|
+
_sfc_main as default
|
|
121
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-73e8af56] {
|
|
2
|
+
transition: all var(--o-duration-m1) var(--o-easing-standard-in);
|
|
3
|
+
}
|
|
4
|
+
@media (hover: hover) {
|
|
5
|
+
.hover-icon-rotate:hover .o-icon[data-v-73e8af56] {
|
|
6
|
+
transform: rotate(-180deg);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
.o-md-img[data-v-73e8af56] {
|
|
10
|
+
width: auto;
|
|
11
|
+
max-width: 100%;
|
|
12
|
+
position: relative;
|
|
13
|
+
display: inline-block;
|
|
14
|
+
padding: var(--o-gap-2);
|
|
15
|
+
margin-bottom: var(--o-gap-2, 8px);
|
|
16
|
+
border: 1px solid var(--o-color-control4);
|
|
17
|
+
border-radius: var(--o-radius-xs);
|
|
18
|
+
cursor: zoom-in;
|
|
19
|
+
}
|
|
20
|
+
.o-md-img[data-v-73e8af56] img {
|
|
21
|
+
max-width: 100%;
|
|
22
|
+
padding: 0 !important;
|
|
23
|
+
border: none !important;
|
|
24
|
+
border-radius: unset !important;
|
|
25
|
+
box-shadow: none !important;
|
|
26
|
+
}
|
|
27
|
+
.o-md-img .o-md-img-icon-zoom[data-v-73e8af56] {
|
|
28
|
+
position: absolute;
|
|
29
|
+
z-index: 10;
|
|
30
|
+
top: 50%;
|
|
31
|
+
right: 50%;
|
|
32
|
+
transform: translate(-50%, -50%);
|
|
33
|
+
font-size: 32px;
|
|
34
|
+
}
|
|
35
|
+
@media (hover: hover) {
|
|
36
|
+
.o-md-img[data-v-73e8af56]:not(.unexpand):hover {
|
|
37
|
+
box-shadow: var(--o-shadow-1);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
.o-md-img.unexpand[data-v-73e8af56] {
|
|
41
|
+
padding: 0 var(--o-gap-2);
|
|
42
|
+
border: none;
|
|
43
|
+
border-radius: unset;
|
|
44
|
+
cursor: default;
|
|
45
|
+
}
|
|
46
|
+
.o-md-img.in-paragraph[data-v-73e8af56] {
|
|
47
|
+
margin-bottom: 0;
|
|
48
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
el: HTMLImageElement;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
5
|
+
containerRef: HTMLSpanElement;
|
|
6
|
+
imgRef: HTMLImageElement;
|
|
7
|
+
}, HTMLSpanElement>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from "./MarkdownImage.vue2.mjs";
|
|
2
|
+
import './MarkdownImage.css';
|
|
3
|
+
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const MarkdownImage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-73e8af56"]]);
|
|
5
|
+
export {
|
|
6
|
+
MarkdownImage as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { defineComponent, ref, onMounted, onBeforeUnmount, openBlock, createElementBlock, normalizeClass, unref, createCommentVNode, createElementVNode } from "vue";
|
|
2
|
+
import { useImageViewer } from "@opensig/opendesign";
|
|
3
|
+
import { useScreen } from "@opendesign-plus/composables";
|
|
4
|
+
import IconZoom from "../../../assets/svg-icons/icon-zoom.svg.mjs";
|
|
5
|
+
const _hoisted_1 = ["src"];
|
|
6
|
+
const _hoisted_2 = ["src", "alt"];
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "MarkdownImage",
|
|
9
|
+
props: {
|
|
10
|
+
el: {}
|
|
11
|
+
},
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const props = __props;
|
|
14
|
+
const { lePadV } = useScreen();
|
|
15
|
+
const containerRef = ref();
|
|
16
|
+
const imgRef = ref();
|
|
17
|
+
const zoomEnabled = ref(false);
|
|
18
|
+
const zoomImgUrl = ref(props.el.src);
|
|
19
|
+
const isHover = ref(false);
|
|
20
|
+
const inParagraph = ref(false);
|
|
21
|
+
onMounted(() => {
|
|
22
|
+
var _a, _b;
|
|
23
|
+
inParagraph.value = ((_b = (_a = containerRef.value) == null ? void 0 : _a.parentElement) == null ? void 0 : _b.tagName) === "P";
|
|
24
|
+
});
|
|
25
|
+
const onImgLoad = () => {
|
|
26
|
+
var _a;
|
|
27
|
+
zoomEnabled.value = (((_a = imgRef.value) == null ? void 0 : _a.width) || 0) >= 216;
|
|
28
|
+
};
|
|
29
|
+
const { open, unmount } = useImageViewer({
|
|
30
|
+
previewList: () => [zoomImgUrl.value],
|
|
31
|
+
currentIndex: 0,
|
|
32
|
+
layerOptions: {
|
|
33
|
+
maskClose: true
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
const onClickContainer = () => {
|
|
37
|
+
if (zoomEnabled.value && zoomImgUrl.value) {
|
|
38
|
+
open();
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
onBeforeUnmount(() => {
|
|
42
|
+
unmount();
|
|
43
|
+
});
|
|
44
|
+
return (_ctx, _cache) => {
|
|
45
|
+
var _a;
|
|
46
|
+
return openBlock(), createElementBlock("span", {
|
|
47
|
+
ref_key: "containerRef",
|
|
48
|
+
ref: containerRef,
|
|
49
|
+
class: normalizeClass(["o-md-img", { unexpand: !zoomEnabled.value, "in-paragraph": inParagraph.value }]),
|
|
50
|
+
onClick: onClickContainer,
|
|
51
|
+
onMouseenter: _cache[0] || (_cache[0] = ($event) => isHover.value = true),
|
|
52
|
+
onMouseleave: _cache[1] || (_cache[1] = ($event) => isHover.value = false)
|
|
53
|
+
}, [
|
|
54
|
+
!unref(lePadV) && zoomEnabled.value && isHover.value ? (openBlock(), createElementBlock("img", {
|
|
55
|
+
key: 0,
|
|
56
|
+
class: "o-md-img-icon-zoom",
|
|
57
|
+
src: unref(IconZoom)
|
|
58
|
+
}, null, 8, _hoisted_1)) : createCommentVNode("", true),
|
|
59
|
+
createElementVNode("img", {
|
|
60
|
+
ref_key: "imgRef",
|
|
61
|
+
ref: imgRef,
|
|
62
|
+
class: "o-md-img-content",
|
|
63
|
+
src: zoomImgUrl.value,
|
|
64
|
+
alt: (_a = __props.el) == null ? void 0 : _a.alt,
|
|
65
|
+
onLoad: onImgLoad
|
|
66
|
+
}, null, 40, _hoisted_2)
|
|
67
|
+
], 34);
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
export {
|
|
72
|
+
_sfc_main as default
|
|
73
|
+
};
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-3a971efe] {
|
|
2
|
+
transition: all var(--o-duration-m1) var(--o-easing-standard-in);
|
|
3
|
+
}
|
|
4
|
+
@media (hover: hover) {
|
|
5
|
+
.hover-icon-rotate:hover .o-icon[data-v-3a971efe] {
|
|
6
|
+
transform: rotate(-180deg);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
.o-md-page-title[data-v-3a971efe] {
|
|
10
|
+
--o-gap-1: 4px;
|
|
11
|
+
--o-gap-2: 8px;
|
|
12
|
+
--o-gap-3: 12px;
|
|
13
|
+
--o-gap-4: 16px;
|
|
14
|
+
--o-gap-5: 24px;
|
|
15
|
+
--o-gap-6: 32px;
|
|
16
|
+
--o-gap-7: 40px;
|
|
17
|
+
--o-gap-8: 48px;
|
|
18
|
+
--o-gap-9: 64px;
|
|
19
|
+
--o-gap-10: 72px;
|
|
20
|
+
}
|
|
21
|
+
@media (max-width: 1680px) {
|
|
22
|
+
.o-md-page-title[data-v-3a971efe] {
|
|
23
|
+
--o-gap-1: 4px;
|
|
24
|
+
--o-gap-2: 8px;
|
|
25
|
+
--o-gap-3: 8px;
|
|
26
|
+
--o-gap-4: 12px;
|
|
27
|
+
--o-gap-5: 16px;
|
|
28
|
+
--o-gap-6: 24px;
|
|
29
|
+
--o-gap-7: 24px;
|
|
30
|
+
--o-gap-8: 40px;
|
|
31
|
+
--o-gap-9: 48px;
|
|
32
|
+
--o-gap-10: 56px;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
@media (max-width: 1200px) {
|
|
36
|
+
.o-md-page-title[data-v-3a971efe] {
|
|
37
|
+
--o-gap-1: 4px;
|
|
38
|
+
--o-gap-2: 8px;
|
|
39
|
+
--o-gap-3: 8px;
|
|
40
|
+
--o-gap-4: 8px;
|
|
41
|
+
--o-gap-5: 12px;
|
|
42
|
+
--o-gap-6: 16px;
|
|
43
|
+
--o-gap-7: 16px;
|
|
44
|
+
--o-gap-8: 24px;
|
|
45
|
+
--o-gap-9: 32px;
|
|
46
|
+
--o-gap-10: 40px;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
@media (max-width: 840px) {
|
|
50
|
+
.o-md-page-title[data-v-3a971efe] {
|
|
51
|
+
--o-gap-1: 4px;
|
|
52
|
+
--o-gap-2: 8px;
|
|
53
|
+
--o-gap-3: 12px;
|
|
54
|
+
--o-gap-4: 16px;
|
|
55
|
+
--o-gap-5: 24px;
|
|
56
|
+
--o-gap-6: 28px;
|
|
57
|
+
--o-gap-7: 12px;
|
|
58
|
+
--o-gap-8: 24px;
|
|
59
|
+
--o-gap-9: 32px;
|
|
60
|
+
--o-gap-10: 32px;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
@media (max-width: 600px) {
|
|
64
|
+
.o-md-page-title[data-v-3a971efe] {
|
|
65
|
+
--o-gap-1: 4px;
|
|
66
|
+
--o-gap-2: 8px;
|
|
67
|
+
--o-gap-3: 12px;
|
|
68
|
+
--o-gap-4: 16px;
|
|
69
|
+
--o-gap-5: 24px;
|
|
70
|
+
--o-gap-6: 28px;
|
|
71
|
+
--o-gap-7: 12px;
|
|
72
|
+
--o-gap-8: 24px;
|
|
73
|
+
--o-gap-9: 32px;
|
|
74
|
+
--o-gap-10: 32px;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
.o-md-page-title[data-v-3a971efe] {
|
|
78
|
+
align-items: center;
|
|
79
|
+
justify-content: space-between;
|
|
80
|
+
gap: var(--o-gap-3);
|
|
81
|
+
padding: var(--o-gap-4);
|
|
82
|
+
margin-bottom: var(--o-gap-6);
|
|
83
|
+
border-radius: var(--o-radius-xs);
|
|
84
|
+
background-image: var(--v4967ab7e);
|
|
85
|
+
background-position: 100% 100%;
|
|
86
|
+
background-repeat: no-repeat;
|
|
87
|
+
}
|
|
88
|
+
.o-md-page-title .o-md-page-title-content[data-v-3a971efe] {
|
|
89
|
+
display: flex;
|
|
90
|
+
flex-direction: column;
|
|
91
|
+
gap: var(--o-gap-2);
|
|
92
|
+
min-width: 0;
|
|
93
|
+
}
|
|
94
|
+
.o-md-page-title .o-md-page-title-text[data-v-3a971efe] h1 {
|
|
95
|
+
margin-top: 0;
|
|
96
|
+
margin-bottom: 0;
|
|
97
|
+
font-size: 32px;
|
|
98
|
+
line-height: 44px;
|
|
99
|
+
}
|
|
100
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
101
|
+
.o-md-page-title .o-md-page-title-text[data-v-3a971efe] h1 {
|
|
102
|
+
font-size: 20px;
|
|
103
|
+
line-height: 28px;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
107
|
+
.o-md-page-title .o-md-page-title-text[data-v-3a971efe] h1 {
|
|
108
|
+
font-size: 20px;
|
|
109
|
+
line-height: 28px;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
@media (min-width: 601px) and (max-width: 840px) {
|
|
113
|
+
.o-md-page-title .o-md-page-title-text[data-v-3a971efe] h1 {
|
|
114
|
+
font-size: 18px;
|
|
115
|
+
line-height: 26px;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
@media (max-width: 600px) {
|
|
119
|
+
.o-md-page-title .o-md-page-title-text[data-v-3a971efe] h1 {
|
|
120
|
+
font-size: 16px;
|
|
121
|
+
line-height: 24px;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
.o-md-page-title .o-md-page-title-actions[data-v-3a971efe] {
|
|
125
|
+
display: flex;
|
|
126
|
+
align-items: center;
|
|
127
|
+
justify-content: space-between;
|
|
128
|
+
margin-top: var(--o-gap-3);
|
|
129
|
+
}
|
|
130
|
+
@media (max-width: 840px) {
|
|
131
|
+
.o-md-page-title .o-md-page-title-actions[data-v-3a971efe] {
|
|
132
|
+
margin-top: 0;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-more[data-v-3a971efe] {
|
|
136
|
+
font-size: 24px;
|
|
137
|
+
color: var(--o-color-info2);
|
|
138
|
+
}
|
|
139
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-source-code[data-v-3a971efe] {
|
|
140
|
+
font-size: 16px;
|
|
141
|
+
line-height: 24px;
|
|
142
|
+
}
|
|
143
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
144
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-source-code[data-v-3a971efe] {
|
|
145
|
+
font-size: 14px;
|
|
146
|
+
line-height: 22px;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
150
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-source-code[data-v-3a971efe] {
|
|
151
|
+
font-size: 14px;
|
|
152
|
+
line-height: 22px;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
@media (min-width: 601px) and (max-width: 840px) {
|
|
156
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-source-code[data-v-3a971efe] {
|
|
157
|
+
font-size: 14px;
|
|
158
|
+
line-height: 22px;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
@media (max-width: 600px) {
|
|
162
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-source-code[data-v-3a971efe] {
|
|
163
|
+
font-size: 12px;
|
|
164
|
+
line-height: 18px;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-source-code[data-v-3a971efe] .o-link-label {
|
|
168
|
+
display: flex;
|
|
169
|
+
align-items: center;
|
|
170
|
+
}
|
|
171
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-outlink[data-v-3a971efe] {
|
|
172
|
+
font-size: 22px;
|
|
173
|
+
line-height: 30px;
|
|
174
|
+
}
|
|
175
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
176
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-outlink[data-v-3a971efe] {
|
|
177
|
+
font-size: 18px;
|
|
178
|
+
line-height: 26px;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
182
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-outlink[data-v-3a971efe] {
|
|
183
|
+
font-size: 16px;
|
|
184
|
+
line-height: 24px;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
@media (min-width: 601px) and (max-width: 840px) {
|
|
188
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-outlink[data-v-3a971efe] {
|
|
189
|
+
font-size: 16px;
|
|
190
|
+
line-height: 24px;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
@media (max-width: 600px) {
|
|
194
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-outlink[data-v-3a971efe] {
|
|
195
|
+
font-size: 16px;
|
|
196
|
+
line-height: 24px;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-update-time[data-v-3a971efe] {
|
|
200
|
+
color: var(--o-color-info3);
|
|
201
|
+
font-size: 14px;
|
|
202
|
+
line-height: 22px;
|
|
203
|
+
}
|
|
204
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
205
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-update-time[data-v-3a971efe] {
|
|
206
|
+
font-size: 14px;
|
|
207
|
+
line-height: 18px;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
211
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-update-time[data-v-3a971efe] {
|
|
212
|
+
font-size: 12px;
|
|
213
|
+
line-height: 18px;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
@media (min-width: 601px) and (max-width: 840px) {
|
|
217
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-update-time[data-v-3a971efe] {
|
|
218
|
+
font-size: 12px;
|
|
219
|
+
line-height: 18px;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
@media (max-width: 600px) {
|
|
223
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-update-time[data-v-3a971efe] {
|
|
224
|
+
font-size: 12px;
|
|
225
|
+
line-height: 18px;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
.o-md-page-title.is-simple[data-v-3a971efe] {
|
|
229
|
+
padding: 0;
|
|
230
|
+
background-image: none;
|
|
231
|
+
}
|
|
232
|
+
@media (max-width: 840px) {
|
|
233
|
+
.o-md-page-title.first-h1[data-v-3a971efe] {
|
|
234
|
+
display: flex;
|
|
235
|
+
justify-content: space-between;
|
|
236
|
+
align-items: center;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
.o-md-page-title.more-h1[data-v-3a971efe] {
|
|
240
|
+
margin-top: var(--o-gap-6);
|
|
241
|
+
}
|
|
242
|
+
.o-md-page-dlg-action-box-container[data-v-3a971efe] {
|
|
243
|
+
display: flex;
|
|
244
|
+
justify-content: space-around;
|
|
245
|
+
}
|
|
246
|
+
.o-md-page-dlg-action-box-container .o-md-page-dlg-action-box[data-v-3a971efe] {
|
|
247
|
+
align-items: center;
|
|
248
|
+
display: flex;
|
|
249
|
+
flex-direction: column;
|
|
250
|
+
}
|
|
251
|
+
.o-md-page-dlg-action-box-container .o-md-page-dlg-action-box-icon[data-v-3a971efe] {
|
|
252
|
+
display: flex;
|
|
253
|
+
justify-content: center;
|
|
254
|
+
align-items: center;
|
|
255
|
+
width: 40px;
|
|
256
|
+
height: 40px;
|
|
257
|
+
background-color: var(--o-color-fill1);
|
|
258
|
+
border-radius: 50%;
|
|
259
|
+
font-size: 24px;
|
|
260
|
+
}
|
|
261
|
+
.o-md-page-dlg-action-box-container .o-md-page-dlg-action-box-label[data-v-3a971efe] {
|
|
262
|
+
margin-top: 8px;
|
|
263
|
+
color: var(--o-color-info1);
|
|
264
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MaybeRefOrGetter } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
el: Element;
|
|
4
|
+
bg?: MaybeRefOrGetter<string>;
|
|
5
|
+
sourceUrl?: MaybeRefOrGetter<string>;
|
|
6
|
+
updateTime?: MaybeRefOrGetter<string>;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
9
|
+
titleRef: HTMLDivElement;
|
|
10
|
+
}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from "./MarkdownPageTitle.vue2.mjs";
|
|
2
|
+
import './MarkdownPageTitle.css';
|
|
3
|
+
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const MarkdownPageTitle = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3a971efe"]]);
|
|
5
|
+
export {
|
|
6
|
+
MarkdownPageTitle as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { defineComponent, useCssVars, computed, toValue, ref, onMounted, nextTick, watch, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, unref, withDirectives, createBlock, withCtx, createVNode, createCommentVNode, createTextVNode, toDisplayString } from "vue";
|
|
2
|
+
import { useWindowSize } from "@vueuse/core";
|
|
3
|
+
import { OIcon, OLink, ODialog } from "@opensig/opendesign";
|
|
4
|
+
import { useScreen } from "@opendesign-plus/composables";
|
|
5
|
+
import { buildVueDompurifyHTMLDirective } from "vue-dompurify-html";
|
|
6
|
+
import { useI18n } from "../../../i18n/index.mjs";
|
|
7
|
+
import bg from "../../../assets/markdown/md-title-bg.png.mjs";
|
|
8
|
+
import IconOutlink from "../../../_virtual/icon-outlink.mjs";
|
|
9
|
+
import IconMore from "../../../_virtual/icon-more.mjs";
|
|
10
|
+
const _hoisted_1 = { class: "o-md-page-title-content" };
|
|
11
|
+
const _hoisted_2 = { class: "o-md-page-title-text __mounted" };
|
|
12
|
+
const _hoisted_3 = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "o-md-page-title-actions"
|
|
15
|
+
};
|
|
16
|
+
const _hoisted_4 = {
|
|
17
|
+
key: 1,
|
|
18
|
+
class: "o-md-page-title-update-time"
|
|
19
|
+
};
|
|
20
|
+
const _hoisted_5 = { class: "o-md-page-dlg-action-box-container" };
|
|
21
|
+
const _hoisted_6 = { class: "o-md-page-dlg-action-box" };
|
|
22
|
+
const _hoisted_7 = { class: "o-md-page-dlg-action-box-icon" };
|
|
23
|
+
const _hoisted_8 = { class: "o-md-page-dlg-action-box-label" };
|
|
24
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
25
|
+
__name: "MarkdownPageTitle",
|
|
26
|
+
props: {
|
|
27
|
+
el: {},
|
|
28
|
+
bg: {},
|
|
29
|
+
sourceUrl: {},
|
|
30
|
+
updateTime: {}
|
|
31
|
+
},
|
|
32
|
+
setup(__props) {
|
|
33
|
+
useCssVars((_ctx) => ({
|
|
34
|
+
"v4967ab7e": bgImage.value
|
|
35
|
+
}));
|
|
36
|
+
const props = __props;
|
|
37
|
+
const bgImage = computed(() => `url(${toValue(props.bg) || bg})`);
|
|
38
|
+
const sourceUrl = computed(() => toValue(props.sourceUrl));
|
|
39
|
+
const updateTime = computed(() => toValue(props.updateTime));
|
|
40
|
+
const showActions = computed(() => sourceUrl.value || updateTime.value);
|
|
41
|
+
const vDompurifyHtml = buildVueDompurifyHTMLDirective();
|
|
42
|
+
const { lePadV } = useScreen();
|
|
43
|
+
const { width } = useWindowSize();
|
|
44
|
+
const { t } = useI18n();
|
|
45
|
+
const titleRef = ref();
|
|
46
|
+
const isFirstH1 = ref(false);
|
|
47
|
+
const showActionsDlg = ref(false);
|
|
48
|
+
const checkShowDownloadPdf = () => {
|
|
49
|
+
var _a;
|
|
50
|
+
const mdBodyH1 = document.querySelector(".markdown-body h1");
|
|
51
|
+
const myH1 = (_a = titleRef.value) == null ? void 0 : _a.querySelector("h1");
|
|
52
|
+
isFirstH1.value = myH1 === mdBodyH1;
|
|
53
|
+
};
|
|
54
|
+
onMounted(async () => {
|
|
55
|
+
await nextTick();
|
|
56
|
+
checkShowDownloadPdf();
|
|
57
|
+
});
|
|
58
|
+
watch([lePadV, width], async () => {
|
|
59
|
+
await nextTick();
|
|
60
|
+
checkShowDownloadPdf();
|
|
61
|
+
});
|
|
62
|
+
return (_ctx, _cache) => {
|
|
63
|
+
var _a;
|
|
64
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
65
|
+
createElementVNode("div", {
|
|
66
|
+
ref_key: "titleRef",
|
|
67
|
+
ref: titleRef,
|
|
68
|
+
class: normalizeClass(["o-md-page-title", {
|
|
69
|
+
"is-simple": !isFirstH1.value || unref(lePadV),
|
|
70
|
+
"first-h1": isFirstH1.value,
|
|
71
|
+
"more-h1": !isFirstH1.value
|
|
72
|
+
}])
|
|
73
|
+
}, [
|
|
74
|
+
createElementVNode("div", _hoisted_1, [
|
|
75
|
+
withDirectives(createElementVNode("div", _hoisted_2, null, 512), [
|
|
76
|
+
[unref(vDompurifyHtml), (_a = __props.el) == null ? void 0 : _a.outerHTML]
|
|
77
|
+
])
|
|
78
|
+
]),
|
|
79
|
+
isFirstH1.value && showActions.value ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
80
|
+
unref(lePadV) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
81
|
+
sourceUrl.value ? (openBlock(), createBlock(unref(OIcon), {
|
|
82
|
+
key: 0,
|
|
83
|
+
class: "o-md-page-title-icon-more",
|
|
84
|
+
onClick: _cache[0] || (_cache[0] = ($event) => showActionsDlg.value = true)
|
|
85
|
+
}, {
|
|
86
|
+
default: withCtx(() => [
|
|
87
|
+
createVNode(unref(IconMore))
|
|
88
|
+
]),
|
|
89
|
+
_: 1
|
|
90
|
+
})) : createCommentVNode("", true)
|
|
91
|
+
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
92
|
+
sourceUrl.value ? (openBlock(), createBlock(unref(OLink), {
|
|
93
|
+
key: 0,
|
|
94
|
+
class: "o-md-page-title-source-code",
|
|
95
|
+
size: "large",
|
|
96
|
+
href: sourceUrl.value,
|
|
97
|
+
target: "_blank",
|
|
98
|
+
rel: "noopener noreferrer"
|
|
99
|
+
}, {
|
|
100
|
+
default: withCtx(() => [
|
|
101
|
+
createTextVNode(toDisplayString(unref(t)("md.gitSource")) + " ", 1),
|
|
102
|
+
createVNode(unref(OIcon), { class: "o-md-page-title-icon-outlink" }, {
|
|
103
|
+
default: withCtx(() => [
|
|
104
|
+
createVNode(unref(IconOutlink))
|
|
105
|
+
]),
|
|
106
|
+
_: 1
|
|
107
|
+
})
|
|
108
|
+
]),
|
|
109
|
+
_: 1
|
|
110
|
+
}, 8, ["href"])) : createCommentVNode("", true),
|
|
111
|
+
updateTime.value ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(unref(t)("md.updateTime")) + toDisplayString(updateTime.value), 1)) : createCommentVNode("", true)
|
|
112
|
+
], 64))
|
|
113
|
+
])) : createCommentVNode("", true)
|
|
114
|
+
], 2),
|
|
115
|
+
unref(lePadV) ? (openBlock(), createBlock(unref(ODialog), {
|
|
116
|
+
key: 0,
|
|
117
|
+
visible: showActionsDlg.value,
|
|
118
|
+
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => showActionsDlg.value = $event),
|
|
119
|
+
size: "medium",
|
|
120
|
+
"phone-half-full": ""
|
|
121
|
+
}, {
|
|
122
|
+
header: withCtx(() => [
|
|
123
|
+
createTextVNode(toDisplayString(unref(t)("md.moreActions")), 1)
|
|
124
|
+
]),
|
|
125
|
+
default: withCtx(() => [
|
|
126
|
+
createElementVNode("div", _hoisted_5, [
|
|
127
|
+
createElementVNode("div", _hoisted_6, [
|
|
128
|
+
createElementVNode("div", _hoisted_7, [
|
|
129
|
+
createVNode(unref(OIcon), null, {
|
|
130
|
+
default: withCtx(() => [
|
|
131
|
+
createVNode(unref(IconOutlink))
|
|
132
|
+
]),
|
|
133
|
+
_: 1
|
|
134
|
+
})
|
|
135
|
+
]),
|
|
136
|
+
createElementVNode("div", _hoisted_8, toDisplayString(unref(t)("md.gitSource")), 1)
|
|
137
|
+
])
|
|
138
|
+
])
|
|
139
|
+
]),
|
|
140
|
+
_: 1
|
|
141
|
+
}, 8, ["visible"])) : createCommentVNode("", true)
|
|
142
|
+
], 64);
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
export {
|
|
147
|
+
_sfc_main as default
|
|
148
|
+
};
|