@opendesign-plus-test/components 0.0.1-rc.250 → 0.0.1-rc.251
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 +2 -4
- package/dist/components/article/OArticle.vue.d.ts +14 -206
- package/dist/components/article/index.d.ts +25 -131
- package/dist/components/article/types.d.ts +2 -8
- package/dist/components/markdown/OMarkdown.vue.d.ts +16 -9
- package/dist/components/{article/components/DocTitle.vue.d.ts → markdown/components/MarkdownPageTitle.vue.d.ts} +5 -6
- package/dist/components/markdown/index.d.ts +45 -19
- package/dist/components/markdown/replacer/h1.d.ts +11 -0
- package/dist/components/summit/types.d.ts +7 -20
- package/dist/components/summit/utils.d.ts +1 -11
- package/dist/components.cjs.js +45 -45
- package/dist/components.css +2 -2
- package/dist/components.es.js +12725 -13018
- package/dist/index.d.ts +0 -1
- package/dist/treeshaking/_virtual/icon-email.mjs +8 -9
- package/dist/treeshaking/_virtual/icon-email2.mjs +9 -8
- package/dist/treeshaking/_virtual/icon-tips.mjs +2 -13
- package/dist/treeshaking/_virtual/icon-tips2.mjs +13 -2
- package/dist/treeshaking/components/article/OArticle.css +124 -18
- package/dist/treeshaking/components/article/OArticle.vue.d.ts +14 -206
- package/dist/treeshaking/components/article/OArticle.vue.mjs +1 -1
- package/dist/treeshaking/components/article/OArticle.vue2.mjs +82 -48
- package/dist/treeshaking/components/article/OArticleList.css +6 -7
- package/dist/treeshaking/components/article/OArticleList.vue.mjs +34 -48
- package/dist/treeshaking/components/article/index.d.ts +25 -131
- package/dist/treeshaking/components/article/types.d.ts +2 -8
- 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 +5 -4
- package/dist/treeshaking/components/events/OEventsList.vue.mjs +1 -1
- package/dist/treeshaking/components/markdown/OMarkdown.vue.d.ts +16 -9
- package/dist/treeshaking/components/markdown/OMarkdown.vue.mjs +1 -1
- package/dist/treeshaking/components/markdown/OMarkdown.vue2.mjs +36 -68
- package/dist/treeshaking/components/markdown/OMarkdown2.css +3 -3
- package/dist/treeshaking/components/markdown/components/MarkdownPageTitle.css +261 -0
- package/dist/treeshaking/components/{article/components/DocTitle.vue.d.ts → markdown/components/MarkdownPageTitle.vue.d.ts} +5 -6
- package/dist/treeshaking/components/markdown/components/MarkdownPageTitle.vue.mjs +7 -0
- package/dist/treeshaking/components/{article/components/DocTitle.vue2.mjs → markdown/components/MarkdownPageTitle.vue2.mjs} +80 -131
- 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 +5 -11
- package/dist/treeshaking/components/markdown/index.d.ts +45 -19
- package/dist/treeshaking/components/markdown/replacer/h1.d.ts +11 -0
- package/dist/treeshaking/components/markdown/replacer/h1.mjs +29 -0
- package/dist/treeshaking/components/meeting/OMeetingMyCalendar.vue.mjs +1 -5
- package/dist/treeshaking/components/meeting/OMeetingSigCalendar.vue.mjs +1 -1
- package/dist/treeshaking/components/meeting/components/OMeetingCalendarList.vue.mjs +1 -5
- package/dist/treeshaking/components/org/OOrgMembers.vue2.mjs +1 -1
- package/dist/treeshaking/components/recursion-menu/ORecursionMenu.vue.mjs +1 -1
- package/dist/treeshaking/components/summit/OSummitLive.css +22 -38
- package/dist/treeshaking/components/summit/OSummitLive.vue.mjs +1 -1
- package/dist/treeshaking/components/summit/OSummitLive.vue2.mjs +10 -37
- package/dist/treeshaking/components/summit/OSummitSchedule.css +33 -33
- package/dist/treeshaking/components/summit/OSummitSchedule.vue.mjs +1 -1
- package/dist/treeshaking/components/summit/OSummitSchedule.vue2.mjs +13 -7
- package/dist/treeshaking/components/summit/components/OSummitTabs.css +30 -31
- package/dist/treeshaking/components/summit/components/OSummitTabs.vue.mjs +1 -1
- package/dist/treeshaking/components/summit/types.d.ts +7 -20
- package/dist/treeshaking/components/summit/utils.d.ts +1 -11
- package/dist/treeshaking/components/summit/utils.mjs +0 -30
- package/dist/treeshaking/components/user-center/OAccountSetting.vue2.mjs +1 -1
- package/dist/treeshaking/components/user-center/OUserInfo.css +109 -109
- package/dist/treeshaking/components/user-center/OUserInfo.vue.mjs +1 -1
- package/dist/treeshaking/components/user-center/OUserInfo.vue2.mjs +5 -4
- package/dist/treeshaking/components/user-center/OUserInfo3.css +4 -4
- package/dist/treeshaking/components/user-center/rolesMap.mjs +2 -10
- package/dist/treeshaking/i18n/en.mjs +1 -2
- package/dist/treeshaking/i18n/zh.mjs +1 -2
- package/dist/treeshaking/index.d.ts +0 -1
- package/dist/treeshaking/index.mjs +0 -2
- package/package.json +3 -3
- package/dist/components/article/components/ArticleTitle.vue.d.ts +0 -22
- package/dist/components/doc-layout/ODocLayout.vue.d.ts +0 -38
- package/dist/components/doc-layout/index.d.ts +0 -59
- package/dist/treeshaking/_virtual/icon-menu-fold.mjs +0 -20
- package/dist/treeshaking/_virtual/icon-menu-unfold.mjs +0 -20
- package/dist/treeshaking/components/article/components/ArticleTitle.css +0 -123
- package/dist/treeshaking/components/article/components/ArticleTitle.vue.d.ts +0 -22
- package/dist/treeshaking/components/article/components/ArticleTitle.vue.mjs +0 -7
- package/dist/treeshaking/components/article/components/ArticleTitle.vue2.mjs +0 -97
- package/dist/treeshaking/components/article/components/DocTitle.css +0 -246
- package/dist/treeshaking/components/article/components/DocTitle.vue.mjs +0 -7
- package/dist/treeshaking/components/doc-layout/ODocLayout.css +0 -271
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue.d.ts +0 -38
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue.mjs +0 -7
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue2.mjs +0 -165
- package/dist/treeshaking/components/doc-layout/index.d.ts +0 -59
- package/dist/treeshaking/components/doc-layout/index.mjs +0 -9
|
@@ -92,7 +92,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
92
92
|
startDate,
|
|
93
93
|
endDate,
|
|
94
94
|
dateStr,
|
|
95
|
-
status: !compareDate(/* @__PURE__ */ new Date(), v.
|
|
95
|
+
status: !compareDate(/* @__PURE__ */ new Date(), v.date || v.endDate) ? EventsStatusT.ING : EventsStatusT.FINISH
|
|
96
96
|
};
|
|
97
97
|
}).sort((a, b) => compareDate(a.date || a.endDate, b.date || b.endDate) ? -1 : 1).map((v) => {
|
|
98
98
|
var _a, _b, _c;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
+
disableH1?: boolean;
|
|
2
3
|
disableH2?: boolean;
|
|
3
4
|
disableTable?: boolean;
|
|
4
5
|
disableImg?: boolean;
|
|
5
6
|
disableCode?: boolean;
|
|
6
7
|
disableChangeCodeTheme?: boolean;
|
|
8
|
+
sourceUrl?: string;
|
|
9
|
+
updateTime?: string;
|
|
10
|
+
titleBg?: string;
|
|
11
|
+
enableDownload?: boolean;
|
|
12
|
+
enableStar?: boolean;
|
|
7
13
|
markdownBodyClass?: string;
|
|
8
|
-
hideFirstH1?: boolean;
|
|
9
|
-
hideFirstElementMarginTop?: boolean;
|
|
10
14
|
};
|
|
11
15
|
declare function __VLS_template(): {
|
|
12
16
|
attrs: Partial<{}>;
|
|
13
17
|
slots: {
|
|
14
|
-
header?(_: {
|
|
15
|
-
h1: HTMLElement | undefined;
|
|
16
|
-
}): any;
|
|
17
18
|
default?(_: {}): any;
|
|
18
|
-
footer?(_: {}): any;
|
|
19
19
|
};
|
|
20
20
|
refs: {
|
|
21
21
|
markdownBodyRef: HTMLDivElement;
|
|
@@ -23,15 +23,22 @@ declare function __VLS_template(): {
|
|
|
23
23
|
rootEl: HTMLDivElement;
|
|
24
24
|
};
|
|
25
25
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
26
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
27
|
+
download: () => any;
|
|
28
|
+
collect: () => any;
|
|
29
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
30
|
+
onDownload?: (() => any) | undefined;
|
|
31
|
+
onCollect?: (() => any) | undefined;
|
|
32
|
+
}>, {
|
|
33
|
+
enableDownload: boolean;
|
|
34
|
+
enableStar: boolean;
|
|
27
35
|
disableChangeCodeTheme: boolean;
|
|
36
|
+
disableH1: boolean;
|
|
28
37
|
disableH2: boolean;
|
|
29
38
|
disableTable: boolean;
|
|
30
39
|
disableImg: boolean;
|
|
31
40
|
disableCode: boolean;
|
|
32
41
|
markdownBodyClass: string;
|
|
33
|
-
hideFirstH1: boolean;
|
|
34
|
-
hideFirstElementMarginTop: boolean;
|
|
35
42
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
36
43
|
markdownBodyRef: HTMLDivElement;
|
|
37
44
|
}, HTMLDivElement>;
|
|
@@ -2,7 +2,7 @@ import _sfc_main from "./OMarkdown.vue2.mjs";
|
|
|
2
2
|
import './OMarkdown.css';
|
|
3
3
|
import './OMarkdown2.css';
|
|
4
4
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
-
const _OMarkdown = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const _OMarkdown = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-31e0d0d3"]]);
|
|
6
6
|
export {
|
|
7
7
|
_OMarkdown as default
|
|
8
8
|
};
|
|
@@ -1,28 +1,38 @@
|
|
|
1
|
-
import { defineComponent, getCurrentInstance, ref,
|
|
1
|
+
import { defineComponent, computed, getCurrentInstance, ref, onMounted, nextTick, onBeforeUnmount, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot } from "vue";
|
|
2
|
+
import { mountMarkdownPageTitle } from "./replacer/h1.mjs";
|
|
2
3
|
import { mountMarkdownTitle } from "./replacer/h2.mjs";
|
|
3
4
|
import { mountMarkdownTable } from "./replacer/table.mjs";
|
|
4
5
|
import { mountMarkdownImage } from "./replacer/img.mjs";
|
|
5
6
|
import { mountMarkdownCode } from "./replacer/code.mjs";
|
|
6
|
-
const _hoisted_1 = { class: "o-markdown-content" };
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "OMarkdown",
|
|
9
9
|
props: {
|
|
10
|
+
disableH1: { type: Boolean, default: false },
|
|
10
11
|
disableH2: { type: Boolean, default: false },
|
|
11
12
|
disableTable: { type: Boolean, default: false },
|
|
12
13
|
disableImg: { type: Boolean, default: false },
|
|
13
14
|
disableCode: { type: Boolean, default: false },
|
|
14
15
|
disableChangeCodeTheme: { type: Boolean, default: false },
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
sourceUrl: {},
|
|
17
|
+
updateTime: {},
|
|
18
|
+
titleBg: {},
|
|
19
|
+
enableDownload: { type: Boolean, default: false },
|
|
20
|
+
enableStar: { type: Boolean, default: false },
|
|
21
|
+
markdownBodyClass: { default: "o-markdown-body" }
|
|
18
22
|
},
|
|
19
|
-
|
|
23
|
+
emits: ["download", "collect"],
|
|
24
|
+
setup(__props, { emit: __emit }) {
|
|
20
25
|
const props = __props;
|
|
26
|
+
const sourceUrlRef = computed(() => props.sourceUrl);
|
|
27
|
+
const updateTimeRef = computed(() => props.updateTime);
|
|
28
|
+
const titleBgRef = computed(() => props.titleBg);
|
|
29
|
+
const enableDownloadRef = computed(() => props.enableDownload);
|
|
30
|
+
const enableStarRef = computed(() => props.enableStar);
|
|
31
|
+
const emit = __emit;
|
|
21
32
|
const unbindMap = /* @__PURE__ */ new WeakMap();
|
|
22
33
|
const instance = getCurrentInstance();
|
|
23
34
|
const markdownBodyRef = ref();
|
|
24
35
|
const mounted = ref(false);
|
|
25
|
-
const firstH1 = ref();
|
|
26
36
|
let observer;
|
|
27
37
|
let context;
|
|
28
38
|
const getContext = () => {
|
|
@@ -36,6 +46,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
46
|
};
|
|
37
47
|
const selectorMap = computed(() => {
|
|
38
48
|
const map = {};
|
|
49
|
+
if (!props.disableH1) {
|
|
50
|
+
map.h1 = (el, ctx) => mountMarkdownPageTitle(el, ctx, {
|
|
51
|
+
sourceUrl: sourceUrlRef,
|
|
52
|
+
updateTime: updateTimeRef,
|
|
53
|
+
titleBg: titleBgRef,
|
|
54
|
+
enableDownload: enableDownloadRef,
|
|
55
|
+
enableStar: enableStarRef,
|
|
56
|
+
onDownload: () => emit("download"),
|
|
57
|
+
onCollect: () => emit("collect")
|
|
58
|
+
});
|
|
59
|
+
}
|
|
39
60
|
if (!props.disableH2) {
|
|
40
61
|
map.h2 = mountMarkdownTitle;
|
|
41
62
|
}
|
|
@@ -72,53 +93,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
72
93
|
}
|
|
73
94
|
});
|
|
74
95
|
};
|
|
75
|
-
const isElementHidden = (el) => {
|
|
76
|
-
return !!el.hidden || el.style.display === "none" || getComputedStyle(el).display === "none";
|
|
77
|
-
};
|
|
78
|
-
const getFirstContentElement = (root) => {
|
|
79
|
-
let container = root;
|
|
80
|
-
for (let i = 0; i < 100; i++) {
|
|
81
|
-
let first = container.firstElementChild;
|
|
82
|
-
while (first && isElementHidden(first)) {
|
|
83
|
-
first = first.nextElementSibling;
|
|
84
|
-
}
|
|
85
|
-
if (!first) {
|
|
86
|
-
return null;
|
|
87
|
-
}
|
|
88
|
-
if (first.tagName === "DIV" && container.childElementCount === 1) {
|
|
89
|
-
container = first;
|
|
90
|
-
continue;
|
|
91
|
-
}
|
|
92
|
-
return first;
|
|
93
|
-
}
|
|
94
|
-
return container.firstElementChild;
|
|
95
|
-
};
|
|
96
|
-
const applyHandleFirstElement = () => {
|
|
97
|
-
const root = markdownBodyRef.value;
|
|
98
|
-
if (!root) {
|
|
99
|
-
firstH1.value = void 0;
|
|
100
|
-
return;
|
|
101
|
-
}
|
|
102
|
-
const firstContent = getFirstContentElement(root);
|
|
103
|
-
if (!firstContent) {
|
|
104
|
-
firstH1.value = void 0;
|
|
105
|
-
return;
|
|
106
|
-
}
|
|
107
|
-
firstH1.value = firstContent.tagName === "H1" ? firstContent : void 0;
|
|
108
|
-
if (props.hideFirstH1 && firstContent.tagName === "H1") {
|
|
109
|
-
firstContent.style.display = "none";
|
|
110
|
-
if (props.hideFirstElementMarginTop) {
|
|
111
|
-
const next = firstContent.nextElementSibling;
|
|
112
|
-
if (next) {
|
|
113
|
-
next.style.marginTop = "0";
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
return;
|
|
117
|
-
}
|
|
118
|
-
if (props.hideFirstElementMarginTop) {
|
|
119
|
-
firstContent.style.marginTop = "0";
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
96
|
const processMutations = (mutations) => {
|
|
123
97
|
const activeMap = selectorMap.value;
|
|
124
98
|
const selectors = Object.keys(activeMap);
|
|
@@ -156,17 +130,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
156
130
|
});
|
|
157
131
|
});
|
|
158
132
|
}
|
|
159
|
-
applyHandleFirstElement();
|
|
160
133
|
};
|
|
161
134
|
onMounted(async () => {
|
|
162
135
|
await nextTick();
|
|
163
136
|
Object.keys(selectorMap.value).forEach((selector) => {
|
|
164
137
|
mountComponent(markdownBodyRef.value, selector);
|
|
165
138
|
});
|
|
139
|
+
mounted.value = true;
|
|
166
140
|
observer = new MutationObserver(processMutations);
|
|
167
141
|
observer.observe(markdownBodyRef.value, { childList: true, subtree: true });
|
|
168
|
-
applyHandleFirstElement();
|
|
169
|
-
mounted.value = true;
|
|
170
142
|
});
|
|
171
143
|
onBeforeUnmount(() => {
|
|
172
144
|
observer == null ? void 0 : observer.disconnect();
|
|
@@ -175,17 +147,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
175
147
|
return openBlock(), createElementBlock("div", {
|
|
176
148
|
class: normalizeClass(["o-markdown", { unmounted: !mounted.value }])
|
|
177
149
|
}, [
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
186
|
-
], 2),
|
|
187
|
-
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
188
|
-
])
|
|
150
|
+
createElementVNode("div", {
|
|
151
|
+
ref_key: "markdownBodyRef",
|
|
152
|
+
ref: markdownBodyRef,
|
|
153
|
+
class: normalizeClass(__props.markdownBodyClass)
|
|
154
|
+
}, [
|
|
155
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
156
|
+
], 2)
|
|
189
157
|
], 2);
|
|
190
158
|
};
|
|
191
159
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
.hover-icon-rotate .o-icon[data-v-
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-31e0d0d3] {
|
|
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-31e0d0d3] {
|
|
6
6
|
transform: rotate(-180deg);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
.o-markdown.unmounted[data-v-
|
|
9
|
+
.o-markdown.unmounted[data-v-31e0d0d3] .o-markdown-body table {
|
|
10
10
|
display: block !important;
|
|
11
11
|
overflow: hidden !important;
|
|
12
12
|
max-height: calc(100vh - 210px) !important;
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-84f356a4] {
|
|
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-84f356a4] {
|
|
6
|
+
transform: rotate(-180deg);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
.o-md-page-title[data-v-84f356a4] {
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
gap: 12px;
|
|
13
|
+
padding: 16px;
|
|
14
|
+
margin-bottom: 32px;
|
|
15
|
+
border-radius: var(--o-radius-xs);
|
|
16
|
+
background-image: var(--v6981a063);
|
|
17
|
+
background-position: 100% 100%;
|
|
18
|
+
background-repeat: no-repeat;
|
|
19
|
+
background-size: cover;
|
|
20
|
+
}
|
|
21
|
+
@media (max-width: 1680px) {
|
|
22
|
+
.o-md-page-title[data-v-84f356a4] {
|
|
23
|
+
gap: 8px;
|
|
24
|
+
padding: 12px;
|
|
25
|
+
margin-bottom: 24px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
@media (max-width: 1200px) {
|
|
29
|
+
.o-md-page-title[data-v-84f356a4] {
|
|
30
|
+
gap: 8px;
|
|
31
|
+
padding: 8px;
|
|
32
|
+
margin-bottom: 16px;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
@media (max-width: 840px) {
|
|
36
|
+
.o-md-page-title[data-v-84f356a4] {
|
|
37
|
+
gap: 12px;
|
|
38
|
+
padding: 16px;
|
|
39
|
+
margin-bottom: 28px;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
.o-md-page-title .o-md-page-title-content[data-v-84f356a4] {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
gap: 8px;
|
|
46
|
+
min-width: 0;
|
|
47
|
+
}
|
|
48
|
+
.o-md-page-title .o-md-page-title-text[data-v-84f356a4] h1 {
|
|
49
|
+
margin-top: 0;
|
|
50
|
+
margin-bottom: 0;
|
|
51
|
+
font-size: 32px;
|
|
52
|
+
line-height: 44px;
|
|
53
|
+
}
|
|
54
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
55
|
+
.o-md-page-title .o-md-page-title-text[data-v-84f356a4] h1 {
|
|
56
|
+
font-size: 20px;
|
|
57
|
+
line-height: 28px;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
61
|
+
.o-md-page-title .o-md-page-title-text[data-v-84f356a4] h1 {
|
|
62
|
+
font-size: 20px;
|
|
63
|
+
line-height: 28px;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
@media (min-width: 601px) and (max-width: 840px) {
|
|
67
|
+
.o-md-page-title .o-md-page-title-text[data-v-84f356a4] h1 {
|
|
68
|
+
font-size: 18px;
|
|
69
|
+
line-height: 26px;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
@media (max-width: 600px) {
|
|
73
|
+
.o-md-page-title .o-md-page-title-text[data-v-84f356a4] h1 {
|
|
74
|
+
font-size: 16px;
|
|
75
|
+
line-height: 24px;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
.o-md-page-title .o-md-page-title-actions[data-v-84f356a4] {
|
|
79
|
+
display: flex;
|
|
80
|
+
align-items: center;
|
|
81
|
+
justify-content: space-between;
|
|
82
|
+
margin-top: 12px;
|
|
83
|
+
}
|
|
84
|
+
@media (max-width: 1680px) {
|
|
85
|
+
.o-md-page-title .o-md-page-title-actions[data-v-84f356a4] {
|
|
86
|
+
margin-top: 8px;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
@media (max-width: 840px) {
|
|
90
|
+
.o-md-page-title .o-md-page-title-actions[data-v-84f356a4] {
|
|
91
|
+
margin-top: 0;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-more[data-v-84f356a4] {
|
|
95
|
+
font-size: 24px;
|
|
96
|
+
color: var(--o-color-info2);
|
|
97
|
+
}
|
|
98
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-source-code[data-v-84f356a4] {
|
|
99
|
+
font-size: 16px;
|
|
100
|
+
line-height: 24px;
|
|
101
|
+
}
|
|
102
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
103
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-source-code[data-v-84f356a4] {
|
|
104
|
+
font-size: 14px;
|
|
105
|
+
line-height: 22px;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
109
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-source-code[data-v-84f356a4] {
|
|
110
|
+
font-size: 14px;
|
|
111
|
+
line-height: 22px;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
@media (min-width: 601px) and (max-width: 840px) {
|
|
115
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-source-code[data-v-84f356a4] {
|
|
116
|
+
font-size: 14px;
|
|
117
|
+
line-height: 22px;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
@media (max-width: 600px) {
|
|
121
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-source-code[data-v-84f356a4] {
|
|
122
|
+
font-size: 12px;
|
|
123
|
+
line-height: 18px;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-source-code[data-v-84f356a4] .o-link-label {
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
}
|
|
130
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-outlink[data-v-84f356a4] {
|
|
131
|
+
font-size: 22px;
|
|
132
|
+
line-height: 30px;
|
|
133
|
+
}
|
|
134
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
135
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-outlink[data-v-84f356a4] {
|
|
136
|
+
font-size: 18px;
|
|
137
|
+
line-height: 26px;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
141
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-outlink[data-v-84f356a4] {
|
|
142
|
+
font-size: 16px;
|
|
143
|
+
line-height: 24px;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
@media (min-width: 601px) and (max-width: 840px) {
|
|
147
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-outlink[data-v-84f356a4] {
|
|
148
|
+
font-size: 16px;
|
|
149
|
+
line-height: 24px;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
@media (max-width: 600px) {
|
|
153
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-outlink[data-v-84f356a4] {
|
|
154
|
+
font-size: 16px;
|
|
155
|
+
line-height: 24px;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-update-time[data-v-84f356a4] {
|
|
159
|
+
color: var(--o-color-info3);
|
|
160
|
+
font-size: 14px;
|
|
161
|
+
line-height: 22px;
|
|
162
|
+
}
|
|
163
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
164
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-update-time[data-v-84f356a4] {
|
|
165
|
+
font-size: 14px;
|
|
166
|
+
line-height: 18px;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
170
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-update-time[data-v-84f356a4] {
|
|
171
|
+
font-size: 12px;
|
|
172
|
+
line-height: 18px;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
@media (min-width: 601px) and (max-width: 840px) {
|
|
176
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-update-time[data-v-84f356a4] {
|
|
177
|
+
font-size: 12px;
|
|
178
|
+
line-height: 18px;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
@media (max-width: 600px) {
|
|
182
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-update-time[data-v-84f356a4] {
|
|
183
|
+
font-size: 12px;
|
|
184
|
+
line-height: 18px;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-actions-left[data-v-84f356a4] {
|
|
188
|
+
display: flex;
|
|
189
|
+
align-items: center;
|
|
190
|
+
gap: 12px;
|
|
191
|
+
}
|
|
192
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-download[data-v-84f356a4],
|
|
193
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-star[data-v-84f356a4] {
|
|
194
|
+
font-size: 24px;
|
|
195
|
+
cursor: pointer;
|
|
196
|
+
}
|
|
197
|
+
@media (hover: hover) {
|
|
198
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-download[data-v-84f356a4]:hover,
|
|
199
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-star[data-v-84f356a4]:hover {
|
|
200
|
+
color: var(--o-color-info1);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
@media (max-width: 1680px) {
|
|
204
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-download[data-v-84f356a4],
|
|
205
|
+
.o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-star[data-v-84f356a4] {
|
|
206
|
+
font-size: 20px;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
.o-md-page-title.is-simple[data-v-84f356a4] {
|
|
210
|
+
padding: 0;
|
|
211
|
+
background-image: none;
|
|
212
|
+
}
|
|
213
|
+
@media (max-width: 840px) {
|
|
214
|
+
.o-md-page-title.first-h1[data-v-84f356a4] {
|
|
215
|
+
display: flex;
|
|
216
|
+
justify-content: space-between;
|
|
217
|
+
align-items: center;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
.o-md-page-title.more-h1[data-v-84f356a4] {
|
|
221
|
+
margin-top: 32px;
|
|
222
|
+
}
|
|
223
|
+
@media (max-width: 1680px) {
|
|
224
|
+
.o-md-page-title.more-h1[data-v-84f356a4] {
|
|
225
|
+
margin-top: 24px;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
@media (max-width: 1200px) {
|
|
229
|
+
.o-md-page-title.more-h1[data-v-84f356a4] {
|
|
230
|
+
margin-top: 16px;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
@media (max-width: 840px) {
|
|
234
|
+
.o-md-page-title.more-h1[data-v-84f356a4] {
|
|
235
|
+
margin-top: 28px;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
.o-md-page-dlg-action-box-container[data-v-84f356a4] {
|
|
239
|
+
display: flex;
|
|
240
|
+
justify-content: space-around;
|
|
241
|
+
}
|
|
242
|
+
.o-md-page-dlg-action-box-container .o-md-page-dlg-action-box[data-v-84f356a4] {
|
|
243
|
+
flex: 1;
|
|
244
|
+
align-items: center;
|
|
245
|
+
display: flex;
|
|
246
|
+
flex-direction: column;
|
|
247
|
+
}
|
|
248
|
+
.o-md-page-dlg-action-box-container .o-md-page-dlg-action-box-icon[data-v-84f356a4] {
|
|
249
|
+
display: flex;
|
|
250
|
+
justify-content: center;
|
|
251
|
+
align-items: center;
|
|
252
|
+
width: 40px;
|
|
253
|
+
height: 40px;
|
|
254
|
+
background-color: var(--o-color-fill1);
|
|
255
|
+
border-radius: 50%;
|
|
256
|
+
font-size: 24px;
|
|
257
|
+
}
|
|
258
|
+
.o-md-page-dlg-action-box-container .o-md-page-dlg-action-box-label[data-v-84f356a4] {
|
|
259
|
+
margin-top: 8px;
|
|
260
|
+
color: var(--o-color-info1);
|
|
261
|
+
}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { MaybeRefOrGetter } from 'vue';
|
|
2
|
-
import { OMarkdownMaybeElementT } from '
|
|
2
|
+
import { OMarkdownMaybeElementT } from '../types';
|
|
3
3
|
type __VLS_Props = {
|
|
4
|
-
el
|
|
5
|
-
title?: string;
|
|
4
|
+
el: OMarkdownMaybeElementT;
|
|
6
5
|
bgImage?: MaybeRefOrGetter<string>;
|
|
7
6
|
sourceUrl?: MaybeRefOrGetter<string>;
|
|
8
7
|
updateTime?: MaybeRefOrGetter<string>;
|
|
9
8
|
enableDownload?: MaybeRefOrGetter<boolean>;
|
|
10
9
|
enableStar?: MaybeRefOrGetter<boolean>;
|
|
11
|
-
enableCopyLink?: MaybeRefOrGetter<boolean>;
|
|
12
10
|
};
|
|
13
11
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
12
|
download: () => any;
|
|
@@ -19,6 +17,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
19
17
|
}>, {
|
|
20
18
|
enableDownload: MaybeRefOrGetter<boolean>;
|
|
21
19
|
enableStar: MaybeRefOrGetter<boolean>;
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
21
|
+
titleRef: HTMLDivElement;
|
|
22
|
+
}, any>;
|
|
24
23
|
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-84f356a4"]]);
|
|
5
|
+
export {
|
|
6
|
+
MarkdownPageTitle as default
|
|
7
|
+
};
|