@opendesign-plus-test/components 0.0.1-rc.285 → 0.0.1-rc.287
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/OArticleAnchor.vue.d.ts +176 -0
- package/dist/components/article-anchor/index.d.ts +185 -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/community-updates/OCommunityUpdates.vue.d.ts +1 -1
- package/dist/components/community-updates/index.d.ts +14 -14
- package/dist/components/doc-layout/ODocLayout.vue.d.ts +5 -2
- package/dist/components/doc-layout/index.d.ts +1 -0
- 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 +1688 -1653
- package/dist/treeshaking/_virtual/~icons/components/icon-link.mjs +0 -2
- 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/components/DocTitle.mjs +2 -2
- package/dist/treeshaking/components/article/components/DocTitle.vue_vue_type_script_setup_true_lang.mjs +4 -3
- package/dist/treeshaking/components/article/components/{DocTitle.vue_vue_type_style_index_0_scoped_4ead9b6d_lang.css → DocTitle.vue_vue_type_style_index_0_scoped_d7f11be9_lang.css} +50 -50
- 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 +176 -0
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue_vue_type_script_setup_true_lang.mjs +46 -19
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue_vue_type_style_index_0_scoped_4f5aa268_lang.css +37 -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_7fff2dcb_lang.css → ArticleAnchorMobile.vue_vue_type_style_index_0_scoped_3d9befab_lang.css} +10 -13
- 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_c895f349_lang.css → ArticleAnchorPad.vue_vue_type_style_index_0_scoped_06601233_lang.css} +12 -18
- 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_a480e4e7_lang.css → ArticleAnchorPc.vue_vue_type_style_index_0_scoped_2f93d5ed_lang.css} +13 -13
- package/dist/treeshaking/components/article-anchor/index.d.ts +185 -9
- 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/doc-layout/ODocLayout.mjs +2 -2
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue.d.ts +5 -2
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue_vue_type_script_setup_true_lang.mjs +40 -7
- 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_838bc825_lang.css} +79 -51
- package/dist/treeshaking/components/doc-layout/index.d.ts +1 -0
- 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 +2 -3
- 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_2f5d08df_lang.css +196 -0
- package/dist/treeshaking/components/html-viewer/utils.d.ts +1 -1
- package/dist/treeshaking/components/html-viewer/utils.mjs +3 -22
- 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 +4 -0
- package/dist/treeshaking/components/markdown/components/{MarkdownCode.vue_vue_type_style_index_1_scoped_a65c7007_lang.css → MarkdownCode.vue_vue_type_style_index_1_scoped_e878a7c0_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/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_f993da8c_lang.css} +30 -30
- 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_dcc5e0d5_lang.css +0 -18
- package/dist/treeshaking/components/html-viewer/OHtmlViewer.vue_vue_type_style_index_0_scoped_36fc9311_lang.css +0 -318
- package/dist/treeshaking/components/html-viewer/OHtmlViewer.vue_vue_type_style_index_1_lang.css +0 -20
|
@@ -5,8 +5,8 @@ declare const OArticle: {
|
|
|
5
5
|
headerBg?: string;
|
|
6
6
|
tags?: string[];
|
|
7
7
|
community?: string;
|
|
8
|
-
prev?: import('
|
|
9
|
-
next?: import('
|
|
8
|
+
prev?: import('../../index').OArticlePaginationItemT | null;
|
|
9
|
+
next?: import('../../index').OArticlePaginationItemT | null;
|
|
10
10
|
type?: "article" | "doc";
|
|
11
11
|
disableH2?: boolean;
|
|
12
12
|
disableTable?: boolean;
|
|
@@ -21,11 +21,11 @@ declare const OArticle: {
|
|
|
21
21
|
nextLabel?: string;
|
|
22
22
|
radius?: string;
|
|
23
23
|
}> & Readonly<{
|
|
24
|
-
onNavigate?: ((type: "prev" | "next", item: import('
|
|
24
|
+
onNavigate?: ((type: "prev" | "next", item: import('../../index').OArticlePaginationItemT) => any) | undefined;
|
|
25
25
|
onDownload?: (() => any) | undefined;
|
|
26
26
|
onCollect?: (() => any) | undefined;
|
|
27
27
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
28
|
-
navigate: (type: "prev" | "next", item: import('
|
|
28
|
+
navigate: (type: "prev" | "next", item: import('../../index').OArticlePaginationItemT) => any;
|
|
29
29
|
download: () => any;
|
|
30
30
|
collect: () => any;
|
|
31
31
|
}, import('vue').PublicProps, {
|
|
@@ -34,8 +34,8 @@ declare const OArticle: {
|
|
|
34
34
|
disableTable: boolean;
|
|
35
35
|
disableImg: boolean;
|
|
36
36
|
disableCode: boolean;
|
|
37
|
-
prev: import('
|
|
38
|
-
next: import('
|
|
37
|
+
prev: import('../../index').OArticlePaginationItemT | null;
|
|
38
|
+
next: import('../../index').OArticlePaginationItemT | null;
|
|
39
39
|
radius: string;
|
|
40
40
|
tags: string[];
|
|
41
41
|
enableDownload: boolean;
|
|
@@ -146,8 +146,8 @@ declare const OArticle: {
|
|
|
146
146
|
headerBg?: string;
|
|
147
147
|
tags?: string[];
|
|
148
148
|
community?: string;
|
|
149
|
-
prev?: import('
|
|
150
|
-
next?: import('
|
|
149
|
+
prev?: import('../../index').OArticlePaginationItemT | null;
|
|
150
|
+
next?: import('../../index').OArticlePaginationItemT | null;
|
|
151
151
|
type?: "article" | "doc";
|
|
152
152
|
disableH2?: boolean;
|
|
153
153
|
disableTable?: boolean;
|
|
@@ -162,7 +162,7 @@ declare const OArticle: {
|
|
|
162
162
|
nextLabel?: string;
|
|
163
163
|
radius?: string;
|
|
164
164
|
}> & Readonly<{
|
|
165
|
-
onNavigate?: ((type: "prev" | "next", item: import('
|
|
165
|
+
onNavigate?: ((type: "prev" | "next", item: import('../../index').OArticlePaginationItemT) => any) | undefined;
|
|
166
166
|
onDownload?: (() => any) | undefined;
|
|
167
167
|
onCollect?: (() => any) | undefined;
|
|
168
168
|
}>, {}, {}, {}, {}, {
|
|
@@ -171,8 +171,8 @@ declare const OArticle: {
|
|
|
171
171
|
disableTable: boolean;
|
|
172
172
|
disableImg: boolean;
|
|
173
173
|
disableCode: boolean;
|
|
174
|
-
prev: import('
|
|
175
|
-
next: import('
|
|
174
|
+
prev: import('../../index').OArticlePaginationItemT | null;
|
|
175
|
+
next: import('../../index').OArticlePaginationItemT | null;
|
|
176
176
|
radius: string;
|
|
177
177
|
tags: string[];
|
|
178
178
|
enableDownload: boolean;
|
|
@@ -187,8 +187,8 @@ declare const OArticle: {
|
|
|
187
187
|
headerBg?: string;
|
|
188
188
|
tags?: string[];
|
|
189
189
|
community?: string;
|
|
190
|
-
prev?: import('
|
|
191
|
-
next?: import('
|
|
190
|
+
prev?: import('../../index').OArticlePaginationItemT | null;
|
|
191
|
+
next?: import('../../index').OArticlePaginationItemT | null;
|
|
192
192
|
type?: "article" | "doc";
|
|
193
193
|
disableH2?: boolean;
|
|
194
194
|
disableTable?: boolean;
|
|
@@ -203,11 +203,11 @@ declare const OArticle: {
|
|
|
203
203
|
nextLabel?: string;
|
|
204
204
|
radius?: string;
|
|
205
205
|
}> & Readonly<{
|
|
206
|
-
onNavigate?: ((type: "prev" | "next", item: import('
|
|
206
|
+
onNavigate?: ((type: "prev" | "next", item: import('../../index').OArticlePaginationItemT) => any) | undefined;
|
|
207
207
|
onDownload?: (() => any) | undefined;
|
|
208
208
|
onCollect?: (() => any) | undefined;
|
|
209
209
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
210
|
-
navigate: (type: "prev" | "next", item: import('
|
|
210
|
+
navigate: (type: "prev" | "next", item: import('../../index').OArticlePaginationItemT) => any;
|
|
211
211
|
download: () => any;
|
|
212
212
|
collect: () => any;
|
|
213
213
|
}, string, {
|
|
@@ -216,8 +216,8 @@ declare const OArticle: {
|
|
|
216
216
|
disableTable: boolean;
|
|
217
217
|
disableImg: boolean;
|
|
218
218
|
disableCode: boolean;
|
|
219
|
-
prev: import('
|
|
220
|
-
next: import('
|
|
219
|
+
prev: import('../../index').OArticlePaginationItemT | null;
|
|
220
|
+
next: import('../../index').OArticlePaginationItemT | null;
|
|
221
221
|
radius: string;
|
|
222
222
|
tags: string[];
|
|
223
223
|
enableDownload: boolean;
|
|
@@ -231,7 +231,7 @@ declare const OArticle: {
|
|
|
231
231
|
install(app: App): void;
|
|
232
232
|
};
|
|
233
233
|
declare const OArticleList: {
|
|
234
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('
|
|
234
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../index').ArticleListPropsT> & Readonly<{
|
|
235
235
|
"onPage-change"?: ((value: {
|
|
236
236
|
page: number;
|
|
237
237
|
pageSize: number;
|
|
@@ -242,7 +242,7 @@ declare const OArticleList: {
|
|
|
242
242
|
pageSize: number;
|
|
243
243
|
}) => any;
|
|
244
244
|
}, import('vue').PublicProps, {
|
|
245
|
-
data: import('
|
|
245
|
+
data: import('../../index').ArticleItemT[];
|
|
246
246
|
pageSizes: number[];
|
|
247
247
|
pageSize: number;
|
|
248
248
|
defaultCovers: string[];
|
|
@@ -254,13 +254,13 @@ declare const OArticleList: {
|
|
|
254
254
|
C: {};
|
|
255
255
|
M: {};
|
|
256
256
|
Defaults: {};
|
|
257
|
-
}, Readonly<import('
|
|
257
|
+
}, Readonly<import('../../index').ArticleListPropsT> & Readonly<{
|
|
258
258
|
"onPage-change"?: ((value: {
|
|
259
259
|
page: number;
|
|
260
260
|
pageSize: number;
|
|
261
261
|
}) => any) | undefined;
|
|
262
262
|
}>, {}, {}, {}, {}, {
|
|
263
|
-
data: import('
|
|
263
|
+
data: import('../../index').ArticleItemT[];
|
|
264
264
|
pageSizes: number[];
|
|
265
265
|
pageSize: number;
|
|
266
266
|
defaultCovers: string[];
|
|
@@ -269,7 +269,7 @@ declare const OArticleList: {
|
|
|
269
269
|
__isFragment?: never;
|
|
270
270
|
__isTeleport?: never;
|
|
271
271
|
__isSuspense?: never;
|
|
272
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('
|
|
272
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('../../index').ArticleListPropsT> & Readonly<{
|
|
273
273
|
"onPage-change"?: ((value: {
|
|
274
274
|
page: number;
|
|
275
275
|
pageSize: number;
|
|
@@ -280,7 +280,7 @@ declare const OArticleList: {
|
|
|
280
280
|
pageSize: number;
|
|
281
281
|
}) => any;
|
|
282
282
|
}, string, {
|
|
283
|
-
data: import('
|
|
283
|
+
data: import('../../index').ArticleItemT[];
|
|
284
284
|
pageSizes: number[];
|
|
285
285
|
pageSize: number;
|
|
286
286
|
defaultCovers: string[];
|
|
@@ -289,7 +289,7 @@ declare const OArticleList: {
|
|
|
289
289
|
$slots: Readonly<{
|
|
290
290
|
filter?: () => any;
|
|
291
291
|
card?: (props: {
|
|
292
|
-
item: import('
|
|
292
|
+
item: import('../../index').ArticleItemT;
|
|
293
293
|
index: number;
|
|
294
294
|
cover?: string;
|
|
295
295
|
}) => any;
|
|
@@ -297,7 +297,7 @@ declare const OArticleList: {
|
|
|
297
297
|
}> & {
|
|
298
298
|
filter?: () => any;
|
|
299
299
|
card?: (props: {
|
|
300
|
-
item: import('
|
|
300
|
+
item: import('../../index').ArticleItemT;
|
|
301
301
|
index: number;
|
|
302
302
|
cover?: string;
|
|
303
303
|
}) => any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
2
|
import OArticleAnchor_vue_vue_type_script_setup_true_lang_default from "./OArticleAnchor.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
|
-
import './OArticleAnchor.
|
|
3
|
+
import './OArticleAnchor.vue_vue_type_style_index_0_scoped_4f5aa268_lang.css';
|
|
4
4
|
// src/components/article-anchor/OArticleAnchor.vue
|
|
5
|
-
var OArticleAnchor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(OArticleAnchor_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var OArticleAnchor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(OArticleAnchor_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-4f5aa268"]]);
|
|
6
6
|
export { OArticleAnchor_default as default };
|
|
@@ -24,6 +24,182 @@ declare const _default: import('vue').DefineComponent<ArticleAnchorPropsT, {
|
|
|
24
24
|
pcSlotRef: HTMLDivElement;
|
|
25
25
|
padSlotRef: HTMLDivElement;
|
|
26
26
|
hiddenSlotRef: HTMLDivElement;
|
|
27
|
+
scrollerRef: ({
|
|
28
|
+
$: import('vue').ComponentInternalInstance;
|
|
29
|
+
$data: {};
|
|
30
|
+
$props: Partial<{
|
|
31
|
+
size: "medium" | "small";
|
|
32
|
+
duration: number;
|
|
33
|
+
disabledX: boolean;
|
|
34
|
+
disabledY: boolean;
|
|
35
|
+
showType: "auto" | "always" | "never" | "hover";
|
|
36
|
+
autoUpdateOnScrollSize: boolean;
|
|
37
|
+
}> & Omit<{
|
|
38
|
+
readonly size: "small" | "medium";
|
|
39
|
+
readonly duration: number;
|
|
40
|
+
readonly disabledX: boolean;
|
|
41
|
+
readonly disabledY: boolean;
|
|
42
|
+
readonly showType: "auto" | "hover" | "always" | "never";
|
|
43
|
+
readonly autoUpdateOnScrollSize: boolean;
|
|
44
|
+
readonly wrapClass?: string | {
|
|
45
|
+
[k: string]: boolean;
|
|
46
|
+
} | (string | {
|
|
47
|
+
[k: string]: boolean;
|
|
48
|
+
})[] | undefined;
|
|
49
|
+
readonly barClass?: string | {
|
|
50
|
+
[k: string]: boolean;
|
|
51
|
+
} | (string | {
|
|
52
|
+
[k: string]: boolean;
|
|
53
|
+
})[] | undefined;
|
|
54
|
+
readonly onScroll?: ((event: Event) => any) | undefined | undefined;
|
|
55
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "size" | "duration" | "disabledX" | "disabledY" | "showType" | "autoUpdateOnScrollSize">;
|
|
56
|
+
$attrs: import('vue').Attrs;
|
|
57
|
+
$refs: {
|
|
58
|
+
[x: string]: unknown;
|
|
59
|
+
} & {
|
|
60
|
+
targetRef: HTMLDivElement;
|
|
61
|
+
};
|
|
62
|
+
$slots: Readonly<{
|
|
63
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
64
|
+
}>;
|
|
65
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
66
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
67
|
+
$host: Element | null;
|
|
68
|
+
$emit: (event: "scroll", event: Event) => void;
|
|
69
|
+
$el: HTMLDivElement;
|
|
70
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
71
|
+
wrapClass: {
|
|
72
|
+
type: import('vue').PropType<string | {
|
|
73
|
+
[k: string]: boolean;
|
|
74
|
+
} | Array<{
|
|
75
|
+
[k: string]: boolean;
|
|
76
|
+
} | string>>;
|
|
77
|
+
};
|
|
78
|
+
disabledX: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
required: false;
|
|
81
|
+
};
|
|
82
|
+
disabledY: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
};
|
|
85
|
+
duration: {
|
|
86
|
+
type: NumberConstructor;
|
|
87
|
+
default: number;
|
|
88
|
+
};
|
|
89
|
+
showType: {
|
|
90
|
+
type: import('vue').PropType<"auto" | "always" | "hover" | "never">;
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
93
|
+
size: {
|
|
94
|
+
type: import('vue').PropType<import('@opensig/opendesign').ScrollerSizeT>;
|
|
95
|
+
default: string;
|
|
96
|
+
};
|
|
97
|
+
autoUpdateOnScrollSize: {
|
|
98
|
+
type: BooleanConstructor;
|
|
99
|
+
};
|
|
100
|
+
barClass: {
|
|
101
|
+
type: import('vue').PropType<string | {
|
|
102
|
+
[k: string]: boolean;
|
|
103
|
+
} | Array<{
|
|
104
|
+
[k: string]: boolean;
|
|
105
|
+
} | string>>;
|
|
106
|
+
};
|
|
107
|
+
}>> & Readonly<{
|
|
108
|
+
onScroll?: ((event: Event) => any) | undefined;
|
|
109
|
+
}>, {
|
|
110
|
+
scrollTo: (options?: ScrollToOptions | undefined) => void;
|
|
111
|
+
scrollBy: (options?: ScrollToOptions | undefined) => void;
|
|
112
|
+
getContainerEl(): HTMLElement | null;
|
|
113
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
114
|
+
scroll: (event: Event) => any;
|
|
115
|
+
}, string, {
|
|
116
|
+
size: "medium" | "small";
|
|
117
|
+
duration: number;
|
|
118
|
+
disabledX: boolean;
|
|
119
|
+
disabledY: boolean;
|
|
120
|
+
showType: "auto" | "always" | "never" | "hover";
|
|
121
|
+
autoUpdateOnScrollSize: boolean;
|
|
122
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
123
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
124
|
+
created?: (() => void) | (() => void)[];
|
|
125
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
126
|
+
mounted?: (() => void) | (() => void)[];
|
|
127
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
128
|
+
updated?: (() => void) | (() => void)[];
|
|
129
|
+
activated?: (() => void) | (() => void)[];
|
|
130
|
+
deactivated?: (() => void) | (() => void)[];
|
|
131
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
132
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
133
|
+
destroyed?: (() => void) | (() => void)[];
|
|
134
|
+
unmounted?: (() => void) | (() => void)[];
|
|
135
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
136
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
137
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
138
|
+
};
|
|
139
|
+
$forceUpdate: () => void;
|
|
140
|
+
$nextTick: typeof import('vue').nextTick;
|
|
141
|
+
$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;
|
|
142
|
+
} & Readonly<{
|
|
143
|
+
size: "medium" | "small";
|
|
144
|
+
duration: number;
|
|
145
|
+
disabledX: boolean;
|
|
146
|
+
disabledY: boolean;
|
|
147
|
+
showType: "auto" | "always" | "never" | "hover";
|
|
148
|
+
autoUpdateOnScrollSize: boolean;
|
|
149
|
+
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
150
|
+
wrapClass: {
|
|
151
|
+
type: import('vue').PropType<string | {
|
|
152
|
+
[k: string]: boolean;
|
|
153
|
+
} | Array<{
|
|
154
|
+
[k: string]: boolean;
|
|
155
|
+
} | string>>;
|
|
156
|
+
};
|
|
157
|
+
disabledX: {
|
|
158
|
+
type: BooleanConstructor;
|
|
159
|
+
required: false;
|
|
160
|
+
};
|
|
161
|
+
disabledY: {
|
|
162
|
+
type: BooleanConstructor;
|
|
163
|
+
};
|
|
164
|
+
duration: {
|
|
165
|
+
type: NumberConstructor;
|
|
166
|
+
default: number;
|
|
167
|
+
};
|
|
168
|
+
showType: {
|
|
169
|
+
type: import('vue').PropType<"auto" | "always" | "hover" | "never">;
|
|
170
|
+
default: string;
|
|
171
|
+
};
|
|
172
|
+
size: {
|
|
173
|
+
type: import('vue').PropType<import('@opensig/opendesign').ScrollerSizeT>;
|
|
174
|
+
default: string;
|
|
175
|
+
};
|
|
176
|
+
autoUpdateOnScrollSize: {
|
|
177
|
+
type: BooleanConstructor;
|
|
178
|
+
};
|
|
179
|
+
barClass: {
|
|
180
|
+
type: import('vue').PropType<string | {
|
|
181
|
+
[k: string]: boolean;
|
|
182
|
+
} | Array<{
|
|
183
|
+
[k: string]: boolean;
|
|
184
|
+
} | string>>;
|
|
185
|
+
};
|
|
186
|
+
}>> & Readonly<{
|
|
187
|
+
onScroll?: ((event: Event) => any) | undefined;
|
|
188
|
+
}>, "size" | "scrollTo" | "duration" | "disabledX" | "disabledY" | "showType" | "autoUpdateOnScrollSize" | "scrollBy" | "getContainerEl"> & {
|
|
189
|
+
scrollTo: (options?: ScrollToOptions | undefined) => void;
|
|
190
|
+
scrollBy: (options?: ScrollToOptions | undefined) => void;
|
|
191
|
+
getContainerEl: () => HTMLElement | null;
|
|
192
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
193
|
+
$slots: Readonly<{
|
|
194
|
+
default?(): any;
|
|
195
|
+
thumb?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
|
|
196
|
+
track?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
|
|
197
|
+
}> & {
|
|
198
|
+
default?(): any;
|
|
199
|
+
thumb?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
|
|
200
|
+
track?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
|
|
201
|
+
};
|
|
202
|
+
}) | null;
|
|
27
203
|
anchorRef: ({
|
|
28
204
|
$: import('vue').ComponentInternalInstance;
|
|
29
205
|
$data: {};
|
|
@@ -4,11 +4,11 @@ import ArticleAnchorPc_default from "./components/ArticleAnchorPc.mjs";
|
|
|
4
4
|
import ArticleAnchorPad_default from "./components/ArticleAnchorPad.mjs";
|
|
5
5
|
import ArticleAnchorMobile_default from "./components/ArticleAnchorMobile.mjs";
|
|
6
6
|
import { Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, onBeforeUnmount, onMounted, openBlock, ref, unref, watch, withCtx } from "vue";
|
|
7
|
-
import { OAnchor } from "@opensig/opendesign";
|
|
7
|
+
import { OAnchor, OScroller } from "@opensig/opendesign";
|
|
8
8
|
// src/components/article-anchor/OArticleAnchor.vue?vue&type=script&setup=true&lang.ts
|
|
9
9
|
var _hoisted_1 = {
|
|
10
10
|
key: 0,
|
|
11
|
-
class: "o-article-anchor
|
|
11
|
+
class: "o-article-anchor"
|
|
12
12
|
};
|
|
13
13
|
var _hoisted_2 = { class: "o-article-anchor__body" };
|
|
14
14
|
var OArticleAnchor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
@@ -62,6 +62,23 @@ var OArticleAnchor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
|
|
|
62
62
|
};
|
|
63
63
|
const onAnchorChange = (link) => {
|
|
64
64
|
emit("change", link);
|
|
65
|
+
scrollActiveIntoView(link);
|
|
66
|
+
};
|
|
67
|
+
/** 限高滚动时,激活项若未完整显示在滚动容器内,最小滚动量补全 */
|
|
68
|
+
const scrollActiveIntoView = (link) => {
|
|
69
|
+
const containerEl = (scrollerRef.value?.$el)?.querySelector(".o-scroller-container");
|
|
70
|
+
if (!containerEl || containerEl.scrollHeight <= containerEl.clientHeight) return;
|
|
71
|
+
const displayHref = [...hrefAliasMap.value.entries()].find(([, v]) => v === link)?.[0] ?? link;
|
|
72
|
+
const item = containerEl.querySelector(`a[href="${CSS.escape(displayHref)}"]`);
|
|
73
|
+
if (!item) return;
|
|
74
|
+
const cRect = containerEl.getBoundingClientRect();
|
|
75
|
+
const eRect = item.getBoundingClientRect();
|
|
76
|
+
if (eRect.top >= cRect.top && eRect.bottom <= cRect.bottom) return;
|
|
77
|
+
const delta = eRect.top < cRect.top ? eRect.top - cRect.top : eRect.bottom - cRect.bottom;
|
|
78
|
+
containerEl.scrollTo({
|
|
79
|
+
top: containerEl.scrollTop + delta,
|
|
80
|
+
behavior: "smooth"
|
|
81
|
+
});
|
|
65
82
|
};
|
|
66
83
|
/** hash 别名映射:href 为展示地址(如 #a),observeHref 为实际目标(如 #user-content-a) */
|
|
67
84
|
const hrefAliasMap = computed(() => {
|
|
@@ -98,6 +115,7 @@ var OArticleAnchor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
|
|
|
98
115
|
const padSlotRef = ref();
|
|
99
116
|
const hiddenSlotRef = ref();
|
|
100
117
|
const anchorRef = ref();
|
|
118
|
+
const scrollerRef = ref();
|
|
101
119
|
const teleportTarget = computed(() => {
|
|
102
120
|
if (props.size === "pc") return pcSlotRef.value;
|
|
103
121
|
if (props.size === "pad" && expanded.value) return padSlotRef.value;
|
|
@@ -279,26 +297,35 @@ var OArticleAnchor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
|
|
|
279
297
|
(openBlock(), createBlock(Teleport, {
|
|
280
298
|
to: teleportTarget.value,
|
|
281
299
|
disabled: !teleportTarget.value
|
|
282
|
-
}, [createElementVNode("div", _hoisted_2, [createVNode(unref(
|
|
283
|
-
ref_key: "
|
|
284
|
-
ref:
|
|
285
|
-
layout: "v",
|
|
300
|
+
}, [createElementVNode("div", _hoisted_2, [createVNode(unref(OScroller), {
|
|
301
|
+
ref_key: "scrollerRef",
|
|
302
|
+
ref: scrollerRef,
|
|
286
303
|
size: "small",
|
|
287
|
-
|
|
288
|
-
"
|
|
289
|
-
bounds: __props.bounds,
|
|
290
|
-
"change-hash": __props.changeHash,
|
|
291
|
-
onChange: onAnchorChange,
|
|
292
|
-
onClick: onAnchorClick
|
|
304
|
+
"show-type": "auto",
|
|
305
|
+
"disabled-x": ""
|
|
293
306
|
}, {
|
|
294
|
-
default: withCtx(() => [createVNode(
|
|
307
|
+
default: withCtx(() => [createVNode(unref(OAnchor), {
|
|
308
|
+
ref_key: "anchorRef",
|
|
309
|
+
ref: anchorRef,
|
|
310
|
+
layout: "v",
|
|
311
|
+
size: "small",
|
|
312
|
+
container: __props.container,
|
|
313
|
+
"target-offset": __props.targetOffset,
|
|
314
|
+
bounds: __props.bounds,
|
|
315
|
+
"change-hash": __props.changeHash,
|
|
316
|
+
onChange: onAnchorChange,
|
|
317
|
+
onClick: onAnchorClick
|
|
318
|
+
}, {
|
|
319
|
+
default: withCtx(() => [createVNode(ArticleAnchorItems_default, { items: items.value }, null, 8, ["items"])]),
|
|
320
|
+
_: 1
|
|
321
|
+
}, 8, [
|
|
322
|
+
"container",
|
|
323
|
+
"target-offset",
|
|
324
|
+
"bounds",
|
|
325
|
+
"change-hash"
|
|
326
|
+
])]),
|
|
295
327
|
_: 1
|
|
296
|
-
}, 8, [
|
|
297
|
-
"container",
|
|
298
|
-
"target-offset",
|
|
299
|
-
"bounds",
|
|
300
|
-
"change-hash"
|
|
301
|
-
])])], 8, ["to", "disabled"]))
|
|
328
|
+
}, 512)])], 8, ["to", "disabled"]))
|
|
302
329
|
])) : createCommentVNode("", true);
|
|
303
330
|
};
|
|
304
331
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-4f5aa268] {
|
|
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-4f5aa268] {
|
|
6
|
+
transform: rotate(-180deg);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
.o-article-anchor[data-v-4f5aa268] {
|
|
10
|
+
--o-article-height: var(--o-doc-layout-anchor-max-height, 70vh);
|
|
11
|
+
}
|
|
12
|
+
.o-article-anchor .o-article-anchor__body[data-v-4f5aa268] .o-scroller {
|
|
13
|
+
max-height: calc(var(--o-article-height) - 86px);
|
|
14
|
+
}
|
|
15
|
+
@media (max-width: 1680px) {
|
|
16
|
+
.o-article-anchor .o-article-anchor__body[data-v-4f5aa268] .o-scroller {
|
|
17
|
+
max-height: calc(var(--o-article-height) - 62px);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
@media (max-width: 1200px) {
|
|
21
|
+
.o-article-anchor .o-article-anchor__body[data-v-4f5aa268] .o-scroller {
|
|
22
|
+
max-height: calc(var(--o-article-height) - 66px);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
.o-article-anchor .o-article-anchor__body[data-v-4f5aa268] .o-scroller .o-scrollbar {
|
|
26
|
+
--scrollbar-y-right: -6px;
|
|
27
|
+
}
|
|
28
|
+
.o-article-anchor .o-article-anchor__body[data-v-4f5aa268] .o-anchor {
|
|
29
|
+
--anchor-item-link-color: var(--o-color-info2);
|
|
30
|
+
--anchor-item-link-color-active: var(--o-color-primary1);
|
|
31
|
+
--anchor-item-link-color-hover: var(--o-color-primary2);
|
|
32
|
+
--anchor-item-link-color-press: var(--o-color-primary3);
|
|
33
|
+
--anchor-line-bg-color: var(--o-color-control4);
|
|
34
|
+
}
|
|
35
|
+
.o-article-anchor .o-article-anchor--hidden[data-v-4f5aa268] {
|
|
36
|
+
display: none;
|
|
37
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
2
|
import ArticleAnchorMobile_vue_vue_type_script_setup_true_lang_default from "./ArticleAnchorMobile.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
|
-
import './ArticleAnchorMobile.
|
|
3
|
+
import './ArticleAnchorMobile.vue_vue_type_style_index_0_scoped_3d9befab_lang.css';
|
|
4
4
|
// src/components/article-anchor/components/ArticleAnchorMobile.vue
|
|
5
|
-
var ArticleAnchorMobile_default = /*#__PURE__*/ _plugin_vue_export_helper_default(ArticleAnchorMobile_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var ArticleAnchorMobile_default = /*#__PURE__*/ _plugin_vue_export_helper_default(ArticleAnchorMobile_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-3d9befab"]]);
|
|
6
6
|
export { ArticleAnchorMobile_default as default };
|
|
@@ -22,7 +22,7 @@ var ArticleAnchorMobile_vue_vue_type_script_setup_true_lang_default = /*@__PURE_
|
|
|
22
22
|
"update:visible"
|
|
23
23
|
],
|
|
24
24
|
setup(__props, { emit: __emit }) {
|
|
25
|
-
useCssVars((_ctx) => ({ "
|
|
25
|
+
useCssVars((_ctx) => ({ "d42f5bb8": _ctx.radius }));
|
|
26
26
|
const props = __props;
|
|
27
27
|
const emit = __emit;
|
|
28
28
|
const visible = computed({
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
.hover-icon-rotate .o-icon[data-v-
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-3d9befab] {
|
|
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-3d9befab] {
|
|
6
6
|
transform: rotate(-180deg);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
.o-article-anchor--mobile[data-v-
|
|
10
|
-
--o-article-anchor-radius: var(--
|
|
9
|
+
.o-article-anchor--mobile[data-v-3d9befab] {
|
|
10
|
+
--o-article-anchor-radius: var(--d42f5bb8);
|
|
11
11
|
}
|
|
12
|
-
.o-article-anchor--mobile__fab[data-v-
|
|
12
|
+
.o-article-anchor--mobile__fab[data-v-3d9befab] {
|
|
13
13
|
display: flex;
|
|
14
14
|
align-items: center;
|
|
15
15
|
justify-content: center;
|
|
@@ -21,27 +21,24 @@
|
|
|
21
21
|
border-radius: var(--o-article-anchor-radius);
|
|
22
22
|
box-shadow: var(--o-shadow-2);
|
|
23
23
|
}
|
|
24
|
-
.o-article-anchor--mobile__fab-icon[data-v-
|
|
24
|
+
.o-article-anchor--mobile__fab-icon[data-v-3d9befab] {
|
|
25
25
|
font-size: 24px;
|
|
26
26
|
color: var(--o-color-info2);
|
|
27
27
|
line-height: 1;
|
|
28
28
|
}
|
|
29
|
-
.o-article-anchor--mobile__sheet-title[data-v-
|
|
29
|
+
.o-article-anchor--mobile__sheet-title[data-v-3d9befab] {
|
|
30
30
|
color: var(--o-color-info1);
|
|
31
31
|
font-weight: 600;
|
|
32
32
|
font-size: 18px;
|
|
33
33
|
line-height: 26px;
|
|
34
34
|
}
|
|
35
|
-
.o-article-anchor--mobile__menu[data-v-
|
|
35
|
+
.o-article-anchor--mobile__menu[data-v-3d9befab] {
|
|
36
36
|
--menu-width: 100%;
|
|
37
37
|
}
|
|
38
|
-
.o-article-anchor--mobile__menu-
|
|
39
|
-
padding-left: 16px;
|
|
40
|
-
}
|
|
41
|
-
.o-article-anchor--mobile__menu-item[data-v-7fff2dcb] {
|
|
38
|
+
.o-article-anchor--mobile__menu-item[data-v-3d9befab] {
|
|
42
39
|
padding: 12px 16px;
|
|
43
40
|
}
|
|
44
|
-
.o-article-anchor--mobile__menu-subitem[data-v-
|
|
41
|
+
.o-article-anchor--mobile__menu-subitem[data-v-3d9befab] {
|
|
45
42
|
padding: 12px 16px;
|
|
46
43
|
padding-left: 28px;
|
|
47
44
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
2
|
import ArticleAnchorPad_vue_vue_type_script_setup_true_lang_default from "./ArticleAnchorPad.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
|
-
import './ArticleAnchorPad.
|
|
3
|
+
import './ArticleAnchorPad.vue_vue_type_style_index_0_scoped_06601233_lang.css';
|
|
4
4
|
// src/components/article-anchor/components/ArticleAnchorPad.vue
|
|
5
|
-
var ArticleAnchorPad_default = /*#__PURE__*/ _plugin_vue_export_helper_default(ArticleAnchorPad_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var ArticleAnchorPad_default = /*#__PURE__*/ _plugin_vue_export_helper_default(ArticleAnchorPad_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-06601233"]]);
|
|
6
6
|
export { ArticleAnchorPad_default as default };
|
|
@@ -22,7 +22,7 @@ var ArticleAnchorPad_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
22
22
|
},
|
|
23
23
|
emits: ["toggle", "close"],
|
|
24
24
|
setup(__props, { emit: __emit }) {
|
|
25
|
-
useCssVars((_ctx) => ({ "
|
|
25
|
+
useCssVars((_ctx) => ({ "v69110e6e": _ctx.radius }));
|
|
26
26
|
const { t } = useI18n();
|
|
27
27
|
const navTitle = computed(() => t("articleAnchor.navTitle"));
|
|
28
28
|
const emit = __emit;
|