@opendesign-plus-test/components 0.0.1-rc.251 → 0.0.1-rc.253
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 +4 -2
- package/dist/components/article/OArticle.vue.d.ts +206 -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 +131 -25
- package/dist/components/article/types.d.ts +8 -2
- package/dist/components/doc-layout/ODocLayout.vue.d.ts +38 -0
- package/dist/components/doc-layout/index.d.ts +59 -0
- package/dist/components/markdown/OMarkdown.vue.d.ts +9 -16
- package/dist/components/markdown/index.d.ts +19 -45
- package/dist/components/summit/types.d.ts +20 -7
- package/dist/components/summit/utils.d.ts +11 -1
- package/dist/components.cjs.js +44 -44
- package/dist/components.css +1 -1
- package/dist/components.es.js +13146 -12861
- 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/_virtual/icon-tips.mjs +13 -2
- package/dist/treeshaking/_virtual/icon-tips2.mjs +2 -13
- package/dist/treeshaking/components/anchor-bar/OAnchorBar.css +32 -32
- package/dist/treeshaking/components/anchor-bar/OAnchorBar.vue.mjs +1 -1
- package/dist/treeshaking/components/article/OArticle.css +18 -124
- package/dist/treeshaking/components/article/OArticle.vue.d.ts +206 -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/OArticleList.css +7 -6
- package/dist/treeshaking/components/article/OArticleList.vue.mjs +48 -34
- 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 +131 -25
- package/dist/treeshaking/components/article/types.d.ts +8 -2
- 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/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/markdown/OMarkdown.vue.d.ts +9 -16
- package/dist/treeshaking/components/markdown/OMarkdown.vue.mjs +1 -1
- package/dist/treeshaking/components/markdown/OMarkdown.vue2.mjs +68 -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 +19 -45
- package/dist/treeshaking/components/meeting/OMeetingMyCalendar.vue.mjs +5 -1
- package/dist/treeshaking/components/meeting/OMeetingSigCalendar.vue.mjs +1 -1
- package/dist/treeshaking/components/meeting/components/OMeetingCalendarList.vue.mjs +5 -1
- package/dist/treeshaking/components/recursion-menu/ORecursionMenu.vue.mjs +1 -1
- package/dist/treeshaking/components/summit/OSummitLive.css +38 -22
- package/dist/treeshaking/components/summit/OSummitLive.vue.mjs +1 -1
- package/dist/treeshaking/components/summit/OSummitLive.vue2.mjs +37 -10
- 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 +7 -13
- package/dist/treeshaking/components/summit/components/OSummitTabs.css +31 -30
- package/dist/treeshaking/components/summit/components/OSummitTabs.vue.mjs +1 -1
- package/dist/treeshaking/components/summit/types.d.ts +20 -7
- package/dist/treeshaking/components/summit/utils.d.ts +11 -1
- package/dist/treeshaking/components/summit/utils.mjs +30 -0
- package/dist/treeshaking/components/user-center/OUserInfo.vue2.mjs +1 -1
- package/dist/treeshaking/i18n/en.mjs +2 -1
- package/dist/treeshaking/i18n/zh.mjs +2 -1
- package/dist/treeshaking/index.d.ts +1 -0
- package/dist/treeshaking/index.mjs +2 -0
- package/package.json +4 -4
- package/dist/components/markdown/replacer/h1.d.ts +0 -11
- package/dist/components/meeting/components/OMeetingCalendarSelector.vue.d.ts +0 -664
- 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
- package/dist/treeshaking/components/meeting/components/OMeetingCalendarSelector.vue.d.ts +0 -664
|
@@ -1,38 +1,28 @@
|
|
|
1
|
-
import { defineComponent,
|
|
2
|
-
import { mountMarkdownPageTitle } from "./replacer/h1.mjs";
|
|
1
|
+
import { defineComponent, getCurrentInstance, ref, computed, onMounted, nextTick, onBeforeUnmount, openBlock, createElementBlock, normalizeClass, renderSlot, createElementVNode } from "vue";
|
|
3
2
|
import { mountMarkdownTitle } from "./replacer/h2.mjs";
|
|
4
3
|
import { mountMarkdownTable } from "./replacer/table.mjs";
|
|
5
4
|
import { mountMarkdownImage } from "./replacer/img.mjs";
|
|
6
5
|
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 },
|
|
11
10
|
disableH2: { type: Boolean, default: false },
|
|
12
11
|
disableTable: { type: Boolean, default: false },
|
|
13
12
|
disableImg: { type: Boolean, default: false },
|
|
14
13
|
disableCode: { type: Boolean, default: false },
|
|
15
14
|
disableChangeCodeTheme: { type: Boolean, default: false },
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
enableDownload: { type: Boolean, default: false },
|
|
20
|
-
enableStar: { type: Boolean, default: false },
|
|
21
|
-
markdownBodyClass: { default: "o-markdown-body" }
|
|
15
|
+
markdownBodyClass: { default: "o-markdown-body" },
|
|
16
|
+
hideFirstH1: { type: Boolean, default: false },
|
|
17
|
+
hideFirstElementMarginTop: { type: Boolean, default: true }
|
|
22
18
|
},
|
|
23
|
-
|
|
24
|
-
setup(__props, { emit: __emit }) {
|
|
19
|
+
setup(__props) {
|
|
25
20
|
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;
|
|
32
21
|
const unbindMap = /* @__PURE__ */ new WeakMap();
|
|
33
22
|
const instance = getCurrentInstance();
|
|
34
23
|
const markdownBodyRef = ref();
|
|
35
24
|
const mounted = ref(false);
|
|
25
|
+
const firstH1 = ref();
|
|
36
26
|
let observer;
|
|
37
27
|
let context;
|
|
38
28
|
const getContext = () => {
|
|
@@ -46,17 +36,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
36
|
};
|
|
47
37
|
const selectorMap = computed(() => {
|
|
48
38
|
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
|
-
}
|
|
60
39
|
if (!props.disableH2) {
|
|
61
40
|
map.h2 = mountMarkdownTitle;
|
|
62
41
|
}
|
|
@@ -93,6 +72,53 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
93
72
|
}
|
|
94
73
|
});
|
|
95
74
|
};
|
|
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
|
+
};
|
|
96
122
|
const processMutations = (mutations) => {
|
|
97
123
|
const activeMap = selectorMap.value;
|
|
98
124
|
const selectors = Object.keys(activeMap);
|
|
@@ -130,15 +156,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
130
156
|
});
|
|
131
157
|
});
|
|
132
158
|
}
|
|
159
|
+
applyHandleFirstElement();
|
|
133
160
|
};
|
|
134
161
|
onMounted(async () => {
|
|
135
162
|
await nextTick();
|
|
136
163
|
Object.keys(selectorMap.value).forEach((selector) => {
|
|
137
164
|
mountComponent(markdownBodyRef.value, selector);
|
|
138
165
|
});
|
|
139
|
-
mounted.value = true;
|
|
140
166
|
observer = new MutationObserver(processMutations);
|
|
141
167
|
observer.observe(markdownBodyRef.value, { childList: true, subtree: true });
|
|
168
|
+
applyHandleFirstElement();
|
|
169
|
+
mounted.value = true;
|
|
142
170
|
});
|
|
143
171
|
onBeforeUnmount(() => {
|
|
144
172
|
observer == null ? void 0 : observer.disconnect();
|
|
@@ -147,13 +175,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
147
175
|
return openBlock(), createElementBlock("div", {
|
|
148
176
|
class: normalizeClass(["o-markdown", { unmounted: !mounted.value }])
|
|
149
177
|
}, [
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
178
|
+
renderSlot(_ctx.$slots, "header", { h1: firstH1.value }, void 0, true),
|
|
179
|
+
createElementVNode("div", _hoisted_1, [
|
|
180
|
+
createElementVNode("div", {
|
|
181
|
+
ref_key: "markdownBodyRef",
|
|
182
|
+
ref: markdownBodyRef,
|
|
183
|
+
class: normalizeClass(__props.markdownBodyClass)
|
|
184
|
+
}, [
|
|
185
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
186
|
+
], 2),
|
|
187
|
+
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
188
|
+
])
|
|
157
189
|
], 2);
|
|
158
190
|
};
|
|
159
191
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
.hover-icon-rotate .o-icon[data-v-
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-4be4e234] {
|
|
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-4be4e234] {
|
|
6
6
|
transform: rotate(-180deg);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
.o-markdown.unmounted[data-v-
|
|
9
|
+
.o-markdown.unmounted[data-v-4be4e234] .o-markdown-body table {
|
|
10
10
|
display: block !important;
|
|
11
11
|
overflow: hidden !important;
|
|
12
12
|
max-height: calc(100vh - 210px) !important;
|
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
.hover-icon-rotate .o-icon[data-v-
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-73874b80] {
|
|
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-73874b80] {
|
|
6
6
|
transform: rotate(-180deg);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
.o-md-title-wrap[data-v-
|
|
9
|
+
.o-md-title-wrap[data-v-73874b80] {
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: flex-start;
|
|
12
12
|
margin-top: 32px;
|
|
13
13
|
margin-bottom: 16px;
|
|
14
14
|
}
|
|
15
15
|
@media (max-width: 1680px) {
|
|
16
|
-
.o-md-title-wrap[data-v-
|
|
16
|
+
.o-md-title-wrap[data-v-73874b80] {
|
|
17
17
|
margin-top: 24px;
|
|
18
18
|
margin-bottom: 12px;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
@media (max-width: 1200px) {
|
|
22
|
-
.o-md-title-wrap[data-v-
|
|
22
|
+
.o-md-title-wrap[data-v-73874b80] {
|
|
23
23
|
margin-top: 16px;
|
|
24
24
|
margin-bottom: 8px;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
@media (max-width: 840px) {
|
|
28
|
-
.o-md-title-wrap[data-v-
|
|
28
|
+
.o-md-title-wrap[data-v-73874b80] {
|
|
29
29
|
margin-top: 28px;
|
|
30
30
|
margin-bottom: 16px;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
.o-md-title-wrap .o-md-title[data-v-
|
|
33
|
+
.o-md-title-wrap .o-md-title[data-v-73874b80] {
|
|
34
34
|
overflow-wrap: break-word;
|
|
35
35
|
word-wrap: break-word;
|
|
36
36
|
word-break: normal;
|
|
37
37
|
max-width: calc(100% - 2rem);
|
|
38
38
|
}
|
|
39
|
-
.o-md-title-wrap .o-md-title[data-v-
|
|
39
|
+
.o-md-title-wrap .o-md-title[data-v-73874b80] h2 {
|
|
40
40
|
margin-top: 0;
|
|
41
41
|
margin-bottom: 0;
|
|
42
42
|
font-size: 22px;
|
|
43
43
|
line-height: 30px;
|
|
44
44
|
}
|
|
45
45
|
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
46
|
-
.o-md-title-wrap .o-md-title[data-v-
|
|
46
|
+
.o-md-title-wrap .o-md-title[data-v-73874b80] h2 {
|
|
47
47
|
font-size: 18px;
|
|
48
48
|
line-height: 26px;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
@media (min-width: 841px) and (max-width: 1200px) {
|
|
52
|
-
.o-md-title-wrap .o-md-title[data-v-
|
|
52
|
+
.o-md-title-wrap .o-md-title[data-v-73874b80] h2 {
|
|
53
53
|
font-size: 16px;
|
|
54
54
|
line-height: 24px;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
@media (min-width: 601px) and (max-width: 840px) {
|
|
58
|
-
.o-md-title-wrap .o-md-title[data-v-
|
|
58
|
+
.o-md-title-wrap .o-md-title[data-v-73874b80] h2 {
|
|
59
59
|
font-size: 16px;
|
|
60
60
|
line-height: 24px;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
@media (max-width: 600px) {
|
|
64
|
-
.o-md-title-wrap .o-md-title[data-v-
|
|
64
|
+
.o-md-title-wrap .o-md-title[data-v-73874b80] h2 {
|
|
65
65
|
font-size: 16px;
|
|
66
66
|
line-height: 24px;
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
.o-md-title-wrap .o-md-title-copy-link-wrap[data-v-
|
|
69
|
+
.o-md-title-wrap .o-md-title-copy-link-wrap[data-v-73874b80] {
|
|
70
70
|
position: relative;
|
|
71
71
|
width: 1em;
|
|
72
72
|
height: 1em;
|
|
@@ -74,50 +74,50 @@
|
|
|
74
74
|
clear: both;
|
|
75
75
|
}
|
|
76
76
|
@media (max-width: 1680px) {
|
|
77
|
-
.o-md-title-wrap .o-md-title-copy-link-wrap[data-v-
|
|
77
|
+
.o-md-title-wrap .o-md-title-copy-link-wrap[data-v-73874b80] {
|
|
78
78
|
margin-left: 4px;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
.o-md-title-wrap .o-md-title-copy-link[data-v-
|
|
81
|
+
.o-md-title-wrap .o-md-title-copy-link[data-v-73874b80] {
|
|
82
82
|
position: absolute;
|
|
83
83
|
top: 2px;
|
|
84
84
|
font-size: 24px;
|
|
85
85
|
line-height: 32px;
|
|
86
86
|
}
|
|
87
87
|
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
88
|
-
.o-md-title-wrap .o-md-title-copy-link[data-v-
|
|
88
|
+
.o-md-title-wrap .o-md-title-copy-link[data-v-73874b80] {
|
|
89
89
|
font-size: 20px;
|
|
90
90
|
line-height: 28px;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
@media (min-width: 841px) and (max-width: 1200px) {
|
|
94
|
-
.o-md-title-wrap .o-md-title-copy-link[data-v-
|
|
94
|
+
.o-md-title-wrap .o-md-title-copy-link[data-v-73874b80] {
|
|
95
95
|
font-size: 18px;
|
|
96
96
|
line-height: 26px;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
@media (min-width: 601px) and (max-width: 840px) {
|
|
100
|
-
.o-md-title-wrap .o-md-title-copy-link[data-v-
|
|
100
|
+
.o-md-title-wrap .o-md-title-copy-link[data-v-73874b80] {
|
|
101
101
|
font-size: 18px;
|
|
102
102
|
line-height: 26px;
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
@media (max-width: 600px) {
|
|
106
|
-
.o-md-title-wrap .o-md-title-copy-link[data-v-
|
|
106
|
+
.o-md-title-wrap .o-md-title-copy-link[data-v-73874b80] {
|
|
107
107
|
font-size: 16px;
|
|
108
108
|
line-height: 24px;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
@media (hover: hover) {
|
|
112
|
-
.o-md-title-wrap .o-md-title-copy-link[data-v-
|
|
112
|
+
.o-md-title-wrap .o-md-title-copy-link[data-v-73874b80]:hover {
|
|
113
113
|
color: var(--o-color-primary1);
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
.o-md-title-wrap .o-md-title-copy-link .o-md-title-icon-copy[data-v-
|
|
116
|
+
.o-md-title-wrap .o-md-title-copy-link .o-md-title-icon-copy[data-v-73874b80] {
|
|
117
117
|
color: var(--o-color-info2);
|
|
118
118
|
}
|
|
119
119
|
@media (hover: hover) {
|
|
120
|
-
.o-md-title-wrap .o-md-title-copy-link .o-md-title-icon-copy[data-v-
|
|
120
|
+
.o-md-title-wrap .o-md-title-copy-link .o-md-title-icon-copy[data-v-73874b80]:hover {
|
|
121
121
|
color: var(--o-color-info1);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./MarkdownTitle.vue2.mjs";
|
|
2
2
|
import './MarkdownTitle.css';
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const MarkdownTitle = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const MarkdownTitle = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-73874b80"]]);
|
|
5
5
|
export {
|
|
6
6
|
MarkdownTitle as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, withDirectives, createElementVNode, unref, createVNode, withCtx, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import { useMessage, OPopover, OIcon } from "@opensig/opendesign";
|
|
3
|
-
import { useClipboard } from "@opendesign-plus/composables";
|
|
2
|
+
import { useMessage, useToast, OPopover, OIcon } from "@opensig/opendesign";
|
|
3
|
+
import { useScreen, useClipboard } from "@opendesign-plus/composables";
|
|
4
4
|
import { buildVueDompurifyHTMLDirective } from "vue-dompurify-html";
|
|
5
5
|
import { useI18n } from "../../../i18n/index.mjs";
|
|
6
6
|
import IconLink from "../../../_virtual/icon-link.mjs";
|
|
@@ -20,14 +20,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
const message = useMessage();
|
|
23
|
+
const toast = useToast();
|
|
24
|
+
const { lePadV } = useScreen();
|
|
23
25
|
const { t } = useI18n();
|
|
24
26
|
const onClickCopyLink = async () => {
|
|
25
27
|
var _a, _b;
|
|
26
28
|
const text = `${window.location.origin}${window.location.pathname}#${(_b = (_a = props.el) == null ? void 0 : _a.id) == null ? void 0 : _b.replace("user-content-", "")}`;
|
|
27
29
|
if (await useClipboard(text)) {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
30
|
+
if (lePadV.value) {
|
|
31
|
+
toast.show(t("common.copySuccess"));
|
|
32
|
+
} else {
|
|
33
|
+
message.success({
|
|
34
|
+
content: t("common.copySuccess")
|
|
35
|
+
});
|
|
36
|
+
}
|
|
31
37
|
}
|
|
32
38
|
};
|
|
33
39
|
return (_ctx, _cache) => {
|
|
@@ -1,34 +1,23 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
declare const OMarkdown: {
|
|
3
3
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
4
|
-
disableH1?: boolean;
|
|
5
4
|
disableH2?: boolean;
|
|
6
5
|
disableTable?: boolean;
|
|
7
6
|
disableImg?: boolean;
|
|
8
7
|
disableCode?: boolean;
|
|
9
8
|
disableChangeCodeTheme?: boolean;
|
|
10
|
-
sourceUrl?: string;
|
|
11
|
-
updateTime?: string;
|
|
12
|
-
titleBg?: string;
|
|
13
|
-
enableDownload?: boolean;
|
|
14
|
-
enableStar?: boolean;
|
|
15
9
|
markdownBodyClass?: string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
-
download: () => any;
|
|
21
|
-
collect: () => any;
|
|
22
|
-
}, import('vue').PublicProps, {
|
|
23
|
-
enableDownload: boolean;
|
|
24
|
-
enableStar: boolean;
|
|
10
|
+
hideFirstH1?: boolean;
|
|
11
|
+
hideFirstElementMarginTop?: boolean;
|
|
12
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
25
13
|
disableChangeCodeTheme: boolean;
|
|
26
|
-
disableH1: boolean;
|
|
27
14
|
disableH2: boolean;
|
|
28
15
|
disableTable: boolean;
|
|
29
16
|
disableImg: boolean;
|
|
30
17
|
disableCode: boolean;
|
|
31
18
|
markdownBodyClass: string;
|
|
19
|
+
hideFirstH1: boolean;
|
|
20
|
+
hideFirstElementMarginTop: boolean;
|
|
32
21
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
33
22
|
markdownBodyRef: HTMLDivElement;
|
|
34
23
|
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
@@ -39,67 +28,52 @@ declare const OMarkdown: {
|
|
|
39
28
|
M: {};
|
|
40
29
|
Defaults: {};
|
|
41
30
|
}, Readonly<{
|
|
42
|
-
disableH1?: boolean;
|
|
43
31
|
disableH2?: boolean;
|
|
44
32
|
disableTable?: boolean;
|
|
45
33
|
disableImg?: boolean;
|
|
46
34
|
disableCode?: boolean;
|
|
47
35
|
disableChangeCodeTheme?: boolean;
|
|
48
|
-
sourceUrl?: string;
|
|
49
|
-
updateTime?: string;
|
|
50
|
-
titleBg?: string;
|
|
51
|
-
enableDownload?: boolean;
|
|
52
|
-
enableStar?: boolean;
|
|
53
36
|
markdownBodyClass?: string;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}>, {}, {}, {}, {}, {
|
|
58
|
-
enableDownload: boolean;
|
|
59
|
-
enableStar: boolean;
|
|
37
|
+
hideFirstH1?: boolean;
|
|
38
|
+
hideFirstElementMarginTop?: boolean;
|
|
39
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
60
40
|
disableChangeCodeTheme: boolean;
|
|
61
|
-
disableH1: boolean;
|
|
62
41
|
disableH2: boolean;
|
|
63
42
|
disableTable: boolean;
|
|
64
43
|
disableImg: boolean;
|
|
65
44
|
disableCode: boolean;
|
|
66
45
|
markdownBodyClass: string;
|
|
46
|
+
hideFirstH1: boolean;
|
|
47
|
+
hideFirstElementMarginTop: boolean;
|
|
67
48
|
}>;
|
|
68
49
|
__isFragment?: never;
|
|
69
50
|
__isTeleport?: never;
|
|
70
51
|
__isSuspense?: never;
|
|
71
52
|
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
72
|
-
disableH1?: boolean;
|
|
73
53
|
disableH2?: boolean;
|
|
74
54
|
disableTable?: boolean;
|
|
75
55
|
disableImg?: boolean;
|
|
76
56
|
disableCode?: boolean;
|
|
77
57
|
disableChangeCodeTheme?: boolean;
|
|
78
|
-
sourceUrl?: string;
|
|
79
|
-
updateTime?: string;
|
|
80
|
-
titleBg?: string;
|
|
81
|
-
enableDownload?: boolean;
|
|
82
|
-
enableStar?: boolean;
|
|
83
58
|
markdownBodyClass?: string;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
88
|
-
download: () => any;
|
|
89
|
-
collect: () => any;
|
|
90
|
-
}, string, {
|
|
91
|
-
enableDownload: boolean;
|
|
92
|
-
enableStar: boolean;
|
|
59
|
+
hideFirstH1?: boolean;
|
|
60
|
+
hideFirstElementMarginTop?: boolean;
|
|
61
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
93
62
|
disableChangeCodeTheme: boolean;
|
|
94
|
-
disableH1: boolean;
|
|
95
63
|
disableH2: boolean;
|
|
96
64
|
disableTable: boolean;
|
|
97
65
|
disableImg: boolean;
|
|
98
66
|
disableCode: boolean;
|
|
99
67
|
markdownBodyClass: string;
|
|
68
|
+
hideFirstH1: boolean;
|
|
69
|
+
hideFirstElementMarginTop: boolean;
|
|
100
70
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
101
71
|
$slots: {
|
|
72
|
+
header?(_: {
|
|
73
|
+
h1: HTMLElement | undefined;
|
|
74
|
+
}): any;
|
|
102
75
|
default?(_: {}): any;
|
|
76
|
+
footer?(_: {}): any;
|
|
103
77
|
};
|
|
104
78
|
}) & {
|
|
105
79
|
install(app: App): void;
|
|
@@ -136,7 +136,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
136
136
|
let timeRange = "";
|
|
137
137
|
let cycleType = "";
|
|
138
138
|
if (cycle_type === INTERVAL_DAY) {
|
|
139
|
-
|
|
139
|
+
if (cycle_interval > 1) {
|
|
140
|
+
cycleType = t("meeting.cycleDay.other", [cycle_interval]);
|
|
141
|
+
} else {
|
|
142
|
+
cycleType = t("meeting.cycleDay.one");
|
|
143
|
+
}
|
|
140
144
|
}
|
|
141
145
|
if (cycle_type === INTERVAL_WEEK) {
|
|
142
146
|
if (cycle_interval > 1) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, watch, nextTick, onMounted, onBeforeUnmount, openBlock, createElementBlock, unref, createElementVNode, toDisplayString, createVNode, withCtx, createCommentVNode, normalizeClass, Fragment, renderList, createBlock, resolveDynamicComponent, createTextVNode, renderSlot } from "vue";
|
|
2
2
|
import { isClient, OPopover, OIcon, OTab, OTabPane, OSelect, OOption, ODivider, OScroller, OResult, OFigure } from "@opensig/opendesign";
|
|
3
3
|
import dayjs from "dayjs";
|
|
4
|
-
import IconTips from "../../_virtual/icon-
|
|
4
|
+
import IconTips from "../../_virtual/icon-tips2.mjs";
|
|
5
5
|
import _sfc_main$1 from "./components/OMeetingSigAside.vue.mjs";
|
|
6
6
|
import './components/OMeetingSigAside.css';
|
|
7
7
|
import { CalendarDataType } from "./types.mjs";
|
|
@@ -186,7 +186,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
186
186
|
if (is_cycle) {
|
|
187
187
|
let cycleType = "";
|
|
188
188
|
if (cycle_type === INTERVAL_DAY) {
|
|
189
|
-
|
|
189
|
+
if (cycle_interval > 1) {
|
|
190
|
+
cycleType = t("meeting.cycleDay.other", [cycle_interval]);
|
|
191
|
+
} else {
|
|
192
|
+
cycleType = t("meeting.cycleDay.one");
|
|
193
|
+
}
|
|
190
194
|
}
|
|
191
195
|
if (cycle_type === INTERVAL_WEEK) {
|
|
192
196
|
if (cycle_interval > 1) {
|
|
@@ -8,7 +8,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8
8
|
expanded: {},
|
|
9
9
|
defaultExpanded: { default: () => [] },
|
|
10
10
|
scrollContainer: {},
|
|
11
|
-
menuWidth: { default: "
|
|
11
|
+
menuWidth: { default: "100%" },
|
|
12
12
|
size: { default: "small" }
|
|
13
13
|
}, {
|
|
14
14
|
"modelValue": { default: "" },
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
.hover-icon-rotate .o-icon[data-v-
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-ceb9b04d] {
|
|
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-ceb9b04d] {
|
|
6
6
|
transform: rotate(-180deg);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
.o-summit-live .o-summit-title[data-v-
|
|
9
|
+
.o-summit-live .o-summit-title[data-v-ceb9b04d] {
|
|
10
10
|
margin-bottom: var(--o-r-gap-6);
|
|
11
11
|
color: var(--o-color-info1);
|
|
12
12
|
font-weight: 600;
|
|
@@ -14,39 +14,39 @@
|
|
|
14
14
|
font-size: var(--o-r-font_size-display3);
|
|
15
15
|
line-height: var(--o-r-line_height-display3);
|
|
16
16
|
}
|
|
17
|
-
.o-summit-live .o-summit-live-wrapper[data-v-
|
|
17
|
+
.o-summit-live .o-summit-live-wrapper[data-v-ceb9b04d] {
|
|
18
18
|
margin-top: var(--o-r-gap-6);
|
|
19
19
|
}
|
|
20
|
-
.o-summit-live .o-summit-live-select[data-v-
|
|
20
|
+
.o-summit-live .o-summit-live-select[data-v-ceb9b04d] {
|
|
21
21
|
display: none;
|
|
22
22
|
}
|
|
23
|
-
.o-summit-live .o-summit-live-select[data-v-
|
|
23
|
+
.o-summit-live .o-summit-live-select[data-v-ceb9b04d] .o-select {
|
|
24
24
|
width: 100%;
|
|
25
25
|
}
|
|
26
|
-
.o-summit-live .o-summit-live-select[data-v-
|
|
26
|
+
.o-summit-live .o-summit-live-select[data-v-ceb9b04d] .o-select .o-input {
|
|
27
27
|
height: 48px;
|
|
28
28
|
}
|
|
29
29
|
@media (max-width: 840px) {
|
|
30
|
-
.o-summit-live .o-summit-live-select[data-v-
|
|
30
|
+
.o-summit-live .o-summit-live-select[data-v-ceb9b04d] {
|
|
31
31
|
display: block;
|
|
32
32
|
margin-bottom: var(--o-gap-2);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
.o-summit-live .o-summit-live-video[data-v-
|
|
35
|
+
.o-summit-live .o-summit-live-video[data-v-ceb9b04d] {
|
|
36
36
|
margin-bottom: var(--o-r-gap-5);
|
|
37
37
|
width: 100%;
|
|
38
38
|
display: block;
|
|
39
39
|
border: none;
|
|
40
40
|
}
|
|
41
|
-
.o-summit-live .o-summit-live-web[data-v-
|
|
41
|
+
.o-summit-live .o-summit-live-web[data-v-ceb9b04d] {
|
|
42
42
|
display: block;
|
|
43
43
|
}
|
|
44
44
|
@media (max-width: 840px) {
|
|
45
|
-
.o-summit-live .o-summit-live-web[data-v-
|
|
45
|
+
.o-summit-live .o-summit-live-web[data-v-ceb9b04d] {
|
|
46
46
|
display: none;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
.o-summit-live .o-summit-live-itembox[data-v-
|
|
49
|
+
.o-summit-live .o-summit-live-itembox[data-v-ceb9b04d] {
|
|
50
50
|
display: grid;
|
|
51
51
|
grid-template-columns: repeat(4, 1fr);
|
|
52
52
|
gap: var(--o-r-gap-6) var(--o-r-gap-5);
|
|
@@ -54,21 +54,21 @@
|
|
|
54
54
|
--link-height: 96px;
|
|
55
55
|
}
|
|
56
56
|
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
57
|
-
.o-summit-live .o-summit-live-itembox[data-v-
|
|
57
|
+
.o-summit-live .o-summit-live-itembox[data-v-ceb9b04d] {
|
|
58
58
|
--link-height: 92px;
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
@media (min-width: 841px) and (max-width: 1200px) {
|
|
62
|
-
.o-summit-live .o-summit-live-itembox[data-v-
|
|
62
|
+
.o-summit-live .o-summit-live-itembox[data-v-ceb9b04d] {
|
|
63
63
|
--link-height: 68px;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
.o-summit-live .o-summit-live-link[data-v-
|
|
66
|
+
.o-summit-live .o-summit-live-link[data-v-ceb9b04d] {
|
|
67
67
|
flex: 1;
|
|
68
68
|
padding: var(--o-r-gap-6) var(--o-r-gap-5);
|
|
69
69
|
cursor: pointer;
|
|
70
70
|
background-color: var(--o-color-fill2);
|
|
71
|
-
background-image: var(--o-summit-live-bg);
|
|
71
|
+
background-image: var(--o-summit-live-bg, var(--o-summit-live-bg-normal));
|
|
72
72
|
background-position: right center;
|
|
73
73
|
background-repeat: no-repeat;
|
|
74
74
|
height: var(--link-height);
|
|
@@ -78,10 +78,10 @@
|
|
|
78
78
|
justify-content: center;
|
|
79
79
|
border-radius: var(--o-radius-xs);
|
|
80
80
|
}
|
|
81
|
-
.o-summit-live .o-summit-live-link [data-o-theme*=dark][data-v-
|
|
82
|
-
background-image: var(--o-summit-live-bg-dark);
|
|
81
|
+
.o-summit-live .o-summit-live-link [data-o-theme*=dark][data-v-ceb9b04d] {
|
|
82
|
+
background-image: var(--o-summit-live-bg-dark, var(--o-summit-live-bg-normal-dark));
|
|
83
83
|
}
|
|
84
|
-
.o-summit-live .o-summit-live-link .o-summit-live-name[data-v-
|
|
84
|
+
.o-summit-live .o-summit-live-link .o-summit-live-name[data-v-ceb9b04d] {
|
|
85
85
|
color: var(--o-color-info1);
|
|
86
86
|
font-size: var(--o-r-font_size-h2);
|
|
87
87
|
line-height: var(--o-r-line_height-h2);
|
|
@@ -92,12 +92,28 @@
|
|
|
92
92
|
-webkit-box-orient: vertical;
|
|
93
93
|
-webkit-line-clamp: 2;
|
|
94
94
|
}
|
|
95
|
-
.o-summit-live .o-summit-live-link[data-v-
|
|
95
|
+
.o-summit-live .o-summit-live-link[data-v-ceb9b04d]:hover {
|
|
96
96
|
box-shadow: var(--o-shadow-2);
|
|
97
97
|
}
|
|
98
|
-
.o-summit-live .o-summit-live-link.is-active
|
|
98
|
+
.o-summit-live .o-summit-live-link.is-active[data-v-ceb9b04d] {
|
|
99
|
+
background-image: var(--o-summit-live-bg-active, var(--o-summit-live-bg-normal-active));
|
|
100
|
+
}
|
|
101
|
+
.o-summit-live .o-summit-live-link.is-active [data-o-theme*=dark][data-v-ceb9b04d] {
|
|
102
|
+
background-image: var(--o-summit-live-bg-active-dark, var(--o-summit-live-bg-normal-active-dark));
|
|
103
|
+
}
|
|
104
|
+
.o-summit-live .o-summit-live-link.is-active .o-summit-live-name[data-v-ceb9b04d] {
|
|
99
105
|
color: #fff;
|
|
100
106
|
}
|
|
101
|
-
.o-summit-live .o-summit-live-link.is-main[data-v-
|
|
107
|
+
.o-summit-live .o-summit-live-link.is-main[data-v-ceb9b04d] {
|
|
102
108
|
grid-column: 1/5;
|
|
109
|
+
background-image: var(--o-summit-live-bg-main, var(--o-summit-live-bg-normal));
|
|
110
|
+
}
|
|
111
|
+
.o-summit-live .o-summit-live-link.is-main [data-o-theme*=dark][data-v-ceb9b04d] {
|
|
112
|
+
background-image: var(--o-summit-live-bg-main-dark);
|
|
113
|
+
}
|
|
114
|
+
.o-summit-live .o-summit-live-link.is-main.is-active[data-v-ceb9b04d] {
|
|
115
|
+
background-image: var(--o-summit-live-bg-main-active);
|
|
116
|
+
}
|
|
117
|
+
.o-summit-live .o-summit-live-link.is-main.is-active [data-o-theme*=dark][data-v-ceb9b04d] {
|
|
118
|
+
background-image: var(--o-summit-live-bg-main-active-dark);
|
|
103
119
|
}
|