@opendesign-plus-test/components 0.0.1-rc.298 → 0.0.1-rc.299
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/article/types.d.ts +1 -0
- package/dist/components/community-updates/OCommunityUpdates.vue.d.ts +357 -2
- package/dist/components/community-updates/index.d.ts +178 -1
- package/dist/components/footer/OFooter.vue.d.ts +5 -1
- package/dist/components/footer/components/FooterList.vue.d.ts +5 -1
- package/dist/components/footer/components/FooterSimple.vue.d.ts +5 -1
- package/dist/components/footer/index.d.ts +13 -3
- package/dist/components/footer/types.d.ts +3 -1
- package/dist/components/html-viewer/utils.d.ts +1 -1
- package/dist/components.cjs.js +4 -4
- package/dist/components.css +1 -1
- package/dist/components.es.js +1535 -1478
- package/dist/treeshaking/assets/styles/element-plus.css +1 -0
- package/dist/treeshaking/components/activity/OActivityForm.vue_vue_type_style_index_0_lang.css +1 -0
- package/dist/treeshaking/components/activity/OActivityForm.vue_vue_type_style_index_1_lang.css +1 -0
- package/dist/treeshaking/components/activity/OActivityMyCalendar.vue_vue_type_style_index_0_lang.css +1 -0
- package/dist/treeshaking/components/activity/OActivityMyCalendar.vue_vue_type_style_index_1_lang.css +1 -0
- package/dist/treeshaking/components/article/OArticleList.vue_vue_type_script_setup_true_lang.mjs +12 -4
- package/dist/treeshaking/components/article/OArticleList.vue_vue_type_style_index_0_lang.css +7 -7
- package/dist/treeshaking/components/article/components/DocTitle.mjs +2 -2
- package/dist/treeshaking/components/article/components/DocTitle.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/treeshaking/components/article/components/{DocTitle.vue_vue_type_style_index_0_scoped_c5f974b8_lang.css → DocTitle.vue_vue_type_style_index_0_scoped_8fd87069_lang.css} +63 -67
- package/dist/treeshaking/components/article/types.d.ts +1 -0
- package/dist/treeshaking/components/community-updates/OCommunityUpdates.mjs +2 -2
- package/dist/treeshaking/components/community-updates/OCommunityUpdates.vue.d.ts +357 -2
- package/dist/treeshaking/components/community-updates/OCommunityUpdates.vue_vue_type_script_setup_true_lang.mjs +8 -1
- package/dist/treeshaking/components/community-updates/{OCommunityUpdates.vue_vue_type_style_index_0_scoped_6d2b45e7_lang.css → OCommunityUpdates.vue_vue_type_style_index_0_scoped_cdd7bf86_lang.css} +28 -28
- package/dist/treeshaking/components/community-updates/index.d.ts +178 -1
- package/dist/treeshaking/components/doc-layout/ODocLayout.mjs +2 -2
- package/dist/treeshaking/components/doc-layout/{ODocLayout.vue_vue_type_style_index_0_scoped_2b610e04_lang.css → ODocLayout.vue_vue_type_style_index_0_scoped_ea6414db_lang.css} +54 -54
- package/dist/treeshaking/components/element-plus/OElCookieNotice.vue_vue_type_style_index_0_lang.css +1 -0
- package/dist/treeshaking/components/element-plus/OElCookieNotice.vue_vue_type_style_index_1_scoped_5fa9f6f1_lang.css +1 -0
- package/dist/treeshaking/components/footer/OFooter.mjs +2 -2
- package/dist/treeshaking/components/footer/OFooter.vue.d.ts +5 -1
- package/dist/treeshaking/components/footer/OFooter.vue_vue_type_script_setup_true_lang.mjs +9 -3
- package/dist/treeshaking/components/footer/{OFooter.vue_vue_type_style_index_0_scoped_41010b1f_lang.css → OFooter.vue_vue_type_style_index_0_scoped_f0f4e884_lang.css} +13 -13
- package/dist/treeshaking/components/footer/components/FooterList.mjs +2 -2
- package/dist/treeshaking/components/footer/components/FooterList.vue.d.ts +5 -1
- package/dist/treeshaking/components/footer/components/FooterList.vue_vue_type_script_setup_true_lang.mjs +45 -25
- package/dist/treeshaking/components/footer/components/{FooterList.vue_vue_type_style_index_0_scoped_0ed4bc5f_lang.css → FooterList.vue_vue_type_style_index_0_scoped_6946816d_lang.css} +110 -106
- package/dist/treeshaking/components/footer/components/FooterSimple.mjs +2 -2
- package/dist/treeshaking/components/footer/components/FooterSimple.vue.d.ts +5 -1
- package/dist/treeshaking/components/footer/components/FooterSimple.vue_vue_type_script_setup_true_lang.mjs +28 -8
- package/dist/treeshaking/components/footer/components/{FooterSimple.vue_vue_type_style_index_0_scoped_42242446_lang.css → FooterSimple.vue_vue_type_style_index_0_scoped_1dd6e901_lang.css} +29 -25
- package/dist/treeshaking/components/footer/index.d.ts +13 -3
- package/dist/treeshaking/components/footer/types.d.ts +3 -1
- package/dist/treeshaking/components/html-viewer/OHtmlViewer.mjs +3 -2
- package/dist/treeshaking/components/html-viewer/OHtmlViewer.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/dist/treeshaking/components/html-viewer/OHtmlViewer.vue_vue_type_style_index_0_scoped_36fc9311_lang.css +318 -0
- package/dist/treeshaking/components/html-viewer/OHtmlViewer.vue_vue_type_style_index_1_lang.css +20 -0
- package/dist/treeshaking/components/html-viewer/utils.d.ts +1 -1
- package/dist/treeshaking/components/html-viewer/utils.mjs +22 -3
- package/dist/treeshaking/components/meeting/OMeetingCalendar.vue_vue_type_style_index_0_lang.css +1 -0
- package/dist/treeshaking/components/meeting/OMeetingForm.vue_vue_type_style_index_0_lang.css +1 -0
- package/dist/treeshaking/components/meeting/OMeetingForm.vue_vue_type_style_index_1_lang.css +1 -0
- package/dist/treeshaking/components/meeting/OMeetingMyCalendar.vue_vue_type_style_index_0_lang.css +1 -0
- package/dist/treeshaking/components/meeting/OMeetingMyCalendar.vue_vue_type_style_index_1_lang.css +1 -0
- package/dist/treeshaking/components/meeting/components/OMeetingCalendarSelector.vue_vue_type_style_index_0_lang.css +1 -0
- package/dist/treeshaking/components/meeting/components/OMeetingCalendarSelector.vue_vue_type_style_index_1_lang.css +1 -0
- package/dist/treeshaking/components/meeting/components/OMeetingPlaybackSubtitles.vue_vue_type_style_index_0_lang.css +1 -0
- package/dist/treeshaking/components/meeting/components/OMeetingPlaybackSubtitles.vue_vue_type_style_index_1_lang.css +1 -0
- package/dist/treeshaking/components/sig/OSigList.vue_vue_type_style_index_0_lang.css +1 -0
- package/dist/treeshaking/components/user-center/internal/OUploadAvatar.vue_vue_type_style_index_0_scoped_7067a565_lang.css +1 -0
- package/dist/treeshaking/components/user-center/internal/OUploadAvatar.vue_vue_type_style_index_1_lang.css +1 -0
- package/package.json +1 -1
- package/dist/treeshaking/components/html-viewer/OHtmlViewer.vue_vue_type_style_index_0_scoped_2f5d08df_lang.css +0 -196
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref } from "vue";
|
|
1
|
+
import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref, withKeys, withModifiers } from "vue";
|
|
2
2
|
import { ODivider } from "@opensig/opendesign";
|
|
3
3
|
import { useScreen } from "@opendesign-plus/composables";
|
|
4
4
|
// src/components/footer/components/FooterSimple.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -7,8 +7,13 @@ var _hoisted_2 = { class: "copyright-text" };
|
|
|
7
7
|
var _hoisted_3 = ["href"];
|
|
8
8
|
var _hoisted_4 = { class: "filing" };
|
|
9
9
|
var _hoisted_5 = ["src"];
|
|
10
|
-
var _hoisted_6 =
|
|
11
|
-
var _hoisted_7 =
|
|
10
|
+
var _hoisted_6 = ["href", "target"];
|
|
11
|
+
var _hoisted_7 = {
|
|
12
|
+
key: 1,
|
|
13
|
+
class: "beian-info"
|
|
14
|
+
};
|
|
15
|
+
var _hoisted_8 = ["onClick", "onKeydown"];
|
|
16
|
+
var _hoisted_9 = ["href", "target"];
|
|
12
17
|
var FooterSimple_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
13
18
|
__name: "FooterSimple",
|
|
14
19
|
props: {
|
|
@@ -21,7 +26,9 @@ var FooterSimple_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
21
26
|
qrcode: {},
|
|
22
27
|
footerBgImg: {}
|
|
23
28
|
},
|
|
24
|
-
|
|
29
|
+
emits: ["action"],
|
|
30
|
+
setup(__props, { emit: __emit }) {
|
|
31
|
+
const emit = __emit;
|
|
25
32
|
const { isPhone } = useScreen();
|
|
26
33
|
const footerContentRef = ref();
|
|
27
34
|
const footerLeftRef = ref();
|
|
@@ -80,18 +87,31 @@ var FooterSimple_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
80
87
|
src: __props.footerOption.policeIcon,
|
|
81
88
|
class: "filing-img",
|
|
82
89
|
alt: ""
|
|
83
|
-
}, null, 8, _hoisted_5),
|
|
90
|
+
}, null, 8, _hoisted_5), __props.footerOption.beianLink2 ? (openBlock(), createElementBlock("a", {
|
|
91
|
+
key: 0,
|
|
92
|
+
href: __props.footerOption.beianLink2,
|
|
93
|
+
target: linkTarget(__props.footerOption.beianLink2),
|
|
94
|
+
class: "beian-info"
|
|
95
|
+
}, toDisplayString(__props.footerOption.beianInfo2), 9, _hoisted_6)) : (openBlock(), createElementBlock("p", _hoisted_7, toDisplayString(__props.footerOption.beianInfo2), 1))])
|
|
84
96
|
], 512)) : createCommentVNode("", true)], true) : createCommentVNode("", true), _ctx.$slots.right || __props.footerOption ? renderSlot(_ctx.$slots, "right", { key: 1 }, () => [__props.footerOption ? (openBlock(), createElementBlock("div", {
|
|
85
97
|
key: 0,
|
|
86
98
|
ref_key: "footerRightRef",
|
|
87
99
|
ref: footerRightRef,
|
|
88
100
|
class: "footer-right"
|
|
89
101
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.footerOption.children, (link, index) => {
|
|
90
|
-
return openBlock(), createElementBlock(Fragment, { key: link.href }, [
|
|
102
|
+
return openBlock(), createElementBlock(Fragment, { key: link.href ?? link.action ?? link.title }, [link.action ? (openBlock(), createElementBlock("a", {
|
|
103
|
+
key: 0,
|
|
104
|
+
role: "button",
|
|
105
|
+
class: "action-link",
|
|
106
|
+
tabindex: "0",
|
|
107
|
+
onClick: ($event) => emit("action", link.action),
|
|
108
|
+
onKeydown: withKeys(withModifiers(($event) => emit("action", link.action), ["prevent"]), ["enter"])
|
|
109
|
+
}, toDisplayString(link.title), 41, _hoisted_8)) : (openBlock(), createElementBlock("a", {
|
|
110
|
+
key: 1,
|
|
91
111
|
href: link.href,
|
|
92
112
|
target: linkTarget(link.href, link?.target)
|
|
93
|
-
}, toDisplayString(link.title), 9,
|
|
94
|
-
key:
|
|
113
|
+
}, toDisplayString(link.title), 9, _hoisted_9)), index !== __props.footerOption.children.length - 1 ? (openBlock(), createBlock(unref(ODivider), {
|
|
114
|
+
key: 2,
|
|
95
115
|
direction: "v"
|
|
96
116
|
})) : createCommentVNode("", true)], 64);
|
|
97
117
|
}), 128))], 512)) : createCommentVNode("", true)], true) : createCommentVNode("", true)], 2);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
.hover-icon-rotate .o-icon[data-v-
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-1dd6e901] {
|
|
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-1dd6e901] {
|
|
6
6
|
transform: rotate(-180deg);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
a[data-v-
|
|
9
|
+
a[data-v-1dd6e901] {
|
|
10
10
|
color: var(--o-color-info2);
|
|
11
11
|
text-decoration: none;
|
|
12
12
|
white-space: nowrap;
|
|
@@ -14,43 +14,47 @@ a[data-v-42242446] {
|
|
|
14
14
|
line-height: 22px;
|
|
15
15
|
}
|
|
16
16
|
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
17
|
-
a[data-v-
|
|
17
|
+
a[data-v-1dd6e901] {
|
|
18
18
|
font-size: 14px;
|
|
19
19
|
line-height: 18px;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
@media (min-width: 841px) and (max-width: 1200px) {
|
|
23
|
-
a[data-v-
|
|
23
|
+
a[data-v-1dd6e901] {
|
|
24
24
|
font-size: 12px;
|
|
25
25
|
line-height: 18px;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
@media (min-width: 601px) and (max-width: 840px) {
|
|
29
|
-
a[data-v-
|
|
29
|
+
a[data-v-1dd6e901] {
|
|
30
30
|
font-size: 12px;
|
|
31
31
|
line-height: 18px;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
@media (max-width: 600px) {
|
|
35
|
-
a[data-v-
|
|
35
|
+
a[data-v-1dd6e901] {
|
|
36
36
|
font-size: 12px;
|
|
37
37
|
line-height: 18px;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
@media (hover: hover) {
|
|
41
|
-
a[data-v-
|
|
41
|
+
a[data-v-1dd6e901]:hover {
|
|
42
42
|
color: var(--o-color-info1);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
a[data-v-
|
|
45
|
+
a[data-v-1dd6e901]:active {
|
|
46
46
|
color: var(--o-color-info1);
|
|
47
47
|
}
|
|
48
|
-
.
|
|
48
|
+
.action-link[data-v-1dd6e901] {
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
outline-offset: 2px;
|
|
51
|
+
}
|
|
52
|
+
.footer-content[data-v-1dd6e901] {
|
|
49
53
|
display: flex;
|
|
50
54
|
align-items: center;
|
|
51
55
|
justify-content: space-between;
|
|
52
56
|
}
|
|
53
|
-
.footer-left[data-v-
|
|
57
|
+
.footer-left[data-v-1dd6e901] {
|
|
54
58
|
display: flex;
|
|
55
59
|
align-items: center;
|
|
56
60
|
flex-wrap: nowrap; /* 内部不换行:放不下时整块切堆叠 */
|
|
@@ -60,65 +64,65 @@ a[data-v-42242446]:active {
|
|
|
60
64
|
line-height: 22px;
|
|
61
65
|
}
|
|
62
66
|
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
63
|
-
.footer-left[data-v-
|
|
67
|
+
.footer-left[data-v-1dd6e901] {
|
|
64
68
|
font-size: 14px;
|
|
65
69
|
line-height: 18px;
|
|
66
70
|
}
|
|
67
71
|
}
|
|
68
72
|
@media (min-width: 841px) and (max-width: 1200px) {
|
|
69
|
-
.footer-left[data-v-
|
|
73
|
+
.footer-left[data-v-1dd6e901] {
|
|
70
74
|
font-size: 12px;
|
|
71
75
|
line-height: 18px;
|
|
72
76
|
}
|
|
73
77
|
}
|
|
74
78
|
@media (min-width: 601px) and (max-width: 840px) {
|
|
75
|
-
.footer-left[data-v-
|
|
79
|
+
.footer-left[data-v-1dd6e901] {
|
|
76
80
|
font-size: 12px;
|
|
77
81
|
line-height: 18px;
|
|
78
82
|
}
|
|
79
83
|
}
|
|
80
84
|
@media (max-width: 600px) {
|
|
81
|
-
.footer-left[data-v-
|
|
85
|
+
.footer-left[data-v-1dd6e901] {
|
|
82
86
|
font-size: 12px;
|
|
83
87
|
line-height: 18px;
|
|
84
88
|
}
|
|
85
89
|
}
|
|
86
|
-
.footer-left .copyright-left[data-v-
|
|
90
|
+
.footer-left .copyright-left[data-v-1dd6e901] {
|
|
87
91
|
white-space: nowrap; /* 长版权文本不折行,保证溢出可被检测 */
|
|
88
92
|
}
|
|
89
|
-
.footer-left .copyright-left[data-v-
|
|
90
|
-
.footer-left .filing[data-v-
|
|
93
|
+
.footer-left .copyright-left[data-v-1dd6e901],
|
|
94
|
+
.footer-left .filing[data-v-1dd6e901] {
|
|
91
95
|
display: flex;
|
|
92
96
|
flex-wrap: nowrap;
|
|
93
97
|
justify-content: center;
|
|
94
98
|
}
|
|
95
|
-
.footer-left .filing-img[data-v-
|
|
99
|
+
.footer-left .filing-img[data-v-1dd6e901] {
|
|
96
100
|
height: 18px;
|
|
97
101
|
}
|
|
98
|
-
.footer-left .beian-info[data-v-
|
|
102
|
+
.footer-left .beian-info[data-v-1dd6e901] {
|
|
99
103
|
margin-left: 4px;
|
|
100
104
|
color: var(--o-color-info3);
|
|
101
105
|
}
|
|
102
|
-
.footer-right[data-v-
|
|
106
|
+
.footer-right[data-v-1dd6e901] {
|
|
103
107
|
display: flex;
|
|
104
108
|
align-items: center;
|
|
105
109
|
justify-content: center;
|
|
106
110
|
flex-shrink: 0; /* 不压缩,scrollWidth 即自然行宽 */
|
|
107
111
|
}
|
|
108
|
-
.footer-right .o-divider[data-v-
|
|
112
|
+
.footer-right .o-divider[data-v-1dd6e901] {
|
|
109
113
|
height: 12px;
|
|
110
114
|
--o-divider-label-gap: 0 8px;
|
|
111
115
|
--o-divider-bd-color: var(--o-color-control1);
|
|
112
116
|
}
|
|
113
|
-
.footer-content.is-stacked[data-v-
|
|
117
|
+
.footer-content.is-stacked[data-v-1dd6e901] {
|
|
114
118
|
flex-direction: column-reverse;
|
|
115
119
|
justify-content: center;
|
|
116
120
|
row-gap: 8px;
|
|
117
121
|
}
|
|
118
|
-
.footer-content.is-stacked .footer-left[data-v-
|
|
122
|
+
.footer-content.is-stacked .footer-left[data-v-1dd6e901] {
|
|
119
123
|
flex-direction: column;
|
|
120
124
|
align-items: center;
|
|
121
125
|
}
|
|
122
|
-
.footer-content.is-stacked .footer-left .filing[data-v-
|
|
126
|
+
.footer-content.is-stacked .footer-left .filing[data-v-1dd6e901] {
|
|
123
127
|
margin-top: 8px;
|
|
124
128
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
declare const OFooter: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../index').FooterT> & Readonly<{
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../index').FooterT> & Readonly<{
|
|
4
|
+
onAction?: ((action: string) => any) | undefined;
|
|
5
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
action: (action: string) => any;
|
|
7
|
+
}, import('vue').PublicProps, {
|
|
4
8
|
simple: boolean;
|
|
5
9
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
6
10
|
P: {};
|
|
@@ -9,13 +13,19 @@ declare const OFooter: {
|
|
|
9
13
|
C: {};
|
|
10
14
|
M: {};
|
|
11
15
|
Defaults: {};
|
|
12
|
-
}, Readonly<import('../../index').FooterT> & Readonly<{
|
|
16
|
+
}, Readonly<import('../../index').FooterT> & Readonly<{
|
|
17
|
+
onAction?: ((action: string) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, {
|
|
13
19
|
simple: boolean;
|
|
14
20
|
}>;
|
|
15
21
|
__isFragment?: never;
|
|
16
22
|
__isTeleport?: never;
|
|
17
23
|
__isSuspense?: never;
|
|
18
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('../../index').FooterT> & Readonly<{
|
|
24
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('../../index').FooterT> & Readonly<{
|
|
25
|
+
onAction?: ((action: string) => any) | undefined;
|
|
26
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
27
|
+
action: (action: string) => any;
|
|
28
|
+
}, string, {
|
|
19
29
|
simple: boolean;
|
|
20
30
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
21
31
|
$slots: {
|
|
@@ -6,8 +6,9 @@ export interface InfoT {
|
|
|
6
6
|
}
|
|
7
7
|
export interface ChildrenT {
|
|
8
8
|
title: string;
|
|
9
|
-
href
|
|
9
|
+
href?: string;
|
|
10
10
|
target?: string;
|
|
11
|
+
action?: string;
|
|
11
12
|
}
|
|
12
13
|
export interface QuickNavT {
|
|
13
14
|
title: string;
|
|
@@ -30,6 +31,7 @@ export interface FooterOptionT {
|
|
|
30
31
|
beianInfo1: string;
|
|
31
32
|
beianInfo2: string;
|
|
32
33
|
beianLink: string;
|
|
34
|
+
beianLink2?: string;
|
|
33
35
|
policeIcon: string;
|
|
34
36
|
}
|
|
35
37
|
export interface QrcodeT {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
2
|
import OHtmlViewer_vue_vue_type_script_setup_true_lang_default from "./OHtmlViewer.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
|
-
import './OHtmlViewer.
|
|
3
|
+
import './OHtmlViewer.vue_vue_type_style_index_0_scoped_36fc9311_lang.css';
|
|
4
|
+
import './OHtmlViewer.vue_vue_type_style_index_1_lang.css';
|
|
4
5
|
// src/components/html-viewer/OHtmlViewer.vue
|
|
5
|
-
var OHtmlViewer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(OHtmlViewer_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
6
|
+
var OHtmlViewer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(OHtmlViewer_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-36fc9311"]]);
|
|
6
7
|
export { OHtmlViewer_default as default };
|
package/dist/treeshaking/components/html-viewer/OHtmlViewer.vue_vue_type_script_setup_true_lang.mjs
CHANGED
|
@@ -74,8 +74,8 @@ var OHtmlViewer_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
74
74
|
return (_ctx, _cache) => {
|
|
75
75
|
return openBlock(), createElementBlock("div", _hoisted_1, [docStyle.value ? (openBlock(), createBlock(resolveDynamicComponent("style"), {
|
|
76
76
|
key: 0,
|
|
77
|
-
|
|
78
|
-
}, null, 8, ["
|
|
77
|
+
innerHTML: docStyle.value
|
|
78
|
+
}, null, 8, ["innerHTML"])) : createCommentVNode("", true), resolvedBody.value ? withDirectives((openBlock(), createElementBlock("div", {
|
|
79
79
|
key: 1,
|
|
80
80
|
class: "o-html-viewer__body",
|
|
81
81
|
role: "document",
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-36fc9311] {
|
|
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-36fc9311] {
|
|
6
|
+
transform: rotate(-180deg);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
.o-html-viewer[data-v-36fc9311] {
|
|
10
|
+
position: relative;
|
|
11
|
+
width: 100%;
|
|
12
|
+
--o-gap-1: 4px;
|
|
13
|
+
--o-gap-2: 8px;
|
|
14
|
+
--o-gap-3: 12px;
|
|
15
|
+
--o-gap-4: 16px;
|
|
16
|
+
--o-gap-5: 24px;
|
|
17
|
+
--o-gap-6: 32px;
|
|
18
|
+
--o-gap-7: 40px;
|
|
19
|
+
--o-gap-8: 48px;
|
|
20
|
+
--o-gap-9: 64px;
|
|
21
|
+
--o-gap-10: 72px;
|
|
22
|
+
}
|
|
23
|
+
@media (max-width: 1680px) {
|
|
24
|
+
.o-html-viewer[data-v-36fc9311] {
|
|
25
|
+
--o-gap-1: 4px;
|
|
26
|
+
--o-gap-2: 8px;
|
|
27
|
+
--o-gap-3: 8px;
|
|
28
|
+
--o-gap-4: 12px;
|
|
29
|
+
--o-gap-5: 16px;
|
|
30
|
+
--o-gap-6: 24px;
|
|
31
|
+
--o-gap-7: 24px;
|
|
32
|
+
--o-gap-8: 40px;
|
|
33
|
+
--o-gap-9: 48px;
|
|
34
|
+
--o-gap-10: 56px;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
@media (max-width: 1200px) {
|
|
38
|
+
.o-html-viewer[data-v-36fc9311] {
|
|
39
|
+
--o-gap-1: 4px;
|
|
40
|
+
--o-gap-2: 8px;
|
|
41
|
+
--o-gap-3: 8px;
|
|
42
|
+
--o-gap-4: 8px;
|
|
43
|
+
--o-gap-5: 12px;
|
|
44
|
+
--o-gap-6: 16px;
|
|
45
|
+
--o-gap-7: 16px;
|
|
46
|
+
--o-gap-8: 24px;
|
|
47
|
+
--o-gap-9: 32px;
|
|
48
|
+
--o-gap-10: 40px;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
@media (max-width: 840px) {
|
|
52
|
+
.o-html-viewer[data-v-36fc9311] {
|
|
53
|
+
--o-gap-1: 4px;
|
|
54
|
+
--o-gap-2: 8px;
|
|
55
|
+
--o-gap-3: 8px;
|
|
56
|
+
--o-gap-4: 8px;
|
|
57
|
+
--o-gap-5: 12px;
|
|
58
|
+
--o-gap-6: 12px;
|
|
59
|
+
--o-gap-7: 12px;
|
|
60
|
+
--o-gap-8: 16px;
|
|
61
|
+
--o-gap-9: 24px;
|
|
62
|
+
--o-gap-10: 32px;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
@media (max-width: 600px) {
|
|
66
|
+
.o-html-viewer[data-v-36fc9311] {
|
|
67
|
+
--o-gap-1: 4px;
|
|
68
|
+
--o-gap-2: 8px;
|
|
69
|
+
--o-gap-3: 8px;
|
|
70
|
+
--o-gap-4: 8px;
|
|
71
|
+
--o-gap-5: 12px;
|
|
72
|
+
--o-gap-6: 12px;
|
|
73
|
+
--o-gap-7: 12px;
|
|
74
|
+
--o-gap-8: 16px;
|
|
75
|
+
--o-gap-9: 24px;
|
|
76
|
+
--o-gap-10: 32px;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
.o-html-viewer__status[data-v-36fc9311] {
|
|
80
|
+
display: flex;
|
|
81
|
+
align-items: center;
|
|
82
|
+
justify-content: center;
|
|
83
|
+
min-height: 160px;
|
|
84
|
+
padding: 24px;
|
|
85
|
+
font-size: 14px;
|
|
86
|
+
line-height: 22px;
|
|
87
|
+
color: var(--o-color-info2);
|
|
88
|
+
}
|
|
89
|
+
.o-html-viewer__status.is-error[data-v-36fc9311] {
|
|
90
|
+
color: var(--o-color-info3);
|
|
91
|
+
}
|
|
92
|
+
.o-html-viewer__body[data-v-36fc9311] {
|
|
93
|
+
max-width: 880px;
|
|
94
|
+
margin: 0 auto;
|
|
95
|
+
font-size: var(--doc-base-size, var(--o-font_size-tip1, 14px));
|
|
96
|
+
line-height: var(--doc-line-height, 1.8);
|
|
97
|
+
color: var(--o-color-info1);
|
|
98
|
+
overflow-x: hidden;
|
|
99
|
+
word-wrap: break-word;
|
|
100
|
+
overflow-wrap: break-word;
|
|
101
|
+
}
|
|
102
|
+
.o-html-viewer__body[data-v-36fc9311] .title_content {
|
|
103
|
+
color: var(--o-color-info1);
|
|
104
|
+
}
|
|
105
|
+
.o-html-viewer__body[data-v-36fc9311] .body_content {
|
|
106
|
+
padding: 0;
|
|
107
|
+
}
|
|
108
|
+
.o-html-viewer__body[data-v-36fc9311] [style*='font-family' i] {
|
|
109
|
+
font-family: inherit !important;
|
|
110
|
+
}
|
|
111
|
+
.o-html-viewer__body[data-v-36fc9311] .list_title {
|
|
112
|
+
font-size: 22px;
|
|
113
|
+
line-height: 30px;
|
|
114
|
+
}
|
|
115
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
116
|
+
.o-html-viewer__body[data-v-36fc9311] .list_title {
|
|
117
|
+
font-size: 18px;
|
|
118
|
+
line-height: 26px;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
122
|
+
.o-html-viewer__body[data-v-36fc9311] .list_title {
|
|
123
|
+
font-size: 16px;
|
|
124
|
+
line-height: 24px;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
@media (min-width: 601px) and (max-width: 840px) {
|
|
128
|
+
.o-html-viewer__body[data-v-36fc9311] .list_title {
|
|
129
|
+
font-size: 16px;
|
|
130
|
+
line-height: 24px;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
@media (max-width: 600px) {
|
|
134
|
+
.o-html-viewer__body[data-v-36fc9311] .list_title {
|
|
135
|
+
font-size: 16px;
|
|
136
|
+
line-height: 24px;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
.o-html-viewer__body[data-v-36fc9311] .ropa_base_information .content {
|
|
140
|
+
padding-left: 0;
|
|
141
|
+
}
|
|
142
|
+
.o-html-viewer__body[data-v-36fc9311] .ropa_base_information .content ul, .o-html-viewer__body[data-v-36fc9311] .ropa_base_information .content ol {
|
|
143
|
+
padding-left: 0;
|
|
144
|
+
}
|
|
145
|
+
.o-html-viewer__body[data-v-36fc9311] :where(h1),
|
|
146
|
+
.o-html-viewer__body[data-v-36fc9311] .title_content {
|
|
147
|
+
font-weight: bold;
|
|
148
|
+
text-align: center;
|
|
149
|
+
margin: var(--o-gap-6, 32px) 0 var(--doc-title-border-bottom-gap, var(--o-gap-6, 32px));
|
|
150
|
+
padding-bottom: var(--doc-title-border-top-gap, var(--o-gap-6, 32px));
|
|
151
|
+
border-bottom: 1px solid var(--o-color-control4);
|
|
152
|
+
font-size: var(--doc-title-size, 32px);
|
|
153
|
+
line-height: 44px;
|
|
154
|
+
}
|
|
155
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
156
|
+
.o-html-viewer__body[data-v-36fc9311] :where(h1),
|
|
157
|
+
.o-html-viewer__body[data-v-36fc9311] .title_content {
|
|
158
|
+
font-size: 20px;
|
|
159
|
+
line-height: 28px;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
163
|
+
.o-html-viewer__body[data-v-36fc9311] :where(h1),
|
|
164
|
+
.o-html-viewer__body[data-v-36fc9311] .title_content {
|
|
165
|
+
font-size: 20px;
|
|
166
|
+
line-height: 28px;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
@media (min-width: 601px) and (max-width: 840px) {
|
|
170
|
+
.o-html-viewer__body[data-v-36fc9311] :where(h1),
|
|
171
|
+
.o-html-viewer__body[data-v-36fc9311] .title_content {
|
|
172
|
+
font-size: 18px;
|
|
173
|
+
line-height: 26px;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
@media (max-width: 600px) {
|
|
177
|
+
.o-html-viewer__body[data-v-36fc9311] :where(h1),
|
|
178
|
+
.o-html-viewer__body[data-v-36fc9311] .title_content {
|
|
179
|
+
font-size: 16px;
|
|
180
|
+
line-height: 24px;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
.o-html-viewer__body[data-v-36fc9311] :where(h2) {
|
|
184
|
+
font-size: 18px;
|
|
185
|
+
font-weight: bold;
|
|
186
|
+
color: var(--o-color-primary1);
|
|
187
|
+
padding-bottom: 0.3rem;
|
|
188
|
+
line-height: 1.4;
|
|
189
|
+
}
|
|
190
|
+
.o-html-viewer__body[data-v-36fc9311] :where(h3) {
|
|
191
|
+
font-size: 16px;
|
|
192
|
+
font-weight: bold;
|
|
193
|
+
color: var(--o-color-info1);
|
|
194
|
+
margin: 1.8rem 0 0.8rem;
|
|
195
|
+
line-height: 1.5;
|
|
196
|
+
}
|
|
197
|
+
.o-html-viewer__body[data-v-36fc9311] :where(h4) {
|
|
198
|
+
font-size: 15px;
|
|
199
|
+
font-weight: bold;
|
|
200
|
+
color: var(--o-color-info1);
|
|
201
|
+
margin: 1.5rem 0 0.6rem;
|
|
202
|
+
line-height: 1.5;
|
|
203
|
+
}
|
|
204
|
+
.o-html-viewer__body[data-v-36fc9311] :where(h5) {
|
|
205
|
+
font-size: 14px;
|
|
206
|
+
font-weight: bold;
|
|
207
|
+
color: var(--o-color-info1);
|
|
208
|
+
margin: 1.2rem 0 0.5rem;
|
|
209
|
+
line-height: 1.5;
|
|
210
|
+
}
|
|
211
|
+
.o-html-viewer__body[data-v-36fc9311] :where(h6) {
|
|
212
|
+
font-size: 14px;
|
|
213
|
+
font-weight: bold;
|
|
214
|
+
color: var(--o-color-info2);
|
|
215
|
+
margin: 1rem 0 0.4rem;
|
|
216
|
+
line-height: 1.5;
|
|
217
|
+
}
|
|
218
|
+
.o-html-viewer__body[data-v-36fc9311] :where(p) {
|
|
219
|
+
margin: 0.4rem 0;
|
|
220
|
+
text-align: justify;
|
|
221
|
+
}
|
|
222
|
+
.o-html-viewer__body[data-v-36fc9311] :where(a) {
|
|
223
|
+
color: var(--o-color-primary1);
|
|
224
|
+
}
|
|
225
|
+
.o-html-viewer__body[data-v-36fc9311] :where(h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p) {
|
|
226
|
+
text-indent: 0;
|
|
227
|
+
}
|
|
228
|
+
.o-html-viewer__body[data-v-36fc9311] :where(.table-wrap) {
|
|
229
|
+
overflow-x: auto;
|
|
230
|
+
margin: 1rem 0;
|
|
231
|
+
-webkit-overflow-scrolling: touch;
|
|
232
|
+
}
|
|
233
|
+
.o-html-viewer__body[data-v-36fc9311] :where(table) {
|
|
234
|
+
border-collapse: collapse;
|
|
235
|
+
width: 100%;
|
|
236
|
+
}
|
|
237
|
+
.o-html-viewer__body[data-v-36fc9311] :where(th, td) {
|
|
238
|
+
border: 1px solid var(--o-color-control1);
|
|
239
|
+
padding: 6px 10px;
|
|
240
|
+
text-align: left;
|
|
241
|
+
vertical-align: top;
|
|
242
|
+
}
|
|
243
|
+
.o-html-viewer__body[data-v-36fc9311] :where(th) {
|
|
244
|
+
background-color: var(--o-color-fill2);
|
|
245
|
+
font-weight: bold;
|
|
246
|
+
text-align: center;
|
|
247
|
+
}
|
|
248
|
+
.o-html-viewer__body[data-v-36fc9311] :where(tr:nth-child(even)) {
|
|
249
|
+
background-color: var(--o-color-fill3);
|
|
250
|
+
}
|
|
251
|
+
.o-html-viewer__body[data-v-36fc9311] :where(td p, th p) {
|
|
252
|
+
text-indent: 0;
|
|
253
|
+
margin: 0.2rem 0;
|
|
254
|
+
}
|
|
255
|
+
.o-html-viewer__body[data-v-36fc9311] :where(ul, ol) {
|
|
256
|
+
padding-left: 2em;
|
|
257
|
+
margin: 0.5rem 0;
|
|
258
|
+
}
|
|
259
|
+
.o-html-viewer__body[data-v-36fc9311] :where(li) {
|
|
260
|
+
margin-bottom: 0.3rem;
|
|
261
|
+
}
|
|
262
|
+
.o-html-viewer__body[data-v-36fc9311] :where(li p) {
|
|
263
|
+
text-indent: 0;
|
|
264
|
+
}
|
|
265
|
+
.o-html-viewer__body[data-v-36fc9311] :where(img) {
|
|
266
|
+
max-width: 100%;
|
|
267
|
+
height: auto;
|
|
268
|
+
display: block;
|
|
269
|
+
margin: 1rem auto;
|
|
270
|
+
}
|
|
271
|
+
.o-html-viewer__body[data-v-36fc9311] :where(code) {
|
|
272
|
+
font-family: var(--doc-font-mono, "Consolas", "Courier New", monospace) !important;
|
|
273
|
+
background: var(--o-color-fill3);
|
|
274
|
+
padding: 1px 4px;
|
|
275
|
+
border-radius: 2px;
|
|
276
|
+
font-size: 0.9em;
|
|
277
|
+
}
|
|
278
|
+
.o-html-viewer__body[data-v-36fc9311] :where(pre) {
|
|
279
|
+
font-family: var(--doc-font-mono, "Consolas", "Courier New", monospace) !important;
|
|
280
|
+
background: var(--o-color-fill3);
|
|
281
|
+
padding: 12px 16px;
|
|
282
|
+
border-radius: 4px;
|
|
283
|
+
overflow-x: auto;
|
|
284
|
+
font-size: 13px;
|
|
285
|
+
line-height: 1.5;
|
|
286
|
+
margin: 0.8rem 0;
|
|
287
|
+
max-width: 100%;
|
|
288
|
+
-webkit-overflow-scrolling: touch;
|
|
289
|
+
}
|
|
290
|
+
.o-html-viewer__body[data-v-36fc9311] :where(pre code) {
|
|
291
|
+
background: none;
|
|
292
|
+
padding: 0;
|
|
293
|
+
}
|
|
294
|
+
.o-html-viewer__body[data-v-36fc9311] :where(blockquote) {
|
|
295
|
+
border-left: 3px solid var(--o-color-primary1);
|
|
296
|
+
margin: 0.8rem 0;
|
|
297
|
+
padding: 0.5rem 1rem;
|
|
298
|
+
color: var(--o-color-info2);
|
|
299
|
+
background: var(--o-color-fill2);
|
|
300
|
+
}
|
|
301
|
+
.o-html-viewer__body[data-v-36fc9311] :where(blockquote p) {
|
|
302
|
+
text-indent: 0;
|
|
303
|
+
}
|
|
304
|
+
.o-html-viewer__body[data-v-36fc9311] :where(hr) {
|
|
305
|
+
border: none;
|
|
306
|
+
border-top: 1px solid var(--o-color-control4);
|
|
307
|
+
margin: 1.5rem 0;
|
|
308
|
+
}
|
|
309
|
+
@media (max-width: 1200px) {
|
|
310
|
+
.o-html-viewer__body[data-v-36fc9311] {
|
|
311
|
+
font-size: var(--doc-base-size, 12px);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
@media (max-width: 840px) {
|
|
315
|
+
.o-html-viewer__body[data-v-36fc9311] {
|
|
316
|
+
padding: 24px 16px;
|
|
317
|
+
}
|
|
318
|
+
}
|
package/dist/treeshaking/components/html-viewer/OHtmlViewer.vue_vue_type_style_index_1_lang.css
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.hover-icon-rotate .o-icon {
|
|
2
|
+
transition: all var(--o-duration-m1) var(--o-easing-standard-in);
|
|
3
|
+
}
|
|
4
|
+
@media (hover: hover) {
|
|
5
|
+
.hover-icon-rotate:hover .o-icon {
|
|
6
|
+
transform: rotate(-180deg);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/*
|
|
11
|
+
* 文档基础字体(非 scoped):
|
|
12
|
+
* scoped 规则会附带 [data-v] 属性选择器,优先级 (0,2,0) 恒高于文档自带样式(如 `*`/`body` 选择器
|
|
13
|
+
* 经 scope 限定后为 (0,1,0)),导致容器字体压过文档字体,继承链(内联 font-family 被强制继承的元素)
|
|
14
|
+
* 与文档 * 规则直接命中的元素(如 strong)字体不一致。
|
|
15
|
+
* 此处用普通 (0,1,0) 声明:文档自带字体声明与之同优先级且在 DOM 中更靠后,总能覆盖它;
|
|
16
|
+
* 文档未声明字体时回退到 --doc-font-body,保证全文(含加粗、标题)字体统一。
|
|
17
|
+
*/
|
|
18
|
+
.o-html-viewer__body {
|
|
19
|
+
font-family: var(--doc-font-body, "SimSun", "宋体", "Times New Roman", serif);
|
|
20
|
+
}
|
|
@@ -21,7 +21,7 @@ export interface ParsedDocT {
|
|
|
21
21
|
* 解析完整 HTML 文档:
|
|
22
22
|
* 1. 提取所有 `<style>` 块,将选择器限定在 scope 内后合并为 CSS 文本;
|
|
23
23
|
* 2. 提取 `<body>` 内容(无 body 标签时使用原文),并移除其中的 style 块;
|
|
24
|
-
* 3. 清理内联样式中的 color/background
|
|
24
|
+
* 3. 清理内联样式中的 color/background/font-size 声明,使文档跟随宿主主题与组件排版字号。
|
|
25
25
|
*
|
|
26
26
|
* 注意:`<style>` 是 head-only 元素,交给 DOMPurify 片段净化时会因被解析进 head 而丢失,
|
|
27
27
|
* 因此调用方需将返回的 CSS 单独渲染,不要与 body 一起传入净化指令。
|