@opendesign-plus-test/components 0.0.1-rc.267 → 0.0.1-rc.268
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/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/components/ArticleAnchorPad.vue.d.ts +6 -2
- package/dist/components/article-anchor/index.d.ts +9 -9
- 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/doc-layout/ODocLayout.vue.d.ts +4 -8
- package/dist/components/doc-layout/index.d.ts +0 -9
- 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/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-doc-result/OSearchDocResult.vue.d.ts +0 -2
- package/dist/components/search-doc-result/index.d.ts +0 -6
- 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/OAppHeader.vue.d.ts +1 -0
- package/dist/components/user-center/index.d.ts +21 -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 +1736 -1840
- package/dist/index.d.ts +0 -1
- 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/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_ccc0d33c_lang.css +47 -0
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPad.mjs +2 -2
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPad.vue.d.ts +6 -2
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPad.vue_vue_type_script_setup_true_lang.mjs +18 -10
- package/dist/treeshaking/components/article-anchor/components/{ArticleAnchorPad.vue_vue_type_style_index_0_scoped_2ae25d23_lang.css → ArticleAnchorPad.vue_vue_type_style_index_0_scoped_3c75b66d_lang.css} +13 -13
- package/dist/treeshaking/components/article-anchor/index.d.ts +9 -9
- package/dist/treeshaking/components/article-pagination/OArticlePagination.mjs +2 -2
- package/dist/treeshaking/components/article-pagination/{OArticlePagination.vue_vue_type_style_index_0_scoped_56848f78_lang.css → OArticlePagination.vue_vue_type_style_index_0_scoped_8a8cf9f8_lang.css} +59 -46
- 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/doc-layout/ODocLayout.mjs +2 -2
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue.d.ts +4 -8
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue_vue_type_script_setup_true_lang.mjs +24 -29
- package/dist/treeshaking/components/doc-layout/{ODocLayout.vue_vue_type_style_index_0_scoped_b4aff4ce_lang.css → ODocLayout.vue_vue_type_style_index_0_scoped_966cd0b4_lang.css} +46 -66
- package/dist/treeshaking/components/doc-layout/index.d.ts +0 -9
- package/dist/treeshaking/components/events/index.d.ts +20 -20
- 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_9cd74070_lang.css +290 -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.mjs +11 -1
- package/dist/treeshaking/components/logo-swiper/index.d.ts +11 -11
- package/dist/treeshaking/components/markdown/OMarkdown.vue_vue_type_style_index_0_lang.css +12 -12
- 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-doc-result/OSearchDocResult.mjs +2 -2
- package/dist/treeshaking/components/search-doc-result/OSearchDocResult.vue.d.ts +0 -2
- package/dist/treeshaking/components/search-doc-result/OSearchDocResult.vue_vue_type_script_setup_true_lang.mjs +3 -7
- package/dist/treeshaking/components/search-doc-result/{OSearchDocResult.vue_vue_type_style_index_0_scoped_9eb9bdd4_lang.css → OSearchDocResult.vue_vue_type_style_index_0_scoped_25235996_lang.css} +31 -31
- package/dist/treeshaking/components/search-doc-result/index.d.ts +0 -6
- package/dist/treeshaking/components/search-result/OSearchResult.mjs +2 -2
- package/dist/treeshaking/components/search-result/OSearchResult.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/treeshaking/components/search-result/{OSearchResult.vue_vue_type_style_index_0_scoped_a8453c65_lang.css → OSearchResult.vue_vue_type_style_index_0_scoped_9d8dd556_lang.css} +30 -30
- package/dist/treeshaking/components/search-result/OSearchResultHeader.mjs +2 -2
- package/dist/treeshaking/components/search-result/OSearchResultHeader.vue.d.ts +24 -24
- package/dist/treeshaking/components/search-result/OSearchResultHeader.vue_vue_type_script_setup_true_lang.mjs +3 -2
- package/dist/treeshaking/components/search-result/{OSearchResultHeader.vue_vue_type_style_index_0_scoped_48a10021_lang.css → OSearchResultHeader.vue_vue_type_style_index_0_scoped_70bc0c95_lang.css} +33 -33
- package/dist/treeshaking/components/search-result/OSearchResultItem.mjs +2 -2
- package/dist/treeshaking/components/search-result/{OSearchResultItem.vue_vue_type_style_index_0_scoped_418a332e_lang.css → OSearchResultItem.vue_vue_type_style_index_0_scoped_0914fdb7_lang.css} +40 -40
- package/dist/treeshaking/components/search-result/components/OSearchResultFeedback.mjs +2 -2
- package/dist/treeshaking/components/search-result/components/OSearchResultFeedback.vue_vue_type_script_setup_true_lang.mjs +2 -5
- package/dist/treeshaking/components/search-result/components/{OSearchResultFeedback.vue_vue_type_style_index_0_scoped_179b412f_lang.css → OSearchResultFeedback.vue_vue_type_style_index_0_scoped_72958e79_lang.css} +30 -30
- package/dist/treeshaking/components/search-result/components/OSearchResultFeedbackBanner.mjs +2 -2
- package/dist/treeshaking/components/search-result/components/OSearchResultFeedbackBanner.vue_vue_type_script_setup_true_lang.mjs +2 -5
- package/dist/treeshaking/components/search-result/components/{OSearchResultFeedbackBanner.vue_vue_type_style_index_0_scoped_33f2c617_lang.css → OSearchResultFeedbackBanner.vue_vue_type_style_index_0_scoped_4cd638c6_lang.css} +38 -38
- 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/OAppHeader.mjs +2 -2
- package/dist/treeshaking/components/user-center/OAppHeader.vue.d.ts +1 -0
- package/dist/treeshaking/components/user-center/OAppHeader.vue_vue_type_script_setup_true_lang.mjs +7 -1
- package/dist/treeshaking/components/user-center/{OAppHeader.vue_vue_type_style_index_0_scoped_c5aea772_lang.css → OAppHeader.vue_vue_type_style_index_0_scoped_ce3899a1_lang.css} +3 -3
- package/dist/treeshaking/components/user-center/OUserInfo.mjs +3 -3
- package/dist/treeshaking/components/user-center/OUserInfo.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/treeshaking/components/user-center/{OUserInfo.vue_vue_type_style_index_0_scoped_c12d3f54_lang.css → OUserInfo.vue_vue_type_style_index_0_scoped_f60dfe3e_lang.css} +109 -109
- package/dist/treeshaking/components/user-center/{OUserInfo.vue_vue_type_style_index_2_scoped_c12d3f54_lang.css → OUserInfo.vue_vue_type_style_index_2_scoped_f60dfe3e_lang.css} +4 -4
- package/dist/treeshaking/components/user-center/index.d.ts +21 -18
- package/dist/treeshaking/components/video/index.d.ts +3 -3
- package/dist/treeshaking/index.d.ts +0 -1
- package/dist/treeshaking/index.mjs +1 -2
- package/package.json +1 -1
- package/dist/components/community-updates/OCommunityUpdates.vue.d.ts +0 -46
- package/dist/components/community-updates/OCommunityUpdatesCard.vue.d.ts +0 -7
- package/dist/components/community-updates/index.d.ts +0 -91
- package/dist/components/community-updates/types.d.ts +0 -36
- package/dist/components/meeting/components/OMeetingCalendarSelector.vue.d.ts +0 -664
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.vue_vue_type_style_index_0_scoped_8190c89e_lang.css +0 -47
- package/dist/treeshaking/components/community-updates/OCommunityUpdates.mjs +0 -6
- package/dist/treeshaking/components/community-updates/OCommunityUpdates.vue.d.ts +0 -46
- package/dist/treeshaking/components/community-updates/OCommunityUpdates.vue_vue_type_script_setup_true_lang.mjs +0 -100
- package/dist/treeshaking/components/community-updates/OCommunityUpdates.vue_vue_type_style_index_0_scoped_cab17fde_lang.css +0 -123
- package/dist/treeshaking/components/community-updates/OCommunityUpdatesCard.mjs +0 -5
- package/dist/treeshaking/components/community-updates/OCommunityUpdatesCard.vue.d.ts +0 -7
- package/dist/treeshaking/components/community-updates/OCommunityUpdatesCard.vue_vue_type_script_setup_true_lang.mjs +0 -49
- package/dist/treeshaking/components/community-updates/OCommunityUpdatesCard.vue_vue_type_style_index_0_lang.css +0 -130
- package/dist/treeshaking/components/community-updates/index.d.ts +0 -91
- package/dist/treeshaking/components/community-updates/index.mjs +0 -10
- package/dist/treeshaking/components/community-updates/types.d.ts +0 -36
- package/dist/treeshaking/components/html-viewer/OHtmlViewer.vue_vue_type_style_index_0_scoped_2f5d08df_lang.css +0 -196
- package/dist/treeshaking/components/meeting/components/OMeetingCalendarSelector.vue.d.ts +0 -664
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
declare const OHeader: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').NavT> & Readonly<{
|
|
4
4
|
"onHandle-click"?: ((val: any) => any) | undefined;
|
|
5
5
|
"onNav-layout"?: ((val: any) => any) | undefined;
|
|
6
6
|
"onGo-home"?: (() => any) | undefined;
|
|
@@ -19,7 +19,7 @@ declare const OHeader: {
|
|
|
19
19
|
C: {};
|
|
20
20
|
M: {};
|
|
21
21
|
Defaults: {};
|
|
22
|
-
}, Readonly<import('
|
|
22
|
+
}, Readonly<import('./types').NavT> & Readonly<{
|
|
23
23
|
"onHandle-click"?: ((val: any) => any) | undefined;
|
|
24
24
|
"onNav-layout"?: ((val: any) => any) | undefined;
|
|
25
25
|
"onGo-home"?: (() => any) | undefined;
|
|
@@ -29,7 +29,7 @@ declare const OHeader: {
|
|
|
29
29
|
__isFragment?: never;
|
|
30
30
|
__isTeleport?: never;
|
|
31
31
|
__isSuspense?: never;
|
|
32
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('
|
|
32
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./types').NavT> & Readonly<{
|
|
33
33
|
"onHandle-click"?: ((val: any) => any) | undefined;
|
|
34
34
|
"onNav-layout"?: ((val: any) => any) | undefined;
|
|
35
35
|
"onGo-home"?: (() => any) | undefined;
|
|
@@ -50,15 +50,15 @@ declare const OHeader: {
|
|
|
50
50
|
install(app: App): void;
|
|
51
51
|
};
|
|
52
52
|
declare const OHeaderMobile: {
|
|
53
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('
|
|
54
|
-
"onHandle-click"?: ((val: import('
|
|
53
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').NavT> & Readonly<{
|
|
54
|
+
"onHandle-click"?: ((val: import('./types').NavItemT) => any) | undefined;
|
|
55
55
|
"onGo-home"?: (() => any) | undefined;
|
|
56
|
-
"onLang-click"?: ((val: import('
|
|
56
|
+
"onLang-click"?: ((val: import('./types').LangItemT) => any) | undefined;
|
|
57
57
|
"onGo-back"?: (() => any) | undefined;
|
|
58
58
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
59
|
-
"handle-click": (val: import('
|
|
59
|
+
"handle-click": (val: import('./types').NavItemT) => any;
|
|
60
60
|
"go-home": () => any;
|
|
61
|
-
"lang-click": (val: import('
|
|
61
|
+
"lang-click": (val: import('./types').LangItemT) => any;
|
|
62
62
|
"go-back": () => any;
|
|
63
63
|
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
64
64
|
mobileNav: ({
|
|
@@ -66,14 +66,14 @@ declare const OHeaderMobile: {
|
|
|
66
66
|
$data: {};
|
|
67
67
|
$props: {
|
|
68
68
|
readonly menuShow: boolean;
|
|
69
|
-
readonly navData: import('
|
|
70
|
-
readonly codeData?: import('
|
|
71
|
-
readonly langData?: import('
|
|
69
|
+
readonly navData: import('./types').NavItemT[];
|
|
70
|
+
readonly codeData?: import('./types').CodeT | undefined;
|
|
71
|
+
readonly langData?: import('./types').LangT | undefined;
|
|
72
72
|
readonly activeIndex: string | number;
|
|
73
73
|
readonly community?: string | undefined;
|
|
74
74
|
readonly "onHandle-click"?: ((val: any) => any) | undefined;
|
|
75
75
|
readonly "onOn-click"?: (() => any) | undefined;
|
|
76
|
-
readonly "onLang-click"?: ((val: import('
|
|
76
|
+
readonly "onLang-click"?: ((val: import('./types').LangItemT) => any) | undefined;
|
|
77
77
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
78
78
|
$attrs: import('vue').Attrs;
|
|
79
79
|
$refs: {
|
|
@@ -85,18 +85,18 @@ declare const OHeaderMobile: {
|
|
|
85
85
|
$root: import('vue').ComponentPublicInstance | null;
|
|
86
86
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
87
87
|
$host: Element | null;
|
|
88
|
-
$emit: ((event: "handle-click", val: any) => void) & ((event: "on-click") => void) & ((event: "lang-click", val: import('
|
|
88
|
+
$emit: ((event: "handle-click", val: any) => void) & ((event: "on-click") => void) & ((event: "lang-click", val: import('./types').LangItemT) => void);
|
|
89
89
|
$el: HTMLDivElement;
|
|
90
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('
|
|
90
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('./types').NavMobileItemT> & Readonly<{
|
|
91
91
|
"onHandle-click"?: ((val: any) => any) | undefined;
|
|
92
92
|
"onOn-click"?: (() => any) | undefined;
|
|
93
|
-
"onLang-click"?: ((val: import('
|
|
93
|
+
"onLang-click"?: ((val: import('./types').LangItemT) => any) | undefined;
|
|
94
94
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
95
95
|
"handle-click": (val: any) => any;
|
|
96
96
|
"on-click": () => any;
|
|
97
|
-
"lang-click": (val: import('
|
|
97
|
+
"lang-click": (val: import('./types').LangItemT) => any;
|
|
98
98
|
}, string, {
|
|
99
|
-
navData: import('
|
|
99
|
+
navData: import('./types').NavItemT[];
|
|
100
100
|
menuShow: boolean;
|
|
101
101
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
102
102
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -119,12 +119,12 @@ declare const OHeaderMobile: {
|
|
|
119
119
|
$nextTick: typeof import('vue').nextTick;
|
|
120
120
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
121
121
|
} & Readonly<{
|
|
122
|
-
navData: import('
|
|
122
|
+
navData: import('./types').NavItemT[];
|
|
123
123
|
menuShow: boolean;
|
|
124
|
-
}> & Omit<Readonly<import('
|
|
124
|
+
}> & Omit<Readonly<import('./types').NavMobileItemT> & Readonly<{
|
|
125
125
|
"onHandle-click"?: ((val: any) => any) | undefined;
|
|
126
126
|
"onOn-click"?: (() => any) | undefined;
|
|
127
|
-
"onLang-click"?: ((val: import('
|
|
127
|
+
"onLang-click"?: ((val: import('./types').LangItemT) => any) | undefined;
|
|
128
128
|
}>, "navData" | "menuShow"> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
129
129
|
$slots: {
|
|
130
130
|
tool?(_: {}): any;
|
|
@@ -137,24 +137,24 @@ declare const OHeaderMobile: {
|
|
|
137
137
|
C: {};
|
|
138
138
|
M: {};
|
|
139
139
|
Defaults: {};
|
|
140
|
-
}, Readonly<import('
|
|
141
|
-
"onHandle-click"?: ((val: import('
|
|
140
|
+
}, Readonly<import('./types').NavT> & Readonly<{
|
|
141
|
+
"onHandle-click"?: ((val: import('./types').NavItemT) => any) | undefined;
|
|
142
142
|
"onGo-home"?: (() => any) | undefined;
|
|
143
|
-
"onLang-click"?: ((val: import('
|
|
143
|
+
"onLang-click"?: ((val: import('./types').LangItemT) => any) | undefined;
|
|
144
144
|
"onGo-back"?: (() => any) | undefined;
|
|
145
145
|
}>, {}, {}, {}, {}, {}>;
|
|
146
146
|
__isFragment?: never;
|
|
147
147
|
__isTeleport?: never;
|
|
148
148
|
__isSuspense?: never;
|
|
149
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('
|
|
150
|
-
"onHandle-click"?: ((val: import('
|
|
149
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./types').NavT> & Readonly<{
|
|
150
|
+
"onHandle-click"?: ((val: import('./types').NavItemT) => any) | undefined;
|
|
151
151
|
"onGo-home"?: (() => any) | undefined;
|
|
152
|
-
"onLang-click"?: ((val: import('
|
|
152
|
+
"onLang-click"?: ((val: import('./types').LangItemT) => any) | undefined;
|
|
153
153
|
"onGo-back"?: (() => any) | undefined;
|
|
154
154
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
155
|
-
"handle-click": (val: import('
|
|
155
|
+
"handle-click": (val: import('./types').NavItemT) => any;
|
|
156
156
|
"go-home": () => any;
|
|
157
|
-
"lang-click": (val: import('
|
|
157
|
+
"lang-click": (val: import('./types').LangItemT) => any;
|
|
158
158
|
"go-back": () => any;
|
|
159
159
|
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
160
160
|
$slots: {
|
|
@@ -20,8 +20,8 @@ declare const OHeaderSearch: {
|
|
|
20
20
|
imageUrl: string;
|
|
21
21
|
enableImageSearch: boolean;
|
|
22
22
|
maxImageSize: number;
|
|
23
|
-
onestepItems: import('
|
|
24
|
-
suggestItems: import('
|
|
23
|
+
onestepItems: import('../search').OSearchRecommendItem[];
|
|
24
|
+
suggestItems: import('../search').OSearchRecommendItem[];
|
|
25
25
|
recommendItems: string[];
|
|
26
26
|
historyItems: string[];
|
|
27
27
|
hotItems: string[];
|
|
@@ -46,7 +46,7 @@ declare const OHeaderSearch: {
|
|
|
46
46
|
readonly imagePlaceholder?: string | undefined;
|
|
47
47
|
readonly size?: "small" | "medium" | "large" | undefined;
|
|
48
48
|
readonly enableImageSearch?: boolean | undefined;
|
|
49
|
-
readonly uploadImage?: import('
|
|
49
|
+
readonly uploadImage?: import('../search').OSearchUploadImageFn | undefined;
|
|
50
50
|
readonly maxImageSize?: number | undefined;
|
|
51
51
|
readonly imageUploadTooltip?: string | undefined;
|
|
52
52
|
readonly expanded?: boolean | undefined;
|
|
@@ -509,8 +509,8 @@ declare const OHeaderSearch: {
|
|
|
509
509
|
imageUrl: string;
|
|
510
510
|
enableImageSearch: boolean;
|
|
511
511
|
maxImageSize: number;
|
|
512
|
-
onestepItems: import('
|
|
513
|
-
suggestItems: import('
|
|
512
|
+
onestepItems: import('../search').OSearchRecommendItem[];
|
|
513
|
+
suggestItems: import('../search').OSearchRecommendItem[];
|
|
514
514
|
recommendItems: string[];
|
|
515
515
|
historyItems: string[];
|
|
516
516
|
hotItems: string[];
|
|
@@ -546,8 +546,8 @@ declare const OHeaderSearch: {
|
|
|
546
546
|
imageUrl: string;
|
|
547
547
|
enableImageSearch: boolean;
|
|
548
548
|
maxImageSize: number;
|
|
549
|
-
onestepItems: import('
|
|
550
|
-
suggestItems: import('
|
|
549
|
+
onestepItems: import('../search').OSearchRecommendItem[];
|
|
550
|
+
suggestItems: import('../search').OSearchRecommendItem[];
|
|
551
551
|
recommendItems: string[];
|
|
552
552
|
historyItems: string[];
|
|
553
553
|
hotItems: string[];
|
|
@@ -573,8 +573,8 @@ declare const OHeaderSearch: {
|
|
|
573
573
|
recommendItems: string[];
|
|
574
574
|
historyItems: string[];
|
|
575
575
|
hotItems: string[];
|
|
576
|
-
suggestItems: import('
|
|
577
|
-
onestepItems: import('
|
|
576
|
+
suggestItems: import('../search').OSearchRecommendItem[];
|
|
577
|
+
onestepItems: import('../search').OSearchRecommendItem[];
|
|
578
578
|
keyword: string;
|
|
579
579
|
}): any;
|
|
580
580
|
'recommend-header'?(_: {
|
|
@@ -584,17 +584,17 @@ declare const OHeaderSearch: {
|
|
|
584
584
|
items: string[];
|
|
585
585
|
}): any;
|
|
586
586
|
'onestep-header'?(_: {
|
|
587
|
-
items: import('
|
|
587
|
+
items: import('../search').OSearchRecommendItem[];
|
|
588
588
|
}): any;
|
|
589
589
|
'onestep-content'?(_: {
|
|
590
|
-
items: import('
|
|
590
|
+
items: import('../search').OSearchRecommendItem[];
|
|
591
591
|
keyword: string;
|
|
592
592
|
}): any;
|
|
593
593
|
'suggest-header'?(_: {
|
|
594
|
-
items: import('
|
|
594
|
+
items: import('../search').OSearchRecommendItem[];
|
|
595
595
|
}): any;
|
|
596
596
|
'suggest-content'?(_: {
|
|
597
|
-
items: import('
|
|
597
|
+
items: import('../search').OSearchRecommendItem[];
|
|
598
598
|
keyword: string;
|
|
599
599
|
}): any;
|
|
600
600
|
'history-header'?(_: {
|
|
@@ -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_9cd74070_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-9cd74070"]]);
|
|
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,290 @@
|
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-9cd74070] {
|
|
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-9cd74070] {
|
|
6
|
+
transform: rotate(-180deg);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
.o-html-viewer[data-v-9cd74070] {
|
|
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-9cd74070] {
|
|
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-9cd74070] {
|
|
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-9cd74070] {
|
|
53
|
+
--o-gap-1: 4px;
|
|
54
|
+
--o-gap-2: 8px;
|
|
55
|
+
--o-gap-3: 12px;
|
|
56
|
+
--o-gap-4: 16px;
|
|
57
|
+
--o-gap-5: 24px;
|
|
58
|
+
--o-gap-6: 28px;
|
|
59
|
+
--o-gap-7: 12px;
|
|
60
|
+
--o-gap-8: 24px;
|
|
61
|
+
--o-gap-9: 32px;
|
|
62
|
+
--o-gap-10: 32px;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
@media (max-width: 600px) {
|
|
66
|
+
.o-html-viewer[data-v-9cd74070] {
|
|
67
|
+
--o-gap-1: 4px;
|
|
68
|
+
--o-gap-2: 8px;
|
|
69
|
+
--o-gap-3: 12px;
|
|
70
|
+
--o-gap-4: 16px;
|
|
71
|
+
--o-gap-5: 24px;
|
|
72
|
+
--o-gap-6: 28px;
|
|
73
|
+
--o-gap-7: 12px;
|
|
74
|
+
--o-gap-8: 24px;
|
|
75
|
+
--o-gap-9: 32px;
|
|
76
|
+
--o-gap-10: 32px;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
.o-html-viewer__status[data-v-9cd74070] {
|
|
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-9cd74070] {
|
|
90
|
+
color: var(--o-color-info3);
|
|
91
|
+
}
|
|
92
|
+
.o-html-viewer__body[data-v-9cd74070] {
|
|
93
|
+
max-width: 880px;
|
|
94
|
+
margin: 0 auto;
|
|
95
|
+
font-size: var(--doc-base-size, 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-9cd74070] .title_content {
|
|
103
|
+
color: var(--o-color-info1);
|
|
104
|
+
margin-bottom: 1rem;
|
|
105
|
+
}
|
|
106
|
+
.o-html-viewer__body[data-v-9cd74070] .body_content {
|
|
107
|
+
padding: 0;
|
|
108
|
+
}
|
|
109
|
+
.o-html-viewer__body[data-v-9cd74070] [style*='font-family' i] {
|
|
110
|
+
font-family: inherit !important;
|
|
111
|
+
}
|
|
112
|
+
.o-html-viewer__body[data-v-9cd74070] .list_title {
|
|
113
|
+
font-size: var(--o-font_size-h3, 22px);
|
|
114
|
+
}
|
|
115
|
+
.o-html-viewer__body[data-v-9cd74070] .ropa_base_information .content {
|
|
116
|
+
padding-left: 0;
|
|
117
|
+
}
|
|
118
|
+
.o-html-viewer__body[data-v-9cd74070] .ropa_base_information .content ul, .o-html-viewer__body[data-v-9cd74070] .ropa_base_information .content ol {
|
|
119
|
+
padding-left: 0;
|
|
120
|
+
}
|
|
121
|
+
.o-html-viewer__body[data-v-9cd74070] :where(h1),
|
|
122
|
+
.o-html-viewer__body[data-v-9cd74070] .title_content {
|
|
123
|
+
font-weight: bold;
|
|
124
|
+
text-align: center;
|
|
125
|
+
margin: var(--o-gap-6, 32px) 0 var(--doc-title-border-bottom-gap, var(--o-gap-6, 32px));
|
|
126
|
+
padding-bottom: var(--doc-title-border-top-gap, var(--o-gap-6, 32px));
|
|
127
|
+
border-bottom: 1px solid var(--o-color-control4);
|
|
128
|
+
font-size: var(--doc-title-size, 32px);
|
|
129
|
+
line-height: 44px;
|
|
130
|
+
}
|
|
131
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
132
|
+
.o-html-viewer__body[data-v-9cd74070] :where(h1),
|
|
133
|
+
.o-html-viewer__body[data-v-9cd74070] .title_content {
|
|
134
|
+
font-size: 20px;
|
|
135
|
+
line-height: 28px;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
139
|
+
.o-html-viewer__body[data-v-9cd74070] :where(h1),
|
|
140
|
+
.o-html-viewer__body[data-v-9cd74070] .title_content {
|
|
141
|
+
font-size: 20px;
|
|
142
|
+
line-height: 28px;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
@media (min-width: 601px) and (max-width: 840px) {
|
|
146
|
+
.o-html-viewer__body[data-v-9cd74070] :where(h1),
|
|
147
|
+
.o-html-viewer__body[data-v-9cd74070] .title_content {
|
|
148
|
+
font-size: 18px;
|
|
149
|
+
line-height: 26px;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
@media (max-width: 600px) {
|
|
153
|
+
.o-html-viewer__body[data-v-9cd74070] :where(h1),
|
|
154
|
+
.o-html-viewer__body[data-v-9cd74070] .title_content {
|
|
155
|
+
font-size: 16px;
|
|
156
|
+
line-height: 24px;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
.o-html-viewer__body[data-v-9cd74070] :where(h2) {
|
|
160
|
+
font-size: 18px;
|
|
161
|
+
font-weight: bold;
|
|
162
|
+
color: var(--o-color-primary1);
|
|
163
|
+
padding-bottom: 0.3rem;
|
|
164
|
+
line-height: 1.4;
|
|
165
|
+
}
|
|
166
|
+
.o-html-viewer__body[data-v-9cd74070] :where(h3) {
|
|
167
|
+
font-size: 16px;
|
|
168
|
+
font-weight: bold;
|
|
169
|
+
color: var(--o-color-info1);
|
|
170
|
+
margin: 1.8rem 0 0.8rem;
|
|
171
|
+
line-height: 1.5;
|
|
172
|
+
}
|
|
173
|
+
.o-html-viewer__body[data-v-9cd74070] :where(h4) {
|
|
174
|
+
font-size: 15px;
|
|
175
|
+
font-weight: bold;
|
|
176
|
+
color: var(--o-color-info1);
|
|
177
|
+
margin: 1.5rem 0 0.6rem;
|
|
178
|
+
line-height: 1.5;
|
|
179
|
+
}
|
|
180
|
+
.o-html-viewer__body[data-v-9cd74070] :where(h5) {
|
|
181
|
+
font-size: 14px;
|
|
182
|
+
font-weight: bold;
|
|
183
|
+
color: var(--o-color-info1);
|
|
184
|
+
margin: 1.2rem 0 0.5rem;
|
|
185
|
+
line-height: 1.5;
|
|
186
|
+
}
|
|
187
|
+
.o-html-viewer__body[data-v-9cd74070] :where(h6) {
|
|
188
|
+
font-size: 14px;
|
|
189
|
+
font-weight: bold;
|
|
190
|
+
color: var(--o-color-info2);
|
|
191
|
+
margin: 1rem 0 0.4rem;
|
|
192
|
+
line-height: 1.5;
|
|
193
|
+
}
|
|
194
|
+
.o-html-viewer__body[data-v-9cd74070] :where(p) {
|
|
195
|
+
margin: 0.4rem 0;
|
|
196
|
+
text-align: justify;
|
|
197
|
+
}
|
|
198
|
+
.o-html-viewer__body[data-v-9cd74070] :where(a) {
|
|
199
|
+
color: var(--o-color-primary1);
|
|
200
|
+
}
|
|
201
|
+
.o-html-viewer__body[data-v-9cd74070] :where(h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p) {
|
|
202
|
+
text-indent: 0;
|
|
203
|
+
}
|
|
204
|
+
.o-html-viewer__body[data-v-9cd74070] :where(.table-wrap) {
|
|
205
|
+
overflow-x: auto;
|
|
206
|
+
margin: 1rem 0;
|
|
207
|
+
-webkit-overflow-scrolling: touch;
|
|
208
|
+
}
|
|
209
|
+
.o-html-viewer__body[data-v-9cd74070] :where(table) {
|
|
210
|
+
border-collapse: collapse;
|
|
211
|
+
width: 100%;
|
|
212
|
+
font-size: 13px;
|
|
213
|
+
}
|
|
214
|
+
.o-html-viewer__body[data-v-9cd74070] :where(th, td) {
|
|
215
|
+
border: 1px solid var(--o-color-control1);
|
|
216
|
+
padding: 6px 10px;
|
|
217
|
+
text-align: left;
|
|
218
|
+
vertical-align: top;
|
|
219
|
+
}
|
|
220
|
+
.o-html-viewer__body[data-v-9cd74070] :where(th) {
|
|
221
|
+
background-color: var(--o-color-fill2);
|
|
222
|
+
font-weight: bold;
|
|
223
|
+
text-align: center;
|
|
224
|
+
}
|
|
225
|
+
.o-html-viewer__body[data-v-9cd74070] :where(tr:nth-child(even)) {
|
|
226
|
+
background-color: var(--o-color-fill3);
|
|
227
|
+
}
|
|
228
|
+
.o-html-viewer__body[data-v-9cd74070] :where(td p, th p) {
|
|
229
|
+
text-indent: 0;
|
|
230
|
+
margin: 0.2rem 0;
|
|
231
|
+
}
|
|
232
|
+
.o-html-viewer__body[data-v-9cd74070] :where(ul, ol) {
|
|
233
|
+
padding-left: 2em;
|
|
234
|
+
margin: 0.5rem 0;
|
|
235
|
+
}
|
|
236
|
+
.o-html-viewer__body[data-v-9cd74070] :where(li) {
|
|
237
|
+
margin-bottom: 0.3rem;
|
|
238
|
+
}
|
|
239
|
+
.o-html-viewer__body[data-v-9cd74070] :where(li p) {
|
|
240
|
+
text-indent: 0;
|
|
241
|
+
}
|
|
242
|
+
.o-html-viewer__body[data-v-9cd74070] :where(img) {
|
|
243
|
+
max-width: 100%;
|
|
244
|
+
height: auto;
|
|
245
|
+
display: block;
|
|
246
|
+
margin: 1rem auto;
|
|
247
|
+
}
|
|
248
|
+
.o-html-viewer__body[data-v-9cd74070] :where(code) {
|
|
249
|
+
font-family: var(--doc-font-mono, "Consolas", "Courier New", monospace) !important;
|
|
250
|
+
background: var(--o-color-fill3);
|
|
251
|
+
padding: 1px 4px;
|
|
252
|
+
border-radius: 2px;
|
|
253
|
+
font-size: 0.9em;
|
|
254
|
+
}
|
|
255
|
+
.o-html-viewer__body[data-v-9cd74070] :where(pre) {
|
|
256
|
+
font-family: var(--doc-font-mono, "Consolas", "Courier New", monospace) !important;
|
|
257
|
+
background: var(--o-color-fill3);
|
|
258
|
+
padding: 12px 16px;
|
|
259
|
+
border-radius: 4px;
|
|
260
|
+
overflow-x: auto;
|
|
261
|
+
font-size: 13px;
|
|
262
|
+
line-height: 1.5;
|
|
263
|
+
margin: 0.8rem 0;
|
|
264
|
+
max-width: 100%;
|
|
265
|
+
-webkit-overflow-scrolling: touch;
|
|
266
|
+
}
|
|
267
|
+
.o-html-viewer__body[data-v-9cd74070] :where(pre code) {
|
|
268
|
+
background: none;
|
|
269
|
+
padding: 0;
|
|
270
|
+
}
|
|
271
|
+
.o-html-viewer__body[data-v-9cd74070] :where(blockquote) {
|
|
272
|
+
border-left: 3px solid var(--o-color-primary1);
|
|
273
|
+
margin: 0.8rem 0;
|
|
274
|
+
padding: 0.5rem 1rem;
|
|
275
|
+
color: var(--o-color-info2);
|
|
276
|
+
background: var(--o-color-fill2);
|
|
277
|
+
}
|
|
278
|
+
.o-html-viewer__body[data-v-9cd74070] :where(blockquote p) {
|
|
279
|
+
text-indent: 0;
|
|
280
|
+
}
|
|
281
|
+
.o-html-viewer__body[data-v-9cd74070] :where(hr) {
|
|
282
|
+
border: none;
|
|
283
|
+
border-top: 1px solid var(--o-color-control4);
|
|
284
|
+
margin: 1.5rem 0;
|
|
285
|
+
}
|
|
286
|
+
@media (max-width: 840px) {
|
|
287
|
+
.o-html-viewer__body[data-v-9cd74070] {
|
|
288
|
+
padding: 24px 16px;
|
|
289
|
+
}
|
|
290
|
+
}
|
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
|
+
}
|
|
@@ -50,6 +50,16 @@ 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
|
+
/**
|
|
53
63
|
* 解析完整 HTML 文档:
|
|
54
64
|
* 1. 提取所有 `<style>` 块,将选择器限定在 scope 内后合并为 CSS 文本;
|
|
55
65
|
* 2. 提取 `<body>` 内容(无 body 标签时使用原文),并移除其中的 style 块;
|
|
@@ -60,7 +70,7 @@ function scopeCss(css, scope) {
|
|
|
60
70
|
*/
|
|
61
71
|
function parseHtml(text, scope) {
|
|
62
72
|
const styleParts = [];
|
|
63
|
-
for (const m of text.matchAll(/<style[^>]*>([\s\S]*?)<\/style>/gi)) styleParts.push(scopeCss(m[1], scope));
|
|
73
|
+
for (const m of text.matchAll(/<style[^>]*>([\s\S]*?)<\/style>/gi)) styleParts.push(scopeCss(neutralizeStyleClose(m[1]), scope));
|
|
64
74
|
const bodyMatch = text.match(/<body[^>]*>([\s\S]*?)<\/body>/i);
|
|
65
75
|
let rawBody = bodyMatch ? bodyMatch[1] : text;
|
|
66
76
|
rawBody = rawBody.replace(/<style[^>]*>[\s\S]*?<\/style>/gi, "");
|
|
@@ -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";
|
|
@@ -340,13 +340,13 @@
|
|
|
340
340
|
.o-markdown-body {
|
|
341
341
|
--o-gap-1: 4px;
|
|
342
342
|
--o-gap-2: 8px;
|
|
343
|
-
--o-gap-3:
|
|
344
|
-
--o-gap-4:
|
|
345
|
-
--o-gap-5:
|
|
346
|
-
--o-gap-6:
|
|
343
|
+
--o-gap-3: 12px;
|
|
344
|
+
--o-gap-4: 16px;
|
|
345
|
+
--o-gap-5: 24px;
|
|
346
|
+
--o-gap-6: 28px;
|
|
347
347
|
--o-gap-7: 12px;
|
|
348
|
-
--o-gap-8:
|
|
349
|
-
--o-gap-9:
|
|
348
|
+
--o-gap-8: 24px;
|
|
349
|
+
--o-gap-9: 32px;
|
|
350
350
|
--o-gap-10: 32px;
|
|
351
351
|
}
|
|
352
352
|
}
|
|
@@ -354,13 +354,13 @@
|
|
|
354
354
|
.o-markdown-body {
|
|
355
355
|
--o-gap-1: 4px;
|
|
356
356
|
--o-gap-2: 8px;
|
|
357
|
-
--o-gap-3:
|
|
358
|
-
--o-gap-4:
|
|
359
|
-
--o-gap-5:
|
|
360
|
-
--o-gap-6:
|
|
357
|
+
--o-gap-3: 12px;
|
|
358
|
+
--o-gap-4: 16px;
|
|
359
|
+
--o-gap-5: 24px;
|
|
360
|
+
--o-gap-6: 28px;
|
|
361
361
|
--o-gap-7: 12px;
|
|
362
|
-
--o-gap-8:
|
|
363
|
-
--o-gap-9:
|
|
362
|
+
--o-gap-8: 24px;
|
|
363
|
+
--o-gap-9: 32px;
|
|
364
364
|
--o-gap-10: 32px;
|
|
365
365
|
}
|
|
366
366
|
}
|