@opendesign-plus/components 0.0.1-rc.84 → 0.0.1-rc.85
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/OArticle.vue.d.ts +70 -0
- package/dist/components/article/index.d.ts +121 -0
- package/dist/components/banner/index.d.ts +6 -6
- package/dist/components/brand/index.d.ts +15 -15
- package/dist/components/events/index.d.ts +20 -20
- package/dist/components/feedback-doc/OFeedbackDoc.vue.d.ts +1 -1
- package/dist/components/feedback-doc/OFeedbackDocDialog.vue.d.ts +1 -1
- package/dist/components/feedback-doc/OFeedbackDocPopup.vue.d.ts +1 -1
- package/dist/components/feedback-doc/index.d.ts +9 -9
- 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/OLogoSwiperItems.vue.d.ts +1 -1
- package/dist/components/logo-swiper/index.d.ts +14 -14
- package/dist/components/markdown/OMarkdownPagination.vue.d.ts +8 -11
- package/dist/components/markdown/components/MarkdownCode.vue.d.ts +2 -2
- package/dist/components/markdown/components/MarkdownPageTitle.vue.d.ts +2 -2
- package/dist/components/markdown/components/MarkdownTitle.vue.d.ts +2 -2
- package/dist/components/markdown/index.d.ts +169 -0
- package/dist/components/markdown/types.d.ts +6 -0
- 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 +45 -45
- package/dist/components/org/index.d.ts +9 -9
- package/dist/components/search/index.d.ts +11 -11
- package/dist/components/sig/OSigDetail.vue.d.ts +3 -3
- package/dist/components/sig/components/OSigRepo.vue.d.ts +2 -2
- package/dist/components/sig/index.d.ts +15 -15
- package/dist/components/sig/types.d.ts +3 -0
- package/dist/components/summit/index.d.ts +12 -12
- package/dist/components/video/index.d.ts +3 -3
- package/dist/components.cjs.js +38 -38
- package/dist/components.css +1 -1
- package/dist/components.es.js +16003 -15880
- package/dist/index.d.ts +1 -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/OArticle.css +204 -0
- package/dist/treeshaking/components/article/OArticle.vue.d.ts +70 -0
- package/dist/treeshaking/components/article/OArticle.vue.mjs +7 -0
- package/dist/treeshaking/components/article/OArticle.vue2.mjs +130 -0
- package/dist/treeshaking/components/article/index.d.ts +121 -0
- package/dist/treeshaking/components/article/index.mjs +9 -0
- package/dist/treeshaking/components/banner/index.d.ts +6 -6
- package/dist/treeshaking/components/brand/index.d.ts +15 -15
- package/dist/treeshaking/components/events/index.d.ts +20 -20
- package/dist/treeshaking/components/feedback-doc/OFeedbackDoc.vue.d.ts +1 -1
- package/dist/treeshaking/components/feedback-doc/OFeedbackDocDialog.vue.d.ts +1 -1
- package/dist/treeshaking/components/feedback-doc/OFeedbackDocPopup.vue.d.ts +1 -1
- package/dist/treeshaking/components/feedback-doc/index.d.ts +9 -9
- 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/logo-swiper/OLogoSwiperItems.vue.d.ts +1 -1
- package/dist/treeshaking/components/logo-swiper/index.d.ts +14 -14
- package/dist/treeshaking/components/markdown/OMarkdownPagination.css +44 -44
- package/dist/treeshaking/components/markdown/OMarkdownPagination.vue.d.ts +8 -11
- package/dist/treeshaking/components/markdown/OMarkdownPagination.vue.mjs +1 -1
- package/dist/treeshaking/components/markdown/OMarkdownPagination.vue2.mjs +3 -1
- package/dist/treeshaking/components/markdown/components/MarkdownCode.vue.d.ts +2 -2
- package/dist/treeshaking/components/markdown/components/MarkdownCode.vue.mjs +1 -1
- package/dist/treeshaking/components/markdown/components/MarkdownCode2.css +42 -42
- package/dist/treeshaking/components/markdown/components/MarkdownPageTitle.css +48 -48
- package/dist/treeshaking/components/markdown/components/MarkdownPageTitle.vue.d.ts +2 -2
- package/dist/treeshaking/components/markdown/components/MarkdownPageTitle.vue.mjs +1 -1
- package/dist/treeshaking/components/markdown/components/MarkdownPageTitle.vue2.mjs +5 -3
- package/dist/treeshaking/components/markdown/components/MarkdownTitle.css +24 -24
- package/dist/treeshaking/components/markdown/components/MarkdownTitle.vue.d.ts +2 -2
- package/dist/treeshaking/components/markdown/components/MarkdownTitle.vue.mjs +1 -1
- package/dist/treeshaking/components/markdown/index.d.ts +169 -0
- package/dist/treeshaking/components/markdown/types.d.ts +6 -0
- 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 +45 -45
- package/dist/treeshaking/components/org/index.d.ts +9 -9
- package/dist/treeshaking/components/search/index.d.ts +11 -11
- package/dist/treeshaking/components/sig/OSigDetail.vue.d.ts +3 -3
- package/dist/treeshaking/components/sig/components/OSigItem.vue.mjs +1 -1
- package/dist/treeshaking/components/sig/components/OSigMember.vue.mjs +7 -1
- package/dist/treeshaking/components/sig/components/OSigRepo.vue.d.ts +2 -2
- package/dist/treeshaking/components/sig/components/OSigUserContribute.css +1 -1
- package/dist/treeshaking/components/sig/index.d.ts +15 -15
- package/dist/treeshaking/components/sig/types.d.ts +3 -0
- package/dist/treeshaking/components/summit/index.d.ts +12 -12
- package/dist/treeshaking/components/video/index.d.ts +3 -3
- package/dist/treeshaking/index.d.ts +1 -0
- package/dist/treeshaking/index.mjs +2 -0
- package/package.json +1 -1
- package/dist/treeshaking/assets/markdown/md-title-bg.png.mjs +0 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
declare const OActivityForm: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../index').ActivityFormPropsT> & Readonly<{
|
|
4
4
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
5
5
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
6
6
|
}>, {
|
|
@@ -292,7 +292,7 @@ declare const OActivityForm: {
|
|
|
292
292
|
C: {};
|
|
293
293
|
M: {};
|
|
294
294
|
Defaults: {};
|
|
295
|
-
}, Readonly<import('
|
|
295
|
+
}, Readonly<import('../../index').ActivityFormPropsT> & Readonly<{
|
|
296
296
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
297
297
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
298
298
|
}>, {
|
|
@@ -301,7 +301,7 @@ declare const OActivityForm: {
|
|
|
301
301
|
__isFragment?: never;
|
|
302
302
|
__isTeleport?: never;
|
|
303
303
|
__isSuspense?: never;
|
|
304
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('
|
|
304
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('../../index').ActivityFormPropsT> & Readonly<{
|
|
305
305
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
306
306
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
307
307
|
}>, {
|
|
@@ -313,7 +313,7 @@ declare const OActivityForm: {
|
|
|
313
313
|
install(app: App): void;
|
|
314
314
|
};
|
|
315
315
|
declare const OActivityApproval: {
|
|
316
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('
|
|
316
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../index').ActivityTablePropsT> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
317
317
|
formRef: ({
|
|
318
318
|
$: import('vue').ComponentInternalInstance;
|
|
319
319
|
$data: {};
|
|
@@ -597,15 +597,15 @@ declare const OActivityApproval: {
|
|
|
597
597
|
C: {};
|
|
598
598
|
M: {};
|
|
599
599
|
Defaults: {};
|
|
600
|
-
}, Readonly<import('
|
|
600
|
+
}, Readonly<import('../../index').ActivityTablePropsT> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
601
601
|
__isFragment?: never;
|
|
602
602
|
__isTeleport?: never;
|
|
603
603
|
__isSuspense?: never;
|
|
604
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('
|
|
604
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('../../index').ActivityTablePropsT> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
605
605
|
install(app: App): void;
|
|
606
606
|
};
|
|
607
607
|
declare const OActivityMyCalendar: {
|
|
608
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('
|
|
608
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../index').MyActivityCalendarPropsT> & Readonly<{
|
|
609
609
|
onEdit?: ((...args: any[]) => any) | undefined;
|
|
610
610
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
611
611
|
edit: (...args: any[]) => void;
|
|
@@ -926,13 +926,13 @@ declare const OActivityMyCalendar: {
|
|
|
926
926
|
C: {};
|
|
927
927
|
M: {};
|
|
928
928
|
Defaults: {};
|
|
929
|
-
}, Readonly<import('
|
|
929
|
+
}, Readonly<import('../../index').MyActivityCalendarPropsT> & Readonly<{
|
|
930
930
|
onEdit?: ((...args: any[]) => any) | undefined;
|
|
931
931
|
}>, {}, {}, {}, {}, {}>;
|
|
932
932
|
__isFragment?: never;
|
|
933
933
|
__isTeleport?: never;
|
|
934
934
|
__isSuspense?: never;
|
|
935
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('
|
|
935
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('../../index').MyActivityCalendarPropsT> & Readonly<{
|
|
936
936
|
onEdit?: ((...args: any[]) => any) | undefined;
|
|
937
937
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
938
938
|
edit: (...args: any[]) => void;
|
|
@@ -13,9 +13,9 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
13
13
|
declare const __VLS_component: import('vue').DefineComponent<AnchorBarPropsT, {
|
|
14
14
|
isSticky: import('vue').Ref<boolean, boolean>;
|
|
15
15
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AnchorBarPropsT> & Readonly<{}>, {
|
|
16
|
-
mode: import('
|
|
16
|
+
mode: import('../../index').AnchorBarModeT;
|
|
17
17
|
mobileFixed: boolean;
|
|
18
|
-
items: import('
|
|
18
|
+
items: import('../../index').AnchorBarItemT[];
|
|
19
19
|
targetOffset: number;
|
|
20
20
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
21
21
|
sentinelRef: HTMLDivElement;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
declare const OAnchorBar: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../index').AnchorBarPropsT> & Readonly<{}>, {
|
|
4
4
|
isSticky: import('vue').Ref<boolean, boolean>;
|
|
5
5
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
6
|
-
mode: import('
|
|
6
|
+
mode: import('../../index').AnchorBarModeT;
|
|
7
7
|
mobileFixed: boolean;
|
|
8
|
-
items: import('
|
|
8
|
+
items: import('../../index').AnchorBarItemT[];
|
|
9
9
|
targetOffset: number;
|
|
10
10
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
11
11
|
sentinelRef: HTMLDivElement;
|
|
@@ -16,23 +16,23 @@ declare const OAnchorBar: {
|
|
|
16
16
|
C: {};
|
|
17
17
|
M: {};
|
|
18
18
|
Defaults: {};
|
|
19
|
-
}, Readonly<import('
|
|
19
|
+
}, Readonly<import('../../index').AnchorBarPropsT> & Readonly<{}>, {
|
|
20
20
|
isSticky: import('vue').Ref<boolean, boolean>;
|
|
21
21
|
}, {}, {}, {}, {
|
|
22
|
-
mode: import('
|
|
22
|
+
mode: import('../../index').AnchorBarModeT;
|
|
23
23
|
mobileFixed: boolean;
|
|
24
|
-
items: import('
|
|
24
|
+
items: import('../../index').AnchorBarItemT[];
|
|
25
25
|
targetOffset: number;
|
|
26
26
|
}>;
|
|
27
27
|
__isFragment?: never;
|
|
28
28
|
__isTeleport?: never;
|
|
29
29
|
__isSuspense?: never;
|
|
30
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('
|
|
30
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('../../index').AnchorBarPropsT> & Readonly<{}>, {
|
|
31
31
|
isSticky: import('vue').Ref<boolean, boolean>;
|
|
32
32
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
33
|
-
mode: import('
|
|
33
|
+
mode: import('../../index').AnchorBarModeT;
|
|
34
34
|
mobileFixed: boolean;
|
|
35
|
-
items: import('
|
|
35
|
+
items: import('../../index').AnchorBarItemT[];
|
|
36
36
|
targetOffset: number;
|
|
37
37
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
38
38
|
$slots: {
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-239e3a8c] {
|
|
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-239e3a8c] {
|
|
6
|
+
transform: rotate(-180deg);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
.o-article[data-v-239e3a8c] {
|
|
10
|
+
--o-gap-1: 4px;
|
|
11
|
+
--o-gap-2: 8px;
|
|
12
|
+
--o-gap-3: 12px;
|
|
13
|
+
--o-gap-4: 16px;
|
|
14
|
+
--o-gap-5: 24px;
|
|
15
|
+
--o-gap-6: 32px;
|
|
16
|
+
--o-gap-7: 40px;
|
|
17
|
+
--o-gap-8: 48px;
|
|
18
|
+
--o-gap-9: 64px;
|
|
19
|
+
--o-gap-10: 72px;
|
|
20
|
+
}
|
|
21
|
+
@media (max-width: 1680px) {
|
|
22
|
+
.o-article[data-v-239e3a8c] {
|
|
23
|
+
--o-gap-1: 4px;
|
|
24
|
+
--o-gap-2: 8px;
|
|
25
|
+
--o-gap-3: 8px;
|
|
26
|
+
--o-gap-4: 12px;
|
|
27
|
+
--o-gap-5: 16px;
|
|
28
|
+
--o-gap-6: 24px;
|
|
29
|
+
--o-gap-7: 24px;
|
|
30
|
+
--o-gap-8: 40px;
|
|
31
|
+
--o-gap-9: 48px;
|
|
32
|
+
--o-gap-10: 56px;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
@media (max-width: 1200px) {
|
|
36
|
+
.o-article[data-v-239e3a8c] {
|
|
37
|
+
--o-gap-1: 4px;
|
|
38
|
+
--o-gap-2: 8px;
|
|
39
|
+
--o-gap-3: 8px;
|
|
40
|
+
--o-gap-4: 8px;
|
|
41
|
+
--o-gap-5: 12px;
|
|
42
|
+
--o-gap-6: 16px;
|
|
43
|
+
--o-gap-7: 16px;
|
|
44
|
+
--o-gap-8: 24px;
|
|
45
|
+
--o-gap-9: 32px;
|
|
46
|
+
--o-gap-10: 40px;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
@media (max-width: 840px) {
|
|
50
|
+
.o-article[data-v-239e3a8c] {
|
|
51
|
+
--o-gap-1: 4px;
|
|
52
|
+
--o-gap-2: 8px;
|
|
53
|
+
--o-gap-3: 12px;
|
|
54
|
+
--o-gap-4: 16px;
|
|
55
|
+
--o-gap-5: 24px;
|
|
56
|
+
--o-gap-6: 28px;
|
|
57
|
+
--o-gap-7: 12px;
|
|
58
|
+
--o-gap-8: 24px;
|
|
59
|
+
--o-gap-9: 32px;
|
|
60
|
+
--o-gap-10: 32px;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
@media (max-width: 600px) {
|
|
64
|
+
.o-article[data-v-239e3a8c] {
|
|
65
|
+
--o-gap-1: 4px;
|
|
66
|
+
--o-gap-2: 8px;
|
|
67
|
+
--o-gap-3: 12px;
|
|
68
|
+
--o-gap-4: 16px;
|
|
69
|
+
--o-gap-5: 24px;
|
|
70
|
+
--o-gap-6: 28px;
|
|
71
|
+
--o-gap-7: 12px;
|
|
72
|
+
--o-gap-8: 24px;
|
|
73
|
+
--o-gap-9: 32px;
|
|
74
|
+
--o-gap-10: 32px;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
.o-article[data-v-239e3a8c] {
|
|
78
|
+
display: flex;
|
|
79
|
+
flex-direction: column;
|
|
80
|
+
min-width: 0;
|
|
81
|
+
border-radius: var(--o-article-radius);
|
|
82
|
+
}
|
|
83
|
+
.o-article__header[data-v-239e3a8c] {
|
|
84
|
+
padding: var(--o-gap-6);
|
|
85
|
+
border-radius: var(--o-article-radius) var(--o-article-radius) 0 0;
|
|
86
|
+
background-image: var(--v6640ffa3);
|
|
87
|
+
background-position: 100% 100%;
|
|
88
|
+
background-repeat: no-repeat;
|
|
89
|
+
background-size: cover;
|
|
90
|
+
}
|
|
91
|
+
@media (max-width: 840px) {
|
|
92
|
+
.o-article__header[data-v-239e3a8c] {
|
|
93
|
+
padding: 16px;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
@media (max-width: 600px) {
|
|
97
|
+
.o-article__header[data-v-239e3a8c] {
|
|
98
|
+
padding: 12px;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
.o-article__title[data-v-239e3a8c] {
|
|
102
|
+
margin: 0;
|
|
103
|
+
color: var(--o-color-info1);
|
|
104
|
+
font-weight: 600;
|
|
105
|
+
font-size: 32px;
|
|
106
|
+
line-height: 44px;
|
|
107
|
+
}
|
|
108
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
109
|
+
.o-article__title[data-v-239e3a8c] {
|
|
110
|
+
font-size: 20px;
|
|
111
|
+
line-height: 28px;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
115
|
+
.o-article__title[data-v-239e3a8c] {
|
|
116
|
+
font-size: 20px;
|
|
117
|
+
line-height: 28px;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
@media (min-width: 601px) and (max-width: 840px) {
|
|
121
|
+
.o-article__title[data-v-239e3a8c] {
|
|
122
|
+
font-size: 18px;
|
|
123
|
+
line-height: 26px;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
@media (max-width: 600px) {
|
|
127
|
+
.o-article__title[data-v-239e3a8c] {
|
|
128
|
+
font-size: 16px;
|
|
129
|
+
line-height: 24px;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
.o-article__meta[data-v-239e3a8c] {
|
|
133
|
+
display: flex;
|
|
134
|
+
flex-wrap: wrap;
|
|
135
|
+
align-items: center;
|
|
136
|
+
justify-content: space-between;
|
|
137
|
+
column-gap: 16px;
|
|
138
|
+
row-gap: 8px;
|
|
139
|
+
margin-top: 8px;
|
|
140
|
+
}
|
|
141
|
+
.o-article__tags[data-v-239e3a8c] {
|
|
142
|
+
display: flex;
|
|
143
|
+
flex-wrap: wrap;
|
|
144
|
+
align-items: center;
|
|
145
|
+
gap: 16px;
|
|
146
|
+
min-width: fit-content;
|
|
147
|
+
padding: 0;
|
|
148
|
+
list-style: none;
|
|
149
|
+
}
|
|
150
|
+
.o-article__tags-divider[data-v-239e3a8c] {
|
|
151
|
+
--o-divider-label-gap: 0;
|
|
152
|
+
}
|
|
153
|
+
.o-article__update-time[data-v-239e3a8c] {
|
|
154
|
+
flex-shrink: 0;
|
|
155
|
+
color: var(--o-color-info3);
|
|
156
|
+
font-size: 14px;
|
|
157
|
+
line-height: 22px;
|
|
158
|
+
}
|
|
159
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
160
|
+
.o-article__update-time[data-v-239e3a8c] {
|
|
161
|
+
font-size: 14px;
|
|
162
|
+
line-height: 18px;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
166
|
+
.o-article__update-time[data-v-239e3a8c] {
|
|
167
|
+
font-size: 12px;
|
|
168
|
+
line-height: 18px;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
@media (min-width: 601px) and (max-width: 840px) {
|
|
172
|
+
.o-article__update-time[data-v-239e3a8c] {
|
|
173
|
+
font-size: 12px;
|
|
174
|
+
line-height: 18px;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
@media (max-width: 600px) {
|
|
178
|
+
.o-article__update-time[data-v-239e3a8c] {
|
|
179
|
+
font-size: 12px;
|
|
180
|
+
line-height: 18px;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
@media (max-width: 600px) {
|
|
184
|
+
.o-article__update-time[data-v-239e3a8c] {
|
|
185
|
+
flex-basis: 100%;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
.o-article__tag[data-v-239e3a8c] {
|
|
189
|
+
--tag-height: 24px;
|
|
190
|
+
--tag-padding: 0 11px;
|
|
191
|
+
}
|
|
192
|
+
.o-article__content[data-v-239e3a8c] {
|
|
193
|
+
padding: var(--o-gap-6);
|
|
194
|
+
background-color: var(--o-color-fill2);
|
|
195
|
+
border-radius: 0 0 var(--o-article-radius) var(--o-article-radius);
|
|
196
|
+
}
|
|
197
|
+
@media (max-width: 840px) {
|
|
198
|
+
.o-article__content[data-v-239e3a8c] {
|
|
199
|
+
padding: 12px;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
.o-article__content--no-first-margin[data-v-239e3a8c] .o-markdown > .o-markdown-body > div:first-child > *:first-child {
|
|
203
|
+
margin-top: 0;
|
|
204
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { OMarkdownPaginationItemT } from '../markdown/types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** 文章标题(必填) */
|
|
4
|
+
title: string;
|
|
5
|
+
/** 标题头部背景图地址(可选),未传时不显示背景图 */
|
|
6
|
+
headerBg?: string;
|
|
7
|
+
/** 标签列表(可选),渲染为标题下方的 OTag 标签 */
|
|
8
|
+
tags?: string[];
|
|
9
|
+
/** 所属社区(可选),渲染为标签并置于标签列表首位,用垂直分隔线与其余标签隔开 */
|
|
10
|
+
community?: string;
|
|
11
|
+
/** 上一篇(可选),透传给 OMarkdownPagination */
|
|
12
|
+
prev?: OMarkdownPaginationItemT | null;
|
|
13
|
+
/** 下一篇(可选),透传给 OMarkdownPagination */
|
|
14
|
+
next?: OMarkdownPaginationItemT | null;
|
|
15
|
+
/** 透传给 OMarkdown:禁用 H2 增强 */
|
|
16
|
+
disableH2?: boolean;
|
|
17
|
+
/** 透传给 OMarkdown:禁用表格增强 */
|
|
18
|
+
disableTable?: boolean;
|
|
19
|
+
/** 透传给 OMarkdown:禁用图片增强 */
|
|
20
|
+
disableImg?: boolean;
|
|
21
|
+
/** 透传给 OMarkdown:禁用代码块增强 */
|
|
22
|
+
disableCode?: boolean;
|
|
23
|
+
/** 标题头部展示的更新时间(可选),与标签两端对齐,文案前缀取 i18n `md.updateTime` */
|
|
24
|
+
updateTime?: string;
|
|
25
|
+
/** 透传给 OMarkdown:正文容器类名 */
|
|
26
|
+
markdownBodyClass?: string;
|
|
27
|
+
/** 是否移除正文首个元素的上边距(o-markdown-body 内第一个 div 的首个元素,常用于正文首元素为标题时消除顶部空隙),默认 true */
|
|
28
|
+
removeFirstTopMargin?: boolean;
|
|
29
|
+
/** 透传给 OMarkdownPagination:上一篇文案,留空取 i18n 默认值 */
|
|
30
|
+
prevLabel?: string;
|
|
31
|
+
/** 透传给 OMarkdownPagination:下一篇文案,留空取 i18n 默认值 */
|
|
32
|
+
nextLabel?: string;
|
|
33
|
+
/** 透传给 OMarkdownPagination:是否显示顶部分割线 */
|
|
34
|
+
divider?: boolean;
|
|
35
|
+
/** 圆角 */
|
|
36
|
+
radius?: string;
|
|
37
|
+
};
|
|
38
|
+
declare function __VLS_template(): {
|
|
39
|
+
attrs: Partial<{}>;
|
|
40
|
+
slots: {
|
|
41
|
+
default?(_: {}): any;
|
|
42
|
+
};
|
|
43
|
+
refs: {};
|
|
44
|
+
rootEl: HTMLDivElement;
|
|
45
|
+
};
|
|
46
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
47
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
48
|
+
navigate: (type: "prev" | "next", item: OMarkdownPaginationItemT) => any;
|
|
49
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
50
|
+
onNavigate?: ((type: "prev" | "next", item: OMarkdownPaginationItemT) => any) | undefined;
|
|
51
|
+
}>, {
|
|
52
|
+
disableH2: boolean;
|
|
53
|
+
disableTable: boolean;
|
|
54
|
+
disableImg: boolean;
|
|
55
|
+
disableCode: boolean;
|
|
56
|
+
markdownBodyClass: string;
|
|
57
|
+
prev: OMarkdownPaginationItemT | null;
|
|
58
|
+
next: OMarkdownPaginationItemT | null;
|
|
59
|
+
divider: boolean;
|
|
60
|
+
radius: string;
|
|
61
|
+
tags: string[];
|
|
62
|
+
removeFirstTopMargin: boolean;
|
|
63
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
64
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
65
|
+
export default _default;
|
|
66
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
67
|
+
new (): {
|
|
68
|
+
$slots: S;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from "./OArticle.vue2.mjs";
|
|
2
|
+
import './OArticle.css';
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const _OArticle = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-239e3a8c"]]);
|
|
5
|
+
export {
|
|
6
|
+
_OArticle as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { defineComponent, useCssVars, computed, openBlock, createElementBlock, normalizeStyle, createElementVNode, toDisplayString, createBlock, unref, withCtx, createTextVNode, createCommentVNode, Fragment, renderList, normalizeClass, createVNode, normalizeProps, guardReactiveProps, renderSlot } from "vue";
|
|
2
|
+
import { OTag, ODivider } from "@opensig/opendesign";
|
|
3
|
+
import _OMarkdown from "../markdown/OMarkdown.vue.mjs";
|
|
4
|
+
import _OMarkdownPagination from "../markdown/OMarkdownPagination.vue.mjs";
|
|
5
|
+
import { useI18n } from "../../i18n/index.mjs";
|
|
6
|
+
const _hoisted_1 = { class: "o-article__header" };
|
|
7
|
+
const _hoisted_2 = { class: "o-article__title" };
|
|
8
|
+
const _hoisted_3 = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "o-article__meta"
|
|
11
|
+
};
|
|
12
|
+
const _hoisted_4 = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "o-article__tags"
|
|
15
|
+
};
|
|
16
|
+
const _hoisted_5 = {
|
|
17
|
+
key: 1,
|
|
18
|
+
class: "o-article__update-time"
|
|
19
|
+
};
|
|
20
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
21
|
+
__name: "OArticle",
|
|
22
|
+
props: {
|
|
23
|
+
title: {},
|
|
24
|
+
headerBg: {},
|
|
25
|
+
tags: { default: () => [] },
|
|
26
|
+
community: {},
|
|
27
|
+
prev: { default: null },
|
|
28
|
+
next: { default: null },
|
|
29
|
+
disableH2: { type: Boolean, default: false },
|
|
30
|
+
disableTable: { type: Boolean, default: false },
|
|
31
|
+
disableImg: { type: Boolean, default: false },
|
|
32
|
+
disableCode: { type: Boolean, default: false },
|
|
33
|
+
updateTime: {},
|
|
34
|
+
markdownBodyClass: { default: "o-markdown-body" },
|
|
35
|
+
removeFirstTopMargin: { type: Boolean, default: true },
|
|
36
|
+
prevLabel: {},
|
|
37
|
+
nextLabel: {},
|
|
38
|
+
divider: { type: Boolean, default: true },
|
|
39
|
+
radius: { default: "var(--o-radius-xs)" }
|
|
40
|
+
},
|
|
41
|
+
emits: ["navigate"],
|
|
42
|
+
setup(__props, { emit: __emit }) {
|
|
43
|
+
useCssVars((_ctx) => ({
|
|
44
|
+
"v6640ffa3": headerBgStyle.value
|
|
45
|
+
}));
|
|
46
|
+
const props = __props;
|
|
47
|
+
const emit = __emit;
|
|
48
|
+
const { t } = useI18n();
|
|
49
|
+
const markdownProps = computed(() => ({
|
|
50
|
+
disableH1: true,
|
|
51
|
+
disableH2: props.disableH2,
|
|
52
|
+
disableTable: props.disableTable,
|
|
53
|
+
disableImg: props.disableImg,
|
|
54
|
+
disableCode: props.disableCode,
|
|
55
|
+
markdownBodyClass: props.markdownBodyClass
|
|
56
|
+
}));
|
|
57
|
+
const onNavigate = (type, item) => {
|
|
58
|
+
emit("navigate", type, item);
|
|
59
|
+
};
|
|
60
|
+
const headerBgStyle = computed(() => props.headerBg ? `url(${props.headerBg})` : "none");
|
|
61
|
+
return (_ctx, _cache) => {
|
|
62
|
+
return openBlock(), createElementBlock("div", {
|
|
63
|
+
class: "o-article",
|
|
64
|
+
style: normalizeStyle({
|
|
65
|
+
"--o-article-radius": __props.radius
|
|
66
|
+
})
|
|
67
|
+
}, [
|
|
68
|
+
createElementVNode("header", _hoisted_1, [
|
|
69
|
+
createElementVNode("h1", _hoisted_2, toDisplayString(__props.title), 1),
|
|
70
|
+
__props.tags.length || __props.updateTime || __props.community ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
71
|
+
__props.tags.length || __props.community ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
72
|
+
__props.community ? (openBlock(), createBlock(unref(OTag), {
|
|
73
|
+
key: 0,
|
|
74
|
+
class: "o-article__tag",
|
|
75
|
+
size: "large",
|
|
76
|
+
variant: "outline"
|
|
77
|
+
}, {
|
|
78
|
+
default: withCtx(() => [
|
|
79
|
+
createTextVNode(toDisplayString(__props.community), 1)
|
|
80
|
+
]),
|
|
81
|
+
_: 1
|
|
82
|
+
})) : createCommentVNode("", true),
|
|
83
|
+
__props.community && __props.tags.length ? (openBlock(), createBlock(unref(ODivider), {
|
|
84
|
+
key: 1,
|
|
85
|
+
direction: "v",
|
|
86
|
+
class: "o-article__tags-divider"
|
|
87
|
+
})) : createCommentVNode("", true),
|
|
88
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.tags, (tag) => {
|
|
89
|
+
return openBlock(), createBlock(unref(OTag), {
|
|
90
|
+
key: tag,
|
|
91
|
+
class: "o-article__tag",
|
|
92
|
+
size: "large",
|
|
93
|
+
variant: "outline"
|
|
94
|
+
}, {
|
|
95
|
+
default: withCtx(() => [
|
|
96
|
+
createTextVNode(toDisplayString(tag), 1)
|
|
97
|
+
]),
|
|
98
|
+
_: 2
|
|
99
|
+
}, 1024);
|
|
100
|
+
}), 128))
|
|
101
|
+
])) : createCommentVNode("", true),
|
|
102
|
+
__props.updateTime ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(unref(t)("md.updateTime")) + toDisplayString(__props.updateTime), 1)) : createCommentVNode("", true)
|
|
103
|
+
])) : createCommentVNode("", true)
|
|
104
|
+
]),
|
|
105
|
+
createElementVNode("div", {
|
|
106
|
+
class: normalizeClass(["o-article__content", { "o-article__content--no-first-margin": __props.removeFirstTopMargin }])
|
|
107
|
+
}, [
|
|
108
|
+
createVNode(_OMarkdown, normalizeProps(guardReactiveProps(markdownProps.value)), {
|
|
109
|
+
default: withCtx(() => [
|
|
110
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
111
|
+
]),
|
|
112
|
+
_: 3
|
|
113
|
+
}, 16),
|
|
114
|
+
createVNode(_OMarkdownPagination, {
|
|
115
|
+
prev: __props.prev,
|
|
116
|
+
next: __props.next,
|
|
117
|
+
"prev-label": __props.prevLabel,
|
|
118
|
+
"next-label": __props.nextLabel,
|
|
119
|
+
divider: __props.divider,
|
|
120
|
+
radius: __props.radius,
|
|
121
|
+
onNavigate
|
|
122
|
+
}, null, 8, ["prev", "next", "prev-label", "next-label", "divider", "radius"])
|
|
123
|
+
], 2)
|
|
124
|
+
], 4);
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
export {
|
|
129
|
+
_sfc_main as default
|
|
130
|
+
};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
declare const OArticle: {
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
4
|
+
title: string;
|
|
5
|
+
headerBg?: string;
|
|
6
|
+
tags?: string[];
|
|
7
|
+
community?: string;
|
|
8
|
+
prev?: import('../../index').OMarkdownPaginationItemT | null;
|
|
9
|
+
next?: import('../../index').OMarkdownPaginationItemT | null;
|
|
10
|
+
disableH2?: boolean;
|
|
11
|
+
disableTable?: boolean;
|
|
12
|
+
disableImg?: boolean;
|
|
13
|
+
disableCode?: boolean;
|
|
14
|
+
updateTime?: string;
|
|
15
|
+
markdownBodyClass?: string;
|
|
16
|
+
removeFirstTopMargin?: boolean;
|
|
17
|
+
prevLabel?: string;
|
|
18
|
+
nextLabel?: string;
|
|
19
|
+
divider?: boolean;
|
|
20
|
+
radius?: string;
|
|
21
|
+
}> & Readonly<{
|
|
22
|
+
onNavigate?: ((type: "prev" | "next", item: import('../../index').OMarkdownPaginationItemT) => any) | undefined;
|
|
23
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
|
+
navigate: (type: "prev" | "next", item: import('../../index').OMarkdownPaginationItemT) => any;
|
|
25
|
+
}, import('vue').PublicProps, {
|
|
26
|
+
disableH2: boolean;
|
|
27
|
+
disableTable: boolean;
|
|
28
|
+
disableImg: boolean;
|
|
29
|
+
disableCode: boolean;
|
|
30
|
+
markdownBodyClass: string;
|
|
31
|
+
prev: import('../../index').OMarkdownPaginationItemT | null;
|
|
32
|
+
next: import('../../index').OMarkdownPaginationItemT | null;
|
|
33
|
+
divider: boolean;
|
|
34
|
+
radius: string;
|
|
35
|
+
tags: string[];
|
|
36
|
+
removeFirstTopMargin: boolean;
|
|
37
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
38
|
+
P: {};
|
|
39
|
+
B: {};
|
|
40
|
+
D: {};
|
|
41
|
+
C: {};
|
|
42
|
+
M: {};
|
|
43
|
+
Defaults: {};
|
|
44
|
+
}, Readonly<{
|
|
45
|
+
title: string;
|
|
46
|
+
headerBg?: string;
|
|
47
|
+
tags?: string[];
|
|
48
|
+
community?: string;
|
|
49
|
+
prev?: import('../../index').OMarkdownPaginationItemT | null;
|
|
50
|
+
next?: import('../../index').OMarkdownPaginationItemT | null;
|
|
51
|
+
disableH2?: boolean;
|
|
52
|
+
disableTable?: boolean;
|
|
53
|
+
disableImg?: boolean;
|
|
54
|
+
disableCode?: boolean;
|
|
55
|
+
updateTime?: string;
|
|
56
|
+
markdownBodyClass?: string;
|
|
57
|
+
removeFirstTopMargin?: boolean;
|
|
58
|
+
prevLabel?: string;
|
|
59
|
+
nextLabel?: string;
|
|
60
|
+
divider?: boolean;
|
|
61
|
+
radius?: string;
|
|
62
|
+
}> & Readonly<{
|
|
63
|
+
onNavigate?: ((type: "prev" | "next", item: import('../../index').OMarkdownPaginationItemT) => any) | undefined;
|
|
64
|
+
}>, {}, {}, {}, {}, {
|
|
65
|
+
disableH2: boolean;
|
|
66
|
+
disableTable: boolean;
|
|
67
|
+
disableImg: boolean;
|
|
68
|
+
disableCode: boolean;
|
|
69
|
+
markdownBodyClass: string;
|
|
70
|
+
prev: import('../../index').OMarkdownPaginationItemT | null;
|
|
71
|
+
next: import('../../index').OMarkdownPaginationItemT | null;
|
|
72
|
+
divider: boolean;
|
|
73
|
+
radius: string;
|
|
74
|
+
tags: string[];
|
|
75
|
+
removeFirstTopMargin: boolean;
|
|
76
|
+
}>;
|
|
77
|
+
__isFragment?: never;
|
|
78
|
+
__isTeleport?: never;
|
|
79
|
+
__isSuspense?: never;
|
|
80
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
81
|
+
title: string;
|
|
82
|
+
headerBg?: string;
|
|
83
|
+
tags?: string[];
|
|
84
|
+
community?: string;
|
|
85
|
+
prev?: import('../../index').OMarkdownPaginationItemT | null;
|
|
86
|
+
next?: import('../../index').OMarkdownPaginationItemT | null;
|
|
87
|
+
disableH2?: boolean;
|
|
88
|
+
disableTable?: boolean;
|
|
89
|
+
disableImg?: boolean;
|
|
90
|
+
disableCode?: boolean;
|
|
91
|
+
updateTime?: string;
|
|
92
|
+
markdownBodyClass?: string;
|
|
93
|
+
removeFirstTopMargin?: boolean;
|
|
94
|
+
prevLabel?: string;
|
|
95
|
+
nextLabel?: string;
|
|
96
|
+
divider?: boolean;
|
|
97
|
+
radius?: string;
|
|
98
|
+
}> & Readonly<{
|
|
99
|
+
onNavigate?: ((type: "prev" | "next", item: import('../../index').OMarkdownPaginationItemT) => any) | undefined;
|
|
100
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
101
|
+
navigate: (type: "prev" | "next", item: import('../../index').OMarkdownPaginationItemT) => any;
|
|
102
|
+
}, string, {
|
|
103
|
+
disableH2: boolean;
|
|
104
|
+
disableTable: boolean;
|
|
105
|
+
disableImg: boolean;
|
|
106
|
+
disableCode: boolean;
|
|
107
|
+
markdownBodyClass: string;
|
|
108
|
+
prev: import('../../index').OMarkdownPaginationItemT | null;
|
|
109
|
+
next: import('../../index').OMarkdownPaginationItemT | null;
|
|
110
|
+
divider: boolean;
|
|
111
|
+
radius: string;
|
|
112
|
+
tags: string[];
|
|
113
|
+
removeFirstTopMargin: boolean;
|
|
114
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
115
|
+
$slots: {
|
|
116
|
+
default?(_: {}): any;
|
|
117
|
+
};
|
|
118
|
+
}) & {
|
|
119
|
+
install(app: App): void;
|
|
120
|
+
};
|
|
121
|
+
export { OArticle };
|