@opendesign-plus-test/components 0.0.1-rc.281 → 0.0.1-rc.283
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-element-plus.cjs.js +1 -1
- package/dist/chunk-element-plus.es.js +113 -99
- package/dist/components/activity/index.d.ts +9 -9
- package/dist/components/anchor-bar/OAnchorBar.vue.d.ts +2 -2
- package/dist/components/anchor-bar/index.d.ts +9 -9
- package/dist/components/article/index.d.ts +25 -25
- package/dist/components/article-anchor/OArticleAnchor.vue.d.ts +0 -176
- package/dist/components/article-anchor/index.d.ts +9 -185
- package/dist/components/article-pagination/index.d.ts +17 -17
- package/dist/components/banner/index.d.ts +6 -6
- package/dist/components/brand/index.d.ts +15 -15
- package/dist/components/community-updates/OCommunityUpdates.vue.d.ts +1 -1
- package/dist/components/community-updates/index.d.ts +14 -14
- package/dist/components/cookie-notice/OCookieNotice.vue.d.ts +9 -3
- package/dist/components/cookie-notice/index.d.ts +15 -2
- package/dist/components/doc-layout/ODocLayout.vue.d.ts +2 -5
- package/dist/components/doc-layout/index.d.ts +0 -1
- package/dist/components/element-plus/OElCookieNotice.vue.d.ts +9 -3
- 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-search/index.d.ts +13 -13
- package/dist/components/html-viewer/utils.d.ts +1 -1
- package/dist/components/logo-swiper/index.d.ts +11 -11
- 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/index.d.ts +51 -51
- package/dist/components/org/index.d.ts +9 -9
- package/dist/components/recursion-menu/index.d.ts +3 -3
- package/dist/components/search/index.d.ts +11 -11
- package/dist/components/search-result/OSearchResultHeader.vue.d.ts +24 -24
- package/dist/components/search-result/index.d.ts +31 -31
- package/dist/components/sig/index.d.ts +15 -15
- package/dist/components/summit/index.d.ts +12 -12
- package/dist/components/user-center/index.d.ts +18 -18
- package/dist/components/video/index.d.ts +3 -3
- package/dist/components.cjs.js +4 -4
- package/dist/components.css +1 -1
- package/dist/components.es.js +1702 -1719
- package/dist/treeshaking/_virtual/~icons/components/icon-link.mjs +2 -0
- package/dist/treeshaking/components/activity/index.d.ts +9 -9
- package/dist/treeshaking/components/anchor-bar/OAnchorBar.vue.d.ts +2 -2
- package/dist/treeshaking/components/anchor-bar/index.d.ts +9 -9
- package/dist/treeshaking/components/article/index.d.ts +25 -25
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.mjs +2 -2
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue.d.ts +0 -176
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue_vue_type_script_setup_true_lang.mjs +19 -46
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue_vue_type_style_index_0_scoped_dcc5e0d5_lang.css +18 -0
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.mjs +2 -2
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/treeshaking/components/article-anchor/components/{ArticleAnchorMobile.vue_vue_type_style_index_0_scoped_3d9befab_lang.css → ArticleAnchorMobile.vue_vue_type_style_index_0_scoped_7fff2dcb_lang.css} +13 -10
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPad.mjs +2 -2
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPad.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/treeshaking/components/article-anchor/components/{ArticleAnchorPad.vue_vue_type_style_index_0_scoped_06601233_lang.css → ArticleAnchorPad.vue_vue_type_style_index_0_scoped_c895f349_lang.css} +18 -12
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPc.mjs +2 -2
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPc.vue_vue_type_script_setup_true_lang.mjs +4 -4
- package/dist/treeshaking/components/article-anchor/components/{ArticleAnchorPc.vue_vue_type_style_index_0_scoped_2f93d5ed_lang.css → ArticleAnchorPc.vue_vue_type_style_index_0_scoped_a480e4e7_lang.css} +13 -13
- package/dist/treeshaking/components/article-anchor/index.d.ts +9 -185
- package/dist/treeshaking/components/article-pagination/index.d.ts +17 -17
- package/dist/treeshaking/components/banner/index.d.ts +6 -6
- package/dist/treeshaking/components/brand/index.d.ts +15 -15
- package/dist/treeshaking/components/community-updates/OCommunityUpdates.vue.d.ts +1 -1
- package/dist/treeshaking/components/community-updates/index.d.ts +14 -14
- package/dist/treeshaking/components/cookie-notice/OCookieNotice.mjs +2 -2
- package/dist/treeshaking/components/cookie-notice/OCookieNotice.vue.d.ts +9 -3
- package/dist/treeshaking/components/cookie-notice/OCookieNotice.vue_vue_type_script_setup_true_lang.mjs +43 -35
- package/dist/treeshaking/components/cookie-notice/{OCookieNotice.vue_vue_type_style_index_0_scoped_a7993ee9_lang.css → OCookieNotice.vue_vue_type_style_index_0_scoped_6f0c80fe_lang.css} +57 -57
- package/dist/treeshaking/components/cookie-notice/index.d.ts +15 -2
- package/dist/treeshaking/components/doc-layout/ODocLayout.mjs +2 -2
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue.d.ts +2 -5
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue_vue_type_script_setup_true_lang.mjs +7 -33
- package/dist/treeshaking/components/doc-layout/{ODocLayout.vue_vue_type_style_index_0_scoped_5403350d_lang.css → ODocLayout.vue_vue_type_style_index_0_scoped_b4aff4ce_lang.css} +51 -63
- package/dist/treeshaking/components/doc-layout/index.d.ts +0 -1
- package/dist/treeshaking/components/element-plus/OElCookieNotice.mjs +2 -2
- package/dist/treeshaking/components/element-plus/OElCookieNotice.vue.d.ts +9 -3
- package/dist/treeshaking/components/element-plus/OElCookieNotice.vue_vue_type_script_setup_true_lang.mjs +44 -27
- package/dist/treeshaking/components/element-plus/{OElCookieNotice.vue_vue_type_style_index_1_scoped_d9e2bcf9_lang.css → OElCookieNotice.vue_vue_type_style_index_1_scoped_5fa9f6f1_lang.css} +153 -153
- package/dist/treeshaking/components/events/index.d.ts +20 -20
- package/dist/treeshaking/components/footer/components/FooterList.mjs +2 -2
- package/dist/treeshaking/components/footer/components/FooterList.vue_vue_type_script_setup_true_lang.mjs +2 -1
- package/dist/treeshaking/components/footer/components/{FooterList.vue_vue_type_style_index_0_scoped_1d7a4555_lang.css → FooterList.vue_vue_type_style_index_0_scoped_0ed4bc5f_lang.css} +106 -106
- package/dist/treeshaking/components/footer/components/FooterSimple.mjs +2 -2
- package/dist/treeshaking/components/footer/components/FooterSimple.vue_vue_type_script_setup_true_lang.mjs +2 -1
- package/dist/treeshaking/components/footer/components/{FooterSimple.vue_vue_type_style_index_0_scoped_bb36ddad_lang.css → FooterSimple.vue_vue_type_style_index_0_scoped_42242446_lang.css} +25 -25
- 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-search/index.d.ts +13 -13
- 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_ba52bc9c_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/logo-swiper/index.d.ts +11 -11
- package/dist/treeshaking/components/markdown/components/MarkdownCode.mjs +2 -2
- package/dist/treeshaking/components/markdown/components/MarkdownCode.vue_vue_type_style_index_0_lang.css +0 -4
- package/dist/treeshaking/components/markdown/components/{MarkdownCode.vue_vue_type_style_index_1_scoped_e878a7c0_lang.css → MarkdownCode.vue_vue_type_style_index_1_scoped_a65c7007_lang.css} +56 -56
- 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/index.d.ts +51 -51
- package/dist/treeshaking/components/org/index.d.ts +9 -9
- package/dist/treeshaking/components/recursion-menu/index.d.ts +3 -3
- package/dist/treeshaking/components/search/index.d.ts +11 -11
- package/dist/treeshaking/components/search-result/OSearchResultHeader.vue.d.ts +24 -24
- package/dist/treeshaking/components/search-result/index.d.ts +31 -31
- package/dist/treeshaking/components/sig/index.d.ts +15 -15
- package/dist/treeshaking/components/summit/index.d.ts +12 -12
- package/dist/treeshaking/components/user-center/index.d.ts +18 -18
- package/dist/treeshaking/components/video/index.d.ts +3 -3
- package/package.json +1 -1
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue_vue_type_style_index_0_scoped_4f5aa268_lang.css +0 -37
- package/dist/treeshaking/components/html-viewer/OHtmlViewer.vue_vue_type_style_index_0_scoped_2f5d08df_lang.css +0 -196
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-ba52bc9c] {
|
|
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-ba52bc9c] {
|
|
6
|
+
transform: rotate(-180deg);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
.o-html-viewer[data-v-ba52bc9c] {
|
|
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-ba52bc9c] {
|
|
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-ba52bc9c] {
|
|
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-ba52bc9c] {
|
|
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-ba52bc9c] {
|
|
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-ba52bc9c] {
|
|
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-ba52bc9c] {
|
|
90
|
+
color: var(--o-color-info3);
|
|
91
|
+
}
|
|
92
|
+
.o-html-viewer__body[data-v-ba52bc9c] {
|
|
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-ba52bc9c] .title_content {
|
|
103
|
+
color: var(--o-color-info1);
|
|
104
|
+
}
|
|
105
|
+
.o-html-viewer__body[data-v-ba52bc9c] .body_content {
|
|
106
|
+
padding: 0;
|
|
107
|
+
}
|
|
108
|
+
.o-html-viewer__body[data-v-ba52bc9c] [style*='font-family' i] {
|
|
109
|
+
font-family: inherit !important;
|
|
110
|
+
}
|
|
111
|
+
.o-html-viewer__body[data-v-ba52bc9c] .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-ba52bc9c] .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-ba52bc9c] .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-ba52bc9c] .list_title {
|
|
129
|
+
font-size: 16px;
|
|
130
|
+
line-height: 24px;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
@media (max-width: 600px) {
|
|
134
|
+
.o-html-viewer__body[data-v-ba52bc9c] .list_title {
|
|
135
|
+
font-size: 16px;
|
|
136
|
+
line-height: 24px;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
.o-html-viewer__body[data-v-ba52bc9c] .ropa_base_information .content {
|
|
140
|
+
padding-left: 0;
|
|
141
|
+
}
|
|
142
|
+
.o-html-viewer__body[data-v-ba52bc9c] .ropa_base_information .content ul, .o-html-viewer__body[data-v-ba52bc9c] .ropa_base_information .content ol {
|
|
143
|
+
padding-left: 0;
|
|
144
|
+
}
|
|
145
|
+
.o-html-viewer__body[data-v-ba52bc9c] :where(h1),
|
|
146
|
+
.o-html-viewer__body[data-v-ba52bc9c] .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-ba52bc9c] :where(h1),
|
|
157
|
+
.o-html-viewer__body[data-v-ba52bc9c] .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-ba52bc9c] :where(h1),
|
|
164
|
+
.o-html-viewer__body[data-v-ba52bc9c] .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-ba52bc9c] :where(h1),
|
|
171
|
+
.o-html-viewer__body[data-v-ba52bc9c] .title_content {
|
|
172
|
+
font-size: 18px;
|
|
173
|
+
line-height: 26px;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
@media (max-width: 600px) {
|
|
177
|
+
.o-html-viewer__body[data-v-ba52bc9c] :where(h1),
|
|
178
|
+
.o-html-viewer__body[data-v-ba52bc9c] .title_content {
|
|
179
|
+
font-size: 16px;
|
|
180
|
+
line-height: 24px;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
.o-html-viewer__body[data-v-ba52bc9c] :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-ba52bc9c] :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-ba52bc9c] :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-ba52bc9c] :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-ba52bc9c] :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-ba52bc9c] :where(p) {
|
|
219
|
+
margin: 0.4rem 0;
|
|
220
|
+
text-align: justify;
|
|
221
|
+
}
|
|
222
|
+
.o-html-viewer__body[data-v-ba52bc9c] :where(a) {
|
|
223
|
+
color: var(--o-color-primary1);
|
|
224
|
+
}
|
|
225
|
+
.o-html-viewer__body[data-v-ba52bc9c] :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-ba52bc9c] :where(.table-wrap) {
|
|
229
|
+
overflow-x: auto;
|
|
230
|
+
margin: 1rem 0;
|
|
231
|
+
-webkit-overflow-scrolling: touch;
|
|
232
|
+
}
|
|
233
|
+
.o-html-viewer__body[data-v-ba52bc9c] :where(table) {
|
|
234
|
+
border-collapse: collapse;
|
|
235
|
+
width: 100%;
|
|
236
|
+
}
|
|
237
|
+
.o-html-viewer__body[data-v-ba52bc9c] :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-ba52bc9c] :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-ba52bc9c] :where(tr:nth-child(even)) {
|
|
249
|
+
background-color: var(--o-color-fill3);
|
|
250
|
+
}
|
|
251
|
+
.o-html-viewer__body[data-v-ba52bc9c] :where(td p, th p) {
|
|
252
|
+
text-indent: 0;
|
|
253
|
+
margin: 0.2rem 0;
|
|
254
|
+
}
|
|
255
|
+
.o-html-viewer__body[data-v-ba52bc9c] :where(ul, ol) {
|
|
256
|
+
padding-left: 2em;
|
|
257
|
+
margin: 0.5rem 0;
|
|
258
|
+
}
|
|
259
|
+
.o-html-viewer__body[data-v-ba52bc9c] :where(li) {
|
|
260
|
+
margin-bottom: 0.3rem;
|
|
261
|
+
}
|
|
262
|
+
.o-html-viewer__body[data-v-ba52bc9c] :where(li p) {
|
|
263
|
+
text-indent: 0;
|
|
264
|
+
}
|
|
265
|
+
.o-html-viewer__body[data-v-ba52bc9c] :where(img) {
|
|
266
|
+
max-width: 100%;
|
|
267
|
+
height: auto;
|
|
268
|
+
display: block;
|
|
269
|
+
margin: 1rem auto;
|
|
270
|
+
}
|
|
271
|
+
.o-html-viewer__body[data-v-ba52bc9c] :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-ba52bc9c] :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-ba52bc9c] :where(pre code) {
|
|
291
|
+
background: none;
|
|
292
|
+
padding: 0;
|
|
293
|
+
}
|
|
294
|
+
.o-html-viewer__body[data-v-ba52bc9c] :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-ba52bc9c] :where(blockquote p) {
|
|
302
|
+
text-indent: 0;
|
|
303
|
+
}
|
|
304
|
+
.o-html-viewer__body[data-v-ba52bc9c] :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-ba52bc9c] {
|
|
311
|
+
font-size: var(--doc-base-size, 12px);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
@media (max-width: 840px) {
|
|
315
|
+
.o-html-viewer__body[data-v-ba52bc9c] {
|
|
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 一起传入净化指令。
|
|
@@ -50,23 +50,42 @@ function scopeCss(css, scope) {
|
|
|
50
50
|
return result;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
+
* 中和 CSS 文本中的 `</style` 序列。
|
|
54
|
+
* `<style>` 是 raw-text 元素:CSS 中经由 v-html 在 SSR 原样输出时,内容若含 `</style`
|
|
55
|
+
* (含 `</style >` 等带空白变体)会提前闭合标签造成 HTML 逃逸;而样式提取正则只按
|
|
56
|
+
* 字面 `</style>` 截断,两者边界不一致。替换为 CSS unicode 转义 `\3c/style`,
|
|
57
|
+
* 在字符串/引号 url() 中语义等价(`\3c` 即 `<`),同时杜绝逃逸。
|
|
58
|
+
*/
|
|
59
|
+
function neutralizeStyleClose(css) {
|
|
60
|
+
return css.replace(/<\/style/gi, "\\3c/style");
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* 移除 CSS 文本中的 font-size 声明。
|
|
64
|
+
* 文档自带字号为固定 px(如正文 16px),无法随断点/主题适配多分辨率;
|
|
65
|
+
* 移除后正文等元素的字号统一继承容器(容器取设计字号 token --o-font_size-*,响应式),
|
|
66
|
+
* 标题则落到组件排版规则(同样基于设计字号 token)。
|
|
67
|
+
*/
|
|
68
|
+
function stripFontSize(css) {
|
|
69
|
+
return css.replace(/(?<![-\w])font-size\s*:\s*[^;}]+;?/gi, "");
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
53
72
|
* 解析完整 HTML 文档:
|
|
54
73
|
* 1. 提取所有 `<style>` 块,将选择器限定在 scope 内后合并为 CSS 文本;
|
|
55
74
|
* 2. 提取 `<body>` 内容(无 body 标签时使用原文),并移除其中的 style 块;
|
|
56
|
-
* 3. 清理内联样式中的 color/background
|
|
75
|
+
* 3. 清理内联样式中的 color/background/font-size 声明,使文档跟随宿主主题与组件排版字号。
|
|
57
76
|
*
|
|
58
77
|
* 注意:`<style>` 是 head-only 元素,交给 DOMPurify 片段净化时会因被解析进 head 而丢失,
|
|
59
78
|
* 因此调用方需将返回的 CSS 单独渲染,不要与 body 一起传入净化指令。
|
|
60
79
|
*/
|
|
61
80
|
function parseHtml(text, scope) {
|
|
62
81
|
const styleParts = [];
|
|
63
|
-
for (const m of text.matchAll(/<style[^>]*>([\s\S]*?)<\/style>/gi)) styleParts.push(scopeCss(m[1], scope));
|
|
82
|
+
for (const m of text.matchAll(/<style[^>]*>([\s\S]*?)<\/style>/gi)) styleParts.push(scopeCss(neutralizeStyleClose(stripFontSize(m[1])), scope));
|
|
64
83
|
const bodyMatch = text.match(/<body[^>]*>([\s\S]*?)<\/body>/i);
|
|
65
84
|
let rawBody = bodyMatch ? bodyMatch[1] : text;
|
|
66
85
|
rawBody = rawBody.replace(/<style[^>]*>[\s\S]*?<\/style>/gi, "");
|
|
67
86
|
return {
|
|
68
87
|
body: rawBody.replace(/style\s*=\s*"([^"]*)"/gi, (_m, val) => {
|
|
69
|
-
const cleaned = val.replace(/(?<![-\w])(?:color|background(?:-color)
|
|
88
|
+
const cleaned = val.replace(/(?<![-\w])(?:color|background(?:-color)?|font-size)\s*:\s*[^;]+;?/gi, "").replace(/\s{2,}/g, " ").trim();
|
|
70
89
|
return cleaned ? `style="${cleaned}"` : "";
|
|
71
90
|
}),
|
|
72
91
|
styleCss: styleParts.join("\n")
|
|
@@ -20,13 +20,13 @@ declare const OLogoSwiper: {
|
|
|
20
20
|
install(app: App): void;
|
|
21
21
|
};
|
|
22
22
|
declare const OLogoSwiperItems: {
|
|
23
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('
|
|
24
|
-
onClick?: ((item: import('
|
|
23
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').OLogoSwiperItemsPropsT> & Readonly<{
|
|
24
|
+
onClick?: ((item: import('./types').OLogoSwiperItemT) => any) | undefined;
|
|
25
25
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
26
|
-
click: (item: import('
|
|
26
|
+
click: (item: import('./types').OLogoSwiperItemT) => any;
|
|
27
27
|
}, import('vue').PublicProps, {
|
|
28
28
|
reverse: boolean;
|
|
29
|
-
data: import('
|
|
29
|
+
data: import('./types').OLogoSwiperItemT[];
|
|
30
30
|
target: "_blank" | "_parent" | "_self" | "_top";
|
|
31
31
|
duration: number;
|
|
32
32
|
fit: "cover" | "contain" | "fill" | "none" | "scale-down";
|
|
@@ -42,11 +42,11 @@ declare const OLogoSwiperItems: {
|
|
|
42
42
|
C: {};
|
|
43
43
|
M: {};
|
|
44
44
|
Defaults: {};
|
|
45
|
-
}, Readonly<import('
|
|
46
|
-
onClick?: ((item: import('
|
|
45
|
+
}, Readonly<import('./types').OLogoSwiperItemsPropsT> & Readonly<{
|
|
46
|
+
onClick?: ((item: import('./types').OLogoSwiperItemT) => any) | undefined;
|
|
47
47
|
}>, {}, {}, {}, {}, {
|
|
48
48
|
reverse: boolean;
|
|
49
|
-
data: import('
|
|
49
|
+
data: import('./types').OLogoSwiperItemT[];
|
|
50
50
|
target: "_blank" | "_parent" | "_self" | "_top";
|
|
51
51
|
duration: number;
|
|
52
52
|
fit: "cover" | "contain" | "fill" | "none" | "scale-down";
|
|
@@ -57,13 +57,13 @@ declare const OLogoSwiperItems: {
|
|
|
57
57
|
__isFragment?: never;
|
|
58
58
|
__isTeleport?: never;
|
|
59
59
|
__isSuspense?: never;
|
|
60
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('
|
|
61
|
-
onClick?: ((item: import('
|
|
60
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./types').OLogoSwiperItemsPropsT> & Readonly<{
|
|
61
|
+
onClick?: ((item: import('./types').OLogoSwiperItemT) => any) | undefined;
|
|
62
62
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
63
|
-
click: (item: import('
|
|
63
|
+
click: (item: import('./types').OLogoSwiperItemT) => any;
|
|
64
64
|
}, string, {
|
|
65
65
|
reverse: boolean;
|
|
66
|
-
data: import('
|
|
66
|
+
data: import('./types').OLogoSwiperItemT[];
|
|
67
67
|
target: "_blank" | "_parent" | "_self" | "_top";
|
|
68
68
|
duration: number;
|
|
69
69
|
fit: "cover" | "contain" | "fill" | "none" | "scale-down";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
2
|
import MarkdownCode_vue_vue_type_script_setup_true_lang_default from "./MarkdownCode.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
3
|
import './MarkdownCode.vue_vue_type_style_index_0_lang.css';
|
|
4
|
-
import './MarkdownCode.
|
|
4
|
+
import './MarkdownCode.vue_vue_type_style_index_1_scoped_a65c7007_lang.css';
|
|
5
5
|
// src/components/markdown/components/MarkdownCode.vue
|
|
6
|
-
var MarkdownCode_default = /*#__PURE__*/ _plugin_vue_export_helper_default(MarkdownCode_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
6
|
+
var MarkdownCode_default = /*#__PURE__*/ _plugin_vue_export_helper_default(MarkdownCode_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-a65c7007"]]);
|
|
7
7
|
export { MarkdownCode_default as default };
|
|
@@ -9,8 +9,4 @@
|
|
|
9
9
|
.o-markdown-body blockquote .o-md-code {
|
|
10
10
|
border-radius: var(--o-md-radius);
|
|
11
11
|
border: 1px solid var(--o-color-control4);
|
|
12
|
-
}
|
|
13
|
-
.o-markdown-body .custom-block .o-md-code {
|
|
14
|
-
border-radius: var(--o-md-radius);
|
|
15
|
-
border: 1px solid var(--o-color-control4);
|
|
16
12
|
}
|