@opendesign-plus/components 0.0.1-rc.94 → 0.0.1-rc.95
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 +196 -14
- package/dist/components/article/components/ArticleTitle.vue.d.ts +22 -0
- package/dist/components/{markdown/components/MarkdownPageTitle.vue.d.ts → article/components/DocTitle.vue.d.ts} +6 -5
- package/dist/components/article/index.d.ts +151 -50
- 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 +38 -0
- package/dist/components/doc-layout/index.d.ts +59 -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/logo-swiper/index.d.ts +11 -11
- package/dist/components/markdown/OMarkdown.vue.d.ts +7 -16
- package/dist/components/markdown/index.d.ts +13 -45
- 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 +44 -44
- package/dist/components.css +1 -1
- package/dist/components.es.js +10037 -9808
- package/dist/index.d.ts +1 -0
- package/dist/treeshaking/_virtual/icon-email.mjs +8 -9
- package/dist/treeshaking/_virtual/icon-email2.mjs +9 -8
- package/dist/treeshaking/_virtual/icon-menu-fold.mjs +20 -0
- package/dist/treeshaking/_virtual/icon-menu-unfold.mjs +20 -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 +18 -124
- package/dist/treeshaking/components/article/OArticle.vue.d.ts +196 -14
- package/dist/treeshaking/components/article/OArticle.vue.mjs +1 -1
- package/dist/treeshaking/components/article/OArticle.vue2.mjs +48 -82
- package/dist/treeshaking/components/article/components/ArticleTitle.css +123 -0
- package/dist/treeshaking/components/article/components/ArticleTitle.vue.d.ts +22 -0
- package/dist/treeshaking/components/article/components/ArticleTitle.vue.mjs +7 -0
- package/dist/treeshaking/components/article/components/ArticleTitle.vue2.mjs +97 -0
- package/dist/treeshaking/components/article/components/DocTitle.css +246 -0
- package/dist/treeshaking/components/{markdown/components/MarkdownPageTitle.vue.d.ts → article/components/DocTitle.vue.d.ts} +6 -5
- package/dist/treeshaking/components/article/components/DocTitle.vue.mjs +7 -0
- package/dist/treeshaking/components/{markdown/components/MarkdownPageTitle.vue2.mjs → article/components/DocTitle.vue2.mjs} +131 -80
- package/dist/treeshaking/components/article/index.d.ts +151 -50
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.css +4 -4
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue.mjs +1 -1
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue2.mjs +4 -5
- package/dist/treeshaking/components/article-anchor/index.d.ts +9 -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/doc-layout/ODocLayout.css +271 -0
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue.d.ts +38 -0
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue.mjs +7 -0
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue2.mjs +165 -0
- package/dist/treeshaking/components/doc-layout/index.d.ts +59 -0
- package/dist/treeshaking/components/doc-layout/index.mjs +9 -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/logo-swiper/index.d.ts +11 -11
- package/dist/treeshaking/components/markdown/OMarkdown.vue.d.ts +7 -16
- package/dist/treeshaking/components/markdown/OMarkdown.vue.mjs +1 -1
- package/dist/treeshaking/components/markdown/OMarkdown.vue2.mjs +47 -36
- package/dist/treeshaking/components/markdown/OMarkdown2.css +3 -3
- package/dist/treeshaking/components/markdown/components/MarkdownTitle.css +22 -22
- package/dist/treeshaking/components/markdown/components/MarkdownTitle.vue.mjs +1 -1
- package/dist/treeshaking/components/markdown/components/MarkdownTitle.vue2.mjs +11 -5
- package/dist/treeshaking/components/markdown/index.d.ts +13 -45
- 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/OOrgMembers.vue2.mjs +1 -1
- package/dist/treeshaking/components/org/index.d.ts +9 -9
- package/dist/treeshaking/components/recursion-menu/ORecursionMenu.vue.mjs +1 -1
- package/dist/treeshaking/components/recursion-menu/index.d.ts +3 -3
- package/dist/treeshaking/components/search/index.d.ts +11 -11
- package/dist/treeshaking/components/search-result/OSearchResultHeader.vue.d.ts +24 -24
- package/dist/treeshaking/components/search-result/index.d.ts +31 -31
- package/dist/treeshaking/components/sig/index.d.ts +15 -15
- package/dist/treeshaking/components/summit/index.d.ts +12 -12
- package/dist/treeshaking/components/user-center/OAccountSetting.vue2.mjs +1 -1
- package/dist/treeshaking/components/user-center/index.d.ts +18 -18
- package/dist/treeshaking/components/user-center/index.mjs +0 -2
- 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 +2 -2
- package/dist/components/markdown/replacer/h1.d.ts +0 -11
- package/dist/treeshaking/components/markdown/components/MarkdownPageTitle.css +0 -261
- package/dist/treeshaking/components/markdown/components/MarkdownPageTitle.vue.mjs +0 -7
- package/dist/treeshaking/components/markdown/replacer/h1.d.ts +0 -11
- package/dist/treeshaking/components/markdown/replacer/h1.mjs +0 -29
|
@@ -20,8 +20,8 @@ declare function __VLS_template(): {
|
|
|
20
20
|
$props: {
|
|
21
21
|
readonly menuShow: boolean;
|
|
22
22
|
readonly navData: NavItemT[];
|
|
23
|
-
readonly codeData?: import('
|
|
24
|
-
readonly langData?: import('
|
|
23
|
+
readonly codeData?: import('../../index.ts').CodeT | undefined;
|
|
24
|
+
readonly langData?: import('../../index.ts').LangT | undefined;
|
|
25
25
|
readonly activeIndex: string | number;
|
|
26
26
|
readonly community?: string | undefined;
|
|
27
27
|
readonly "onHandle-click"?: ((val: any) => any) | undefined;
|
|
@@ -40,7 +40,7 @@ declare function __VLS_template(): {
|
|
|
40
40
|
$host: Element | null;
|
|
41
41
|
$emit: ((event: "handle-click", val: any) => void) & ((event: "on-click") => void) & ((event: "lang-click", val: LangItemT) => void);
|
|
42
42
|
$el: HTMLDivElement;
|
|
43
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('
|
|
43
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../../index.ts').NavMobileItemT> & Readonly<{
|
|
44
44
|
"onHandle-click"?: ((val: any) => any) | undefined;
|
|
45
45
|
"onOn-click"?: (() => any) | undefined;
|
|
46
46
|
"onLang-click"?: ((val: LangItemT) => any) | undefined;
|
|
@@ -74,7 +74,7 @@ declare function __VLS_template(): {
|
|
|
74
74
|
} & Readonly<{
|
|
75
75
|
navData: NavItemT[];
|
|
76
76
|
menuShow: boolean;
|
|
77
|
-
}> & Omit<Readonly<import('
|
|
77
|
+
}> & Omit<Readonly<import('../../index.ts').NavMobileItemT> & Readonly<{
|
|
78
78
|
"onHandle-click"?: ((val: any) => any) | undefined;
|
|
79
79
|
"onOn-click"?: (() => any) | undefined;
|
|
80
80
|
"onLang-click"?: ((val: LangItemT) => any) | undefined;
|
|
@@ -104,8 +104,8 @@ declare const __VLS_component: import('vue').DefineComponent<NavT, {}, {}, {}, {
|
|
|
104
104
|
$props: {
|
|
105
105
|
readonly menuShow: boolean;
|
|
106
106
|
readonly navData: NavItemT[];
|
|
107
|
-
readonly codeData?: import('
|
|
108
|
-
readonly langData?: import('
|
|
107
|
+
readonly codeData?: import('../../index.ts').CodeT | undefined;
|
|
108
|
+
readonly langData?: import('../../index.ts').LangT | undefined;
|
|
109
109
|
readonly activeIndex: string | number;
|
|
110
110
|
readonly community?: string | undefined;
|
|
111
111
|
readonly "onHandle-click"?: ((val: any) => any) | undefined;
|
|
@@ -124,7 +124,7 @@ declare const __VLS_component: import('vue').DefineComponent<NavT, {}, {}, {}, {
|
|
|
124
124
|
$host: Element | null;
|
|
125
125
|
$emit: ((event: "handle-click", val: any) => void) & ((event: "on-click") => void) & ((event: "lang-click", val: LangItemT) => void);
|
|
126
126
|
$el: HTMLDivElement;
|
|
127
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('
|
|
127
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../../index.ts').NavMobileItemT> & Readonly<{
|
|
128
128
|
"onHandle-click"?: ((val: any) => any) | undefined;
|
|
129
129
|
"onOn-click"?: (() => any) | undefined;
|
|
130
130
|
"onLang-click"?: ((val: LangItemT) => any) | undefined;
|
|
@@ -158,7 +158,7 @@ declare const __VLS_component: import('vue').DefineComponent<NavT, {}, {}, {}, {
|
|
|
158
158
|
} & Readonly<{
|
|
159
159
|
navData: NavItemT[];
|
|
160
160
|
menuShow: boolean;
|
|
161
|
-
}> & Omit<Readonly<import('
|
|
161
|
+
}> & Omit<Readonly<import('../../index.ts').NavMobileItemT> & Readonly<{
|
|
162
162
|
"onHandle-click"?: ((val: any) => any) | undefined;
|
|
163
163
|
"onOn-click"?: (() => any) | undefined;
|
|
164
164
|
"onLang-click"?: ((val: LangItemT) => any) | undefined;
|
|
@@ -22,7 +22,7 @@ declare const __VLS_component: import('vue').DefineComponent<NavMobileItemT, {},
|
|
|
22
22
|
"onOn-click"?: (() => any) | undefined;
|
|
23
23
|
"onLang-click"?: ((val: LangItemT) => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
|
-
navData: import('
|
|
25
|
+
navData: import('../../../index.ts').NavItemT[];
|
|
26
26
|
menuShow: boolean;
|
|
27
27
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
28
28
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -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('../../index').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('../../index').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('../../index').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('../../index').NavT> & Readonly<{
|
|
54
|
+
"onHandle-click"?: ((val: import('../../index').NavItemT) => any) | undefined;
|
|
55
55
|
"onGo-home"?: (() => any) | undefined;
|
|
56
|
-
"onLang-click"?: ((val: import('
|
|
56
|
+
"onLang-click"?: ((val: import('../../index').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('../../index').NavItemT) => any;
|
|
60
60
|
"go-home": () => any;
|
|
61
|
-
"lang-click": (val: import('
|
|
61
|
+
"lang-click": (val: import('../../index').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('../../index').NavItemT[];
|
|
70
|
+
readonly codeData?: import('../../index').CodeT | undefined;
|
|
71
|
+
readonly langData?: import('../../index').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('../../index').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('../../index').LangItemT) => void);
|
|
89
89
|
$el: HTMLDivElement;
|
|
90
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('
|
|
90
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../../index').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('../../index').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('../../index').LangItemT) => any;
|
|
98
98
|
}, string, {
|
|
99
|
-
navData: import('
|
|
99
|
+
navData: import('../../index').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('../../index').NavItemT[];
|
|
123
123
|
menuShow: boolean;
|
|
124
|
-
}> & Omit<Readonly<import('
|
|
124
|
+
}> & Omit<Readonly<import('../../index').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('../../index').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('../../index').NavT> & Readonly<{
|
|
141
|
+
"onHandle-click"?: ((val: import('../../index').NavItemT) => any) | undefined;
|
|
142
142
|
"onGo-home"?: (() => any) | undefined;
|
|
143
|
-
"onLang-click"?: ((val: import('
|
|
143
|
+
"onLang-click"?: ((val: import('../../index').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('../../index').NavT> & Readonly<{
|
|
150
|
+
"onHandle-click"?: ((val: import('../../index').NavItemT) => any) | undefined;
|
|
151
151
|
"onGo-home"?: (() => any) | undefined;
|
|
152
|
-
"onLang-click"?: ((val: import('
|
|
152
|
+
"onLang-click"?: ((val: import('../../index').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('../../index').NavItemT) => any;
|
|
156
156
|
"go-home": () => any;
|
|
157
|
-
"lang-click": (val: import('
|
|
157
|
+
"lang-click": (val: import('../../index').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('../../index').OSearchRecommendItem[];
|
|
24
|
+
suggestItems: import('../../index').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('../../index').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('../../index').OSearchRecommendItem[];
|
|
513
|
+
suggestItems: import('../../index').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('../../index').OSearchRecommendItem[];
|
|
550
|
+
suggestItems: import('../../index').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('../../index').OSearchRecommendItem[];
|
|
577
|
+
onestepItems: import('../../index').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('../../index').OSearchRecommendItem[];
|
|
588
588
|
}): any;
|
|
589
589
|
'onestep-content'?(_: {
|
|
590
|
-
items: import('
|
|
590
|
+
items: import('../../index').OSearchRecommendItem[];
|
|
591
591
|
keyword: string;
|
|
592
592
|
}): any;
|
|
593
593
|
'suggest-header'?(_: {
|
|
594
|
-
items: import('
|
|
594
|
+
items: import('../../index').OSearchRecommendItem[];
|
|
595
595
|
}): any;
|
|
596
596
|
'suggest-content'?(_: {
|
|
597
|
-
items: import('
|
|
597
|
+
items: import('../../index').OSearchRecommendItem[];
|
|
598
598
|
keyword: string;
|
|
599
599
|
}): any;
|
|
600
600
|
'history-header'?(_: {
|
|
@@ -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('../../index').OLogoSwiperItemsPropsT> & Readonly<{
|
|
24
|
+
onClick?: ((item: import('../../index').OLogoSwiperItemT) => any) | undefined;
|
|
25
25
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
26
|
-
click: (item: import('
|
|
26
|
+
click: (item: import('../../index').OLogoSwiperItemT) => any;
|
|
27
27
|
}, import('vue').PublicProps, {
|
|
28
28
|
reverse: boolean;
|
|
29
|
-
data: import('
|
|
29
|
+
data: import('../../index').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('../../index').OLogoSwiperItemsPropsT> & Readonly<{
|
|
46
|
+
onClick?: ((item: import('../../index').OLogoSwiperItemT) => any) | undefined;
|
|
47
47
|
}>, {}, {}, {}, {}, {
|
|
48
48
|
reverse: boolean;
|
|
49
|
-
data: import('
|
|
49
|
+
data: import('../../index').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('../../index').OLogoSwiperItemsPropsT> & Readonly<{
|
|
61
|
+
onClick?: ((item: import('../../index').OLogoSwiperItemT) => any) | undefined;
|
|
62
62
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
63
|
-
click: (item: import('
|
|
63
|
+
click: (item: import('../../index').OLogoSwiperItemT) => any;
|
|
64
64
|
}, string, {
|
|
65
65
|
reverse: boolean;
|
|
66
|
-
data: import('
|
|
66
|
+
data: import('../../index').OLogoSwiperItemT[];
|
|
67
67
|
target: "_blank" | "_parent" | "_self" | "_top";
|
|
68
68
|
duration: number;
|
|
69
69
|
fit: "cover" | "contain" | "fill" | "none" | "scale-down";
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
-
disableH1?: boolean;
|
|
3
2
|
disableH2?: boolean;
|
|
4
3
|
disableTable?: boolean;
|
|
5
4
|
disableImg?: boolean;
|
|
6
5
|
disableCode?: boolean;
|
|
7
6
|
disableChangeCodeTheme?: boolean;
|
|
8
|
-
sourceUrl?: string;
|
|
9
|
-
updateTime?: string;
|
|
10
|
-
titleBg?: string;
|
|
11
|
-
enableDownload?: boolean;
|
|
12
|
-
enableStar?: boolean;
|
|
13
7
|
markdownBodyClass?: string;
|
|
8
|
+
hideFirstH1?: boolean;
|
|
14
9
|
};
|
|
15
10
|
declare function __VLS_template(): {
|
|
16
11
|
attrs: Partial<{}>;
|
|
17
12
|
slots: {
|
|
13
|
+
header?(_: {
|
|
14
|
+
h1: HTMLElement | undefined;
|
|
15
|
+
}): any;
|
|
18
16
|
default?(_: {}): any;
|
|
17
|
+
footer?(_: {}): any;
|
|
19
18
|
};
|
|
20
19
|
refs: {
|
|
21
20
|
markdownBodyRef: HTMLDivElement;
|
|
@@ -23,22 +22,14 @@ declare function __VLS_template(): {
|
|
|
23
22
|
rootEl: HTMLDivElement;
|
|
24
23
|
};
|
|
25
24
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
26
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
27
|
-
download: () => any;
|
|
28
|
-
collect: () => any;
|
|
29
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
30
|
-
onDownload?: (() => any) | undefined;
|
|
31
|
-
onCollect?: (() => any) | undefined;
|
|
32
|
-
}>, {
|
|
33
|
-
enableDownload: boolean;
|
|
34
|
-
enableStar: boolean;
|
|
25
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
35
26
|
disableChangeCodeTheme: boolean;
|
|
36
|
-
disableH1: boolean;
|
|
37
27
|
disableH2: boolean;
|
|
38
28
|
disableTable: boolean;
|
|
39
29
|
disableImg: boolean;
|
|
40
30
|
disableCode: boolean;
|
|
41
31
|
markdownBodyClass: string;
|
|
32
|
+
hideFirstH1: boolean;
|
|
42
33
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
43
34
|
markdownBodyRef: HTMLDivElement;
|
|
44
35
|
}, HTMLDivElement>;
|
|
@@ -2,7 +2,7 @@ import _sfc_main from "./OMarkdown.vue2.mjs";
|
|
|
2
2
|
import './OMarkdown.css';
|
|
3
3
|
import './OMarkdown2.css';
|
|
4
4
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
-
const _OMarkdown = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const _OMarkdown = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b845f428"]]);
|
|
6
6
|
export {
|
|
7
7
|
_OMarkdown as default
|
|
8
8
|
};
|
|
@@ -1,38 +1,27 @@
|
|
|
1
|
-
import { defineComponent,
|
|
2
|
-
import { mountMarkdownPageTitle } from "./replacer/h1.mjs";
|
|
1
|
+
import { defineComponent, getCurrentInstance, ref, computed, onMounted, nextTick, onBeforeUnmount, openBlock, createElementBlock, normalizeClass, renderSlot, createElementVNode } from "vue";
|
|
3
2
|
import { mountMarkdownTitle } from "./replacer/h2.mjs";
|
|
4
3
|
import { mountMarkdownTable } from "./replacer/table.mjs";
|
|
5
4
|
import { mountMarkdownImage } from "./replacer/img.mjs";
|
|
6
5
|
import { mountMarkdownCode } from "./replacer/code.mjs";
|
|
6
|
+
const _hoisted_1 = { class: "o-markdown-content" };
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "OMarkdown",
|
|
9
9
|
props: {
|
|
10
|
-
disableH1: { type: Boolean, default: false },
|
|
11
10
|
disableH2: { type: Boolean, default: false },
|
|
12
11
|
disableTable: { type: Boolean, default: false },
|
|
13
12
|
disableImg: { type: Boolean, default: false },
|
|
14
13
|
disableCode: { type: Boolean, default: false },
|
|
15
14
|
disableChangeCodeTheme: { type: Boolean, default: false },
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
titleBg: {},
|
|
19
|
-
enableDownload: { type: Boolean, default: false },
|
|
20
|
-
enableStar: { type: Boolean, default: false },
|
|
21
|
-
markdownBodyClass: { default: "o-markdown-body" }
|
|
15
|
+
markdownBodyClass: { default: "o-markdown-body" },
|
|
16
|
+
hideFirstH1: { type: Boolean, default: false }
|
|
22
17
|
},
|
|
23
|
-
|
|
24
|
-
setup(__props, { emit: __emit }) {
|
|
18
|
+
setup(__props) {
|
|
25
19
|
const props = __props;
|
|
26
|
-
const sourceUrlRef = computed(() => props.sourceUrl);
|
|
27
|
-
const updateTimeRef = computed(() => props.updateTime);
|
|
28
|
-
const titleBgRef = computed(() => props.titleBg);
|
|
29
|
-
const enableDownloadRef = computed(() => props.enableDownload);
|
|
30
|
-
const enableStarRef = computed(() => props.enableStar);
|
|
31
|
-
const emit = __emit;
|
|
32
20
|
const unbindMap = /* @__PURE__ */ new WeakMap();
|
|
33
21
|
const instance = getCurrentInstance();
|
|
34
22
|
const markdownBodyRef = ref();
|
|
35
23
|
const mounted = ref(false);
|
|
24
|
+
const firstH1 = ref();
|
|
36
25
|
let observer;
|
|
37
26
|
let context;
|
|
38
27
|
const getContext = () => {
|
|
@@ -46,17 +35,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
35
|
};
|
|
47
36
|
const selectorMap = computed(() => {
|
|
48
37
|
const map = {};
|
|
49
|
-
if (!props.disableH1) {
|
|
50
|
-
map.h1 = (el, ctx) => mountMarkdownPageTitle(el, ctx, {
|
|
51
|
-
sourceUrl: sourceUrlRef,
|
|
52
|
-
updateTime: updateTimeRef,
|
|
53
|
-
titleBg: titleBgRef,
|
|
54
|
-
enableDownload: enableDownloadRef,
|
|
55
|
-
enableStar: enableStarRef,
|
|
56
|
-
onDownload: () => emit("download"),
|
|
57
|
-
onCollect: () => emit("collect")
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
38
|
if (!props.disableH2) {
|
|
61
39
|
map.h2 = mountMarkdownTitle;
|
|
62
40
|
}
|
|
@@ -93,6 +71,33 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
93
71
|
}
|
|
94
72
|
});
|
|
95
73
|
};
|
|
74
|
+
const applyHandleFirstElement = () => {
|
|
75
|
+
const root = markdownBodyRef.value;
|
|
76
|
+
const target = root == null ? void 0 : root.firstElementChild;
|
|
77
|
+
if (!target) {
|
|
78
|
+
firstH1.value = void 0;
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
let container = root;
|
|
82
|
+
if (target.tagName === "DIV" && root.childElementCount === 1) {
|
|
83
|
+
container = target;
|
|
84
|
+
}
|
|
85
|
+
const firstContent = container.firstElementChild;
|
|
86
|
+
if (!firstContent) {
|
|
87
|
+
firstH1.value = void 0;
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
firstH1.value = firstContent.tagName === "H1" ? firstContent : void 0;
|
|
91
|
+
if (props.hideFirstH1 && firstContent.tagName === "H1") {
|
|
92
|
+
firstContent.style.display = "none";
|
|
93
|
+
const next = firstContent.nextElementSibling;
|
|
94
|
+
if (next) {
|
|
95
|
+
next.style.marginTop = "0";
|
|
96
|
+
}
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
firstContent.style.marginTop = "0";
|
|
100
|
+
};
|
|
96
101
|
const processMutations = (mutations) => {
|
|
97
102
|
const activeMap = selectorMap.value;
|
|
98
103
|
const selectors = Object.keys(activeMap);
|
|
@@ -130,15 +135,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
130
135
|
});
|
|
131
136
|
});
|
|
132
137
|
}
|
|
138
|
+
applyHandleFirstElement();
|
|
133
139
|
};
|
|
134
140
|
onMounted(async () => {
|
|
135
141
|
await nextTick();
|
|
136
142
|
Object.keys(selectorMap.value).forEach((selector) => {
|
|
137
143
|
mountComponent(markdownBodyRef.value, selector);
|
|
138
144
|
});
|
|
139
|
-
mounted.value = true;
|
|
140
145
|
observer = new MutationObserver(processMutations);
|
|
141
146
|
observer.observe(markdownBodyRef.value, { childList: true, subtree: true });
|
|
147
|
+
applyHandleFirstElement();
|
|
148
|
+
mounted.value = true;
|
|
142
149
|
});
|
|
143
150
|
onBeforeUnmount(() => {
|
|
144
151
|
observer == null ? void 0 : observer.disconnect();
|
|
@@ -147,13 +154,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
147
154
|
return openBlock(), createElementBlock("div", {
|
|
148
155
|
class: normalizeClass(["o-markdown", { unmounted: !mounted.value }])
|
|
149
156
|
}, [
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
+
renderSlot(_ctx.$slots, "header", { h1: firstH1.value }, void 0, true),
|
|
158
|
+
createElementVNode("div", _hoisted_1, [
|
|
159
|
+
createElementVNode("div", {
|
|
160
|
+
ref_key: "markdownBodyRef",
|
|
161
|
+
ref: markdownBodyRef,
|
|
162
|
+
class: normalizeClass(__props.markdownBodyClass)
|
|
163
|
+
}, [
|
|
164
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
165
|
+
], 2),
|
|
166
|
+
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
167
|
+
])
|
|
157
168
|
], 2);
|
|
158
169
|
};
|
|
159
170
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
.hover-icon-rotate .o-icon[data-v-
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-b845f428] {
|
|
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-b845f428] {
|
|
6
6
|
transform: rotate(-180deg);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
.o-markdown.unmounted[data-v-
|
|
9
|
+
.o-markdown.unmounted[data-v-b845f428] .o-markdown-body table {
|
|
10
10
|
display: block !important;
|
|
11
11
|
overflow: hidden !important;
|
|
12
12
|
max-height: calc(100vh - 210px) !important;
|