@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,61 @@
|
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-2613e65b] {
|
|
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-2613e65b] {
|
|
6
|
+
transform: rotate(-180deg);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
.o-md-table-container[data-v-2613e65b] {
|
|
10
|
+
position: relative;
|
|
11
|
+
width: 100%;
|
|
12
|
+
margin-bottom: var(--o-gap-2, 8px);
|
|
13
|
+
}
|
|
14
|
+
.o-md-table-container .o-md-table-expand-btn[data-v-2613e65b] {
|
|
15
|
+
position: absolute;
|
|
16
|
+
top: 1px;
|
|
17
|
+
right: 1px;
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
padding: 7px 16px;
|
|
22
|
+
z-index: 10;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
color: var(--o-color-info2);
|
|
25
|
+
background-color: var(--o-color-fill2);
|
|
26
|
+
border-top-right-radius: var(--o-radius-xs);
|
|
27
|
+
font-size: 14px;
|
|
28
|
+
line-height: 22px;
|
|
29
|
+
}
|
|
30
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
31
|
+
.o-md-table-container .o-md-table-expand-btn[data-v-2613e65b] {
|
|
32
|
+
font-size: 14px;
|
|
33
|
+
line-height: 18px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
37
|
+
.o-md-table-container .o-md-table-expand-btn[data-v-2613e65b] {
|
|
38
|
+
font-size: 12px;
|
|
39
|
+
line-height: 18px;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
@media (min-width: 601px) and (max-width: 840px) {
|
|
43
|
+
.o-md-table-container .o-md-table-expand-btn[data-v-2613e65b] {
|
|
44
|
+
font-size: 12px;
|
|
45
|
+
line-height: 18px;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
@media (max-width: 600px) {
|
|
49
|
+
.o-md-table-container .o-md-table-expand-btn[data-v-2613e65b] {
|
|
50
|
+
font-size: 12px;
|
|
51
|
+
line-height: 18px;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
@media (hover: hover) {
|
|
55
|
+
.o-md-table-container .o-md-table-expand-btn[data-v-2613e65b]:hover {
|
|
56
|
+
color: var(--o-color-info1);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
.o-md-table-container .o-md-table-expand-btn .o-md-table-expand-icon[data-v-2613e65b] {
|
|
60
|
+
margin-right: 8px;
|
|
61
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
el: HTMLTableElement;
|
|
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, {}, any>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from "./MarkdownTable.vue2.mjs";
|
|
2
|
+
import './MarkdownTable.css';
|
|
3
|
+
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const MarkdownTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2613e65b"]]);
|
|
5
|
+
export {
|
|
6
|
+
MarkdownTable as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { defineComponent, ref, openBlock, createElementBlock, Fragment, createElementVNode, unref, createVNode, withCtx, toDisplayString, createCommentVNode, createBlock } from "vue";
|
|
2
|
+
import { OIcon } from "@opensig/opendesign";
|
|
3
|
+
import { useScreen } from "@opendesign-plus/composables";
|
|
4
|
+
import { useI18n } from "../../../i18n/index.mjs";
|
|
5
|
+
import IconExpand from "../../../_virtual/icon-expand.mjs";
|
|
6
|
+
import MarkdownTableExpand from "./MarkdownTableExpand.vue.mjs";
|
|
7
|
+
import MarkdownTableData from "./MarkdownTableData.vue.mjs";
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "MarkdownTable",
|
|
10
|
+
props: {
|
|
11
|
+
el: {}
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const { t } = useI18n();
|
|
15
|
+
const { lePadV } = useScreen();
|
|
16
|
+
const showExpand = ref(false);
|
|
17
|
+
const zoomVisible = ref(false);
|
|
18
|
+
const onExpand = () => {
|
|
19
|
+
zoomVisible.value = true;
|
|
20
|
+
};
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
var _a, _b;
|
|
23
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
24
|
+
createElementVNode("div", {
|
|
25
|
+
class: "o-md-table-container",
|
|
26
|
+
onMouseenter: _cache[0] || (_cache[0] = ($event) => showExpand.value = true),
|
|
27
|
+
onMouseleave: _cache[1] || (_cache[1] = ($event) => showExpand.value = false)
|
|
28
|
+
}, [
|
|
29
|
+
!unref(lePadV) && showExpand.value ? (openBlock(), createElementBlock("div", {
|
|
30
|
+
key: 0,
|
|
31
|
+
class: "o-md-table-expand-btn",
|
|
32
|
+
onClick: onExpand
|
|
33
|
+
}, [
|
|
34
|
+
createVNode(unref(OIcon), { class: "o-md-table-expand-icon" }, {
|
|
35
|
+
default: withCtx(() => [
|
|
36
|
+
createVNode(unref(IconExpand))
|
|
37
|
+
]),
|
|
38
|
+
_: 1
|
|
39
|
+
}),
|
|
40
|
+
createElementVNode("span", null, toDisplayString(unref(t)("common.expand")), 1)
|
|
41
|
+
])) : createCommentVNode("", true),
|
|
42
|
+
((_a = __props.el) == null ? void 0 : _a.outerHTML) ? (openBlock(), createBlock(MarkdownTableData, {
|
|
43
|
+
key: 1,
|
|
44
|
+
content: __props.el.outerHTML
|
|
45
|
+
}, null, 8, ["content"])) : createCommentVNode("", true)
|
|
46
|
+
], 32),
|
|
47
|
+
((_b = __props.el) == null ? void 0 : _b.outerHTML) ? (openBlock(), createBlock(MarkdownTableExpand, {
|
|
48
|
+
key: 0,
|
|
49
|
+
visible: zoomVisible.value,
|
|
50
|
+
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => zoomVisible.value = $event),
|
|
51
|
+
content: __props.el.outerHTML
|
|
52
|
+
}, null, 8, ["visible", "content"])) : createCommentVNode("", true)
|
|
53
|
+
], 64);
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
export {
|
|
58
|
+
_sfc_main as default
|
|
59
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-2abc86cf] {
|
|
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-2abc86cf] {
|
|
6
|
+
transform: rotate(-180deg);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
.o-table-data--wrap[data-v-2abc86cf] {
|
|
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-table-data--wrap[data-v-2abc86cf] {
|
|
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-table-data--wrap[data-v-2abc86cf] {
|
|
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-table-data--wrap[data-v-2abc86cf] {
|
|
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-table-data--wrap[data-v-2abc86cf] {
|
|
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-table-data--wrap[data-v-2abc86cf] .o-data-table {
|
|
78
|
+
--table-edge-padding: var(--o-gap-4);
|
|
79
|
+
--table-cell-padding: var(--o-gap-2) var(--o-gap-4);
|
|
80
|
+
--table-head-cell-padding: var(--o-gap-2) var(--o-gap-4);
|
|
81
|
+
--table-head-bg: var(--o-color-fill2);
|
|
82
|
+
width: 100%;
|
|
83
|
+
}
|
|
84
|
+
.o-table-data--wrap[data-v-2abc86cf] .o-data-table .o-data-table-header-divider-h {
|
|
85
|
+
border-image: linear-gradient(to right, #2e53fa, #7b25f4) 1;
|
|
86
|
+
}
|
|
87
|
+
.o-table-data--wrap[data-v-2abc86cf] .md-cell {
|
|
88
|
+
background: var(--o-color-fill2) !important;
|
|
89
|
+
}
|
|
90
|
+
.o-table-data-original[data-v-2abc86cf] {
|
|
91
|
+
width: 100%;
|
|
92
|
+
margin-bottom: var(--o-gap-2);
|
|
93
|
+
max-height: var(--o-md-table-max-height);
|
|
94
|
+
overflow: auto;
|
|
95
|
+
border: 1px solid var(--o-color-control4);
|
|
96
|
+
border-radius: var(--o-md-table-radius, var(--o-radius-xs));
|
|
97
|
+
}
|
|
98
|
+
.o-table-data-original .markdown-body[data-v-2abc86cf] table {
|
|
99
|
+
margin-bottom: 0;
|
|
100
|
+
/* 由 markTableEdges 标记的最右列 / 最底行单元格:把外侧边框交给滚动容器绘制,避免叠加成 2px */
|
|
101
|
+
}
|
|
102
|
+
.o-table-data-original .markdown-body[data-v-2abc86cf] table .md-cell-edge-right {
|
|
103
|
+
border-right: none;
|
|
104
|
+
}
|
|
105
|
+
.o-table-data-original .markdown-body[data-v-2abc86cf] table .md-cell-edge-bottom {
|
|
106
|
+
border-bottom: none;
|
|
107
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
content: string;
|
|
3
|
+
original?: boolean;
|
|
4
|
+
maxHeight?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
maxHeight: string;
|
|
8
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
9
|
+
rawTableRef: HTMLDivElement;
|
|
10
|
+
}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from "./MarkdownTableData.vue2.mjs";
|
|
2
|
+
import './MarkdownTableData.css';
|
|
3
|
+
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const MarkdownTableData = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2abc86cf"]]);
|
|
5
|
+
export {
|
|
6
|
+
MarkdownTableData as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { defineComponent, computed, ref, onMounted, watch, openBlock, createElementBlock, createVNode, unref, createBlock, normalizeStyle, withCtx, createElementVNode, withDirectives, h } from "vue";
|
|
2
|
+
import { ODataTable, OScroller } from "@opensig/opendesign";
|
|
3
|
+
import { buildVueDompurifyHTMLDirective } from "vue-dompurify-html";
|
|
4
|
+
const _hoisted_1 = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "o-table-data--wrap"
|
|
7
|
+
};
|
|
8
|
+
const _hoisted_2 = { class: "markdown-body" };
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "MarkdownTableData",
|
|
11
|
+
props: {
|
|
12
|
+
content: {},
|
|
13
|
+
original: { type: Boolean },
|
|
14
|
+
maxHeight: { default: "calc(100vh - 210px)" }
|
|
15
|
+
},
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const vDompurifyHtml = buildVueDompurifyHTMLDirective();
|
|
18
|
+
const props = __props;
|
|
19
|
+
const renderHtmlCell = (html) => withDirectives(h("div", { class: "md-cell markdown-body" }), [[vDompurifyHtml, html]]);
|
|
20
|
+
const isRegular = computed(() => {
|
|
21
|
+
if (props.original) {
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
24
|
+
const html = (props.content || "").trim();
|
|
25
|
+
if (!html) {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
if (typeof DOMParser === "undefined") {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
const doc = new DOMParser().parseFromString(html, "text/html");
|
|
32
|
+
const table = doc.querySelector("table");
|
|
33
|
+
if (!table) {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
if (table.querySelector("[colspan],[rowspan]")) {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
const thead = table.querySelector("thead");
|
|
40
|
+
const headerRow = thead == null ? void 0 : thead.querySelector("tr");
|
|
41
|
+
const headerCells = headerRow ? Array.from(headerRow.children) : [];
|
|
42
|
+
if (headerCells.length === 0) {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
const tbody = table.querySelector("tbody") ?? table;
|
|
46
|
+
const bodyRows = Array.from(tbody.querySelectorAll("tr")).filter((tr) => !tr.closest("thead"));
|
|
47
|
+
return bodyRows.length > 0;
|
|
48
|
+
});
|
|
49
|
+
const tableColumns = computed(() => {
|
|
50
|
+
if (!isRegular.value) {
|
|
51
|
+
return [];
|
|
52
|
+
}
|
|
53
|
+
const doc = new DOMParser().parseFromString(props.content, "text/html");
|
|
54
|
+
const headerRow = doc.querySelector("thead tr");
|
|
55
|
+
const headerCells = headerRow ? Array.from(headerRow.children) : [];
|
|
56
|
+
return headerCells.map((cell, i) => ({
|
|
57
|
+
key: `col_${i}`,
|
|
58
|
+
label: (cell.textContent || "").trim(),
|
|
59
|
+
minWidth: 120,
|
|
60
|
+
formatter: ({ cellValue }) => renderHtmlCell(String(cellValue ?? ""))
|
|
61
|
+
}));
|
|
62
|
+
});
|
|
63
|
+
const tableData = computed(() => {
|
|
64
|
+
if (!isRegular.value) {
|
|
65
|
+
return [];
|
|
66
|
+
}
|
|
67
|
+
const doc = new DOMParser().parseFromString(props.content, "text/html");
|
|
68
|
+
const tbody = doc.querySelector("tbody") ?? doc.querySelector("table");
|
|
69
|
+
const bodyRows = Array.from(tbody.querySelectorAll("tr")).filter((tr) => !tr.closest("thead"));
|
|
70
|
+
return bodyRows.map((tr, rowIndex) => {
|
|
71
|
+
const cells = Array.from(tr.querySelectorAll("td,th"));
|
|
72
|
+
const row = { id: rowIndex };
|
|
73
|
+
cells.forEach((cell, i) => {
|
|
74
|
+
row[`col_${i}`] = cell.innerHTML;
|
|
75
|
+
});
|
|
76
|
+
return row;
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
const rawTableRef = ref();
|
|
80
|
+
const markTableEdges = () => {
|
|
81
|
+
const root = rawTableRef.value;
|
|
82
|
+
if (!root) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
root.querySelectorAll("table").forEach((table) => {
|
|
86
|
+
const rows = Array.from(table.rows);
|
|
87
|
+
if (rows.length === 0) {
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
const occupied = [];
|
|
91
|
+
const meta = /* @__PURE__ */ new WeakMap();
|
|
92
|
+
let totalCols = 0;
|
|
93
|
+
rows.forEach((row, r) => {
|
|
94
|
+
if (!occupied[r]) {
|
|
95
|
+
occupied[r] = [];
|
|
96
|
+
}
|
|
97
|
+
let c = 0;
|
|
98
|
+
Array.from(row.cells).forEach((cell) => {
|
|
99
|
+
while (occupied[r][c]) {
|
|
100
|
+
c++;
|
|
101
|
+
}
|
|
102
|
+
const rspan = cell.rowSpan || 1;
|
|
103
|
+
const span = cell.colSpan || 1;
|
|
104
|
+
for (let rr = r; rr < r + rspan; rr++) {
|
|
105
|
+
if (!occupied[rr]) {
|
|
106
|
+
occupied[rr] = [];
|
|
107
|
+
}
|
|
108
|
+
for (let cc = c; cc < c + span; cc++) {
|
|
109
|
+
occupied[rr][cc] = true;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
meta.set(cell, { col: c, span, row: r, rspan });
|
|
113
|
+
if (c + span > totalCols) {
|
|
114
|
+
totalCols = c + span;
|
|
115
|
+
}
|
|
116
|
+
c += span;
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
const totalRows = rows.length;
|
|
120
|
+
rows.forEach((row) => {
|
|
121
|
+
Array.from(row.cells).forEach((cell) => {
|
|
122
|
+
const info = meta.get(cell);
|
|
123
|
+
if (!info) {
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
cell.classList.remove("md-cell-edge-right", "md-cell-edge-bottom");
|
|
127
|
+
if (info.col + info.span === totalCols) {
|
|
128
|
+
cell.classList.add("md-cell-edge-right");
|
|
129
|
+
}
|
|
130
|
+
if (info.row + info.rspan === totalRows) {
|
|
131
|
+
cell.classList.add("md-cell-edge-bottom");
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
};
|
|
137
|
+
onMounted(markTableEdges);
|
|
138
|
+
watch(() => props.content, markTableEdges, { flush: "post" });
|
|
139
|
+
return (_ctx, _cache) => {
|
|
140
|
+
return isRegular.value && tableColumns.value.length && tableData.value.length ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
141
|
+
createVNode(unref(ODataTable), {
|
|
142
|
+
data: tableData.value,
|
|
143
|
+
columns: tableColumns.value,
|
|
144
|
+
"row-key": "id",
|
|
145
|
+
border: "all",
|
|
146
|
+
"header-style": "split-line",
|
|
147
|
+
size: "small",
|
|
148
|
+
"column-resizable": "",
|
|
149
|
+
"max-height": __props.maxHeight
|
|
150
|
+
}, null, 8, ["data", "columns", "max-height"])
|
|
151
|
+
])) : (openBlock(), createBlock(unref(OScroller), {
|
|
152
|
+
key: 1,
|
|
153
|
+
class: "o-table-data-original",
|
|
154
|
+
size: "small",
|
|
155
|
+
"show-type": "always",
|
|
156
|
+
style: normalizeStyle({ "--o-md-table-max-height": __props.maxHeight })
|
|
157
|
+
}, {
|
|
158
|
+
default: withCtx(() => [
|
|
159
|
+
createElementVNode("div", _hoisted_2, [
|
|
160
|
+
withDirectives(createElementVNode("div", {
|
|
161
|
+
ref_key: "rawTableRef",
|
|
162
|
+
ref: rawTableRef,
|
|
163
|
+
class: "__mounted"
|
|
164
|
+
}, null, 512), [
|
|
165
|
+
[unref(vDompurifyHtml), props.content]
|
|
166
|
+
])
|
|
167
|
+
])
|
|
168
|
+
]),
|
|
169
|
+
_: 1
|
|
170
|
+
}, 8, ["style"]));
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
export {
|
|
175
|
+
_sfc_main as default
|
|
176
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-e61df98a] {
|
|
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-e61df98a] {
|
|
6
|
+
transform: rotate(-180deg);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
.o-table-expand-scaler[data-v-e61df98a] {
|
|
10
|
+
position: relative;
|
|
11
|
+
width: 80vw;
|
|
12
|
+
height: auto;
|
|
13
|
+
max-height: 90vh;
|
|
14
|
+
overflow: auto;
|
|
15
|
+
background-color: var(--o-color-fill2);
|
|
16
|
+
border-radius: var(--o-radius-xs);
|
|
17
|
+
font-size: 14px;
|
|
18
|
+
line-height: 22px;
|
|
19
|
+
}
|
|
20
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
21
|
+
.o-table-expand-scaler[data-v-e61df98a] {
|
|
22
|
+
font-size: 14px;
|
|
23
|
+
line-height: 18px;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
27
|
+
.o-table-expand-scaler[data-v-e61df98a] {
|
|
28
|
+
font-size: 12px;
|
|
29
|
+
line-height: 18px;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
@media (min-width: 601px) and (max-width: 840px) {
|
|
33
|
+
.o-table-expand-scaler[data-v-e61df98a] {
|
|
34
|
+
font-size: 12px;
|
|
35
|
+
line-height: 18px;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
@media (max-width: 600px) {
|
|
39
|
+
.o-table-expand-scaler[data-v-e61df98a] {
|
|
40
|
+
font-size: 12px;
|
|
41
|
+
line-height: 18px;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
.o-table-expand-close-btn[data-v-e61df98a] {
|
|
45
|
+
position: sticky;
|
|
46
|
+
top: 12px;
|
|
47
|
+
right: 12px;
|
|
48
|
+
float: right;
|
|
49
|
+
z-index: 2;
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
color: var(--o-color-info2);
|
|
55
|
+
}
|
|
56
|
+
@media (hover: hover) {
|
|
57
|
+
.o-table-expand-close-btn[data-v-e61df98a]:hover {
|
|
58
|
+
color: var(--o-color-info1);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
.o-table-expand-close-btn .o-table-expand-close-icon[data-v-e61df98a] {
|
|
62
|
+
margin-right: 8px;
|
|
63
|
+
}
|
|
64
|
+
.o-table-expand-content[data-v-e61df98a] {
|
|
65
|
+
padding: 48px 32px;
|
|
66
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
content: string;
|
|
3
|
+
};
|
|
4
|
+
type __VLS_PublicProps = {
|
|
5
|
+
'visible'?: boolean;
|
|
6
|
+
} & __VLS_Props;
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
"update:visible": (value: boolean) => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from "./MarkdownTableExpand.vue2.mjs";
|
|
2
|
+
import './MarkdownTableExpand.css';
|
|
3
|
+
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const MarkdownTableExpand = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e61df98a"]]);
|
|
5
|
+
export {
|
|
6
|
+
MarkdownTableExpand as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { defineComponent, useModel, ref, watch, onBeforeUnmount, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, toDisplayString, mergeModels } from "vue";
|
|
2
|
+
import { OLayer, OIcon } from "@opensig/opendesign";
|
|
3
|
+
import { useI18n } from "../../../i18n/index.mjs";
|
|
4
|
+
import IconUnexpand from "../../../_virtual/icon-unexpand.mjs";
|
|
5
|
+
import MarkdownTableData from "./MarkdownTableData.vue.mjs";
|
|
6
|
+
const _hoisted_1 = { class: "o-table-expand-scaler" };
|
|
7
|
+
const _hoisted_2 = { class: "o-table-expand-content" };
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "MarkdownTableExpand",
|
|
10
|
+
props: /* @__PURE__ */ mergeModels({
|
|
11
|
+
content: {}
|
|
12
|
+
}, {
|
|
13
|
+
"visible": { type: Boolean, ...{ default: false } },
|
|
14
|
+
"visibleModifiers": {}
|
|
15
|
+
}),
|
|
16
|
+
emits: ["update:visible"],
|
|
17
|
+
setup(__props) {
|
|
18
|
+
const { t } = useI18n();
|
|
19
|
+
const visible = useModel(__props, "visible");
|
|
20
|
+
const onClose = () => {
|
|
21
|
+
visible.value = false;
|
|
22
|
+
};
|
|
23
|
+
const tableReady = ref(false);
|
|
24
|
+
let readyTimer;
|
|
25
|
+
watch(
|
|
26
|
+
() => visible.value,
|
|
27
|
+
(val) => {
|
|
28
|
+
if (typeof window === "undefined") {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
if (readyTimer) {
|
|
32
|
+
clearTimeout(readyTimer);
|
|
33
|
+
}
|
|
34
|
+
clearTimeout(readyTimer);
|
|
35
|
+
readyTimer = setTimeout(() => {
|
|
36
|
+
tableReady.value = val;
|
|
37
|
+
}, 300);
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
immediate: true
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
onBeforeUnmount(() => {
|
|
44
|
+
if (readyTimer) {
|
|
45
|
+
clearTimeout(readyTimer);
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
return (_ctx, _cache) => {
|
|
49
|
+
return openBlock(), createBlock(unref(OLayer), {
|
|
50
|
+
visible: visible.value,
|
|
51
|
+
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => visible.value = $event)
|
|
52
|
+
}, {
|
|
53
|
+
default: withCtx(() => [
|
|
54
|
+
createElementVNode("div", _hoisted_1, [
|
|
55
|
+
createElementVNode("div", {
|
|
56
|
+
class: "o-table-expand-close-btn",
|
|
57
|
+
onClick: onClose
|
|
58
|
+
}, [
|
|
59
|
+
createVNode(unref(OIcon), { class: "o-table-expand-close-icon" }, {
|
|
60
|
+
default: withCtx(() => [
|
|
61
|
+
createVNode(unref(IconUnexpand))
|
|
62
|
+
]),
|
|
63
|
+
_: 1
|
|
64
|
+
}),
|
|
65
|
+
createElementVNode("span", null, toDisplayString(unref(t)("common.collapse")), 1)
|
|
66
|
+
]),
|
|
67
|
+
createElementVNode("div", _hoisted_2, [
|
|
68
|
+
createVNode(MarkdownTableData, {
|
|
69
|
+
original: !tableReady.value,
|
|
70
|
+
content: __props.content,
|
|
71
|
+
"max-height": "min(calc(100vh - 210px), 80vh)"
|
|
72
|
+
}, null, 8, ["original", "content"])
|
|
73
|
+
])
|
|
74
|
+
])
|
|
75
|
+
]),
|
|
76
|
+
_: 1
|
|
77
|
+
}, 8, ["visible"]);
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
export {
|
|
82
|
+
_sfc_main as default
|
|
83
|
+
};
|