vue-layout-gitcode 1.12.15-beta.16 → 1.12.15-beta.18
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/{GloabarSearch-BfKmJi_q.js → GloabarSearch-C1fR51x2.js} +4 -4
- package/{MenuItem-Bhz2xGuE.js → MenuItem-BdW7SHdF.js} +2 -2
- package/{ProjectMenuList-Ci-m9quY.js → ProjectMenuList-Cqbkm-ZV.js} +11 -11
- package/{ProjectMenuListV2-B0g2gpwj.js → ProjectMenuListV2-iY7cnWA_.js} +4 -4
- package/{ProjectSearch-sRELCn6C.js → ProjectSearch-Bur3edSa.js} +2 -2
- package/{SearchHistoryList-CtdFVEod.js → SearchHistoryList-B2rmOBJR.js} +6 -6
- package/{SearchRecommed-B5ORMeCc.js → SearchRecommed-B7utMXGE.js} +3 -3
- package/{SearchScopeList-DiGyzPIl.js → SearchScopeList-d1zkEhS3.js} +3 -3
- package/{UserSearch-E4s6K2L8.js → UserSearch-DH5fyfb6.js} +2 -2
- package/{index-DZyZIqvu.js → index-74FrLVfr.js} +2868 -1559
- package/{index-CtHLYUVh.js → index-BDSapsqq.js} +6 -5
- package/{index-5jNX3P01.js → index-BXdUGH-Y.js} +2 -2
- package/{index-D7rVJoTw.js → index-CIdAghB3.js} +48 -45
- package/index.d.ts +404 -520
- package/index.js +16 -13
- package/{notice-XD-m4ZVb.js → notice-Bmt7HiCc.js} +13 -11
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-CtOYQG2D.js → transWebUrl-B5P10ESJ.js} +1 -1
package/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AccountInfo } from '../../types/types';
|
|
2
2
|
import { App } from '../vue/dist/vue.esm-bundler.js';
|
|
3
|
-
import { AxiosResponse } from 'axios';
|
|
4
3
|
import { ComponentOptionsMixin } from '../../../vue/dist/vue.esm-bundler.js';
|
|
5
4
|
import { ComponentOptionsMixin as ComponentOptionsMixin_2 } from '../../../../vue/dist/vue.esm-bundler.js';
|
|
6
5
|
import { ComponentProvideOptions } from '../../../vue/dist/vue.esm-bundler.js';
|
|
@@ -9,141 +8,256 @@ import { currentTheme } from './themes/index';
|
|
|
9
8
|
import { DefineComponent } from '../../../vue/dist/vue.esm-bundler.js';
|
|
10
9
|
import { DefineComponent as DefineComponent_2 } from '../../../../vue/dist/vue.esm-bundler.js';
|
|
11
10
|
import { Emitter } from 'mitt';
|
|
12
|
-
import { ExtractPropTypes } from '../../../vue/dist/vue.esm-bundler.js';
|
|
13
11
|
import { HeaderPropsForCustom } from '../../types/types';
|
|
14
12
|
import { OrgInfo } from '../../types/types';
|
|
15
|
-
import { PropType } from '../../../vue/dist/vue.esm-bundler.js';
|
|
16
13
|
import { PublicProps } from '../../../vue/dist/vue.esm-bundler.js';
|
|
17
14
|
import { PublicProps as PublicProps_2 } from '../../../../vue/dist/vue.esm-bundler.js';
|
|
15
|
+
import { Ref } from '../../../vue/dist/vue.esm-bundler.js';
|
|
18
16
|
import { repoInfoType } from '../../types/types';
|
|
19
17
|
import { setTheme } from './themes/index';
|
|
20
18
|
import { UserInfo } from '../../types/types';
|
|
21
19
|
|
|
22
|
-
declare
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
} & {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
} & {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
20
|
+
declare const __VLS_component: DefineComponent<Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_2> & Readonly<{}>, {
|
|
21
|
+
globalStore: Object;
|
|
22
|
+
sceneValue: SceneValue;
|
|
23
|
+
request: Function;
|
|
24
|
+
userInfo: AccountInfo;
|
|
25
|
+
independence: boolean;
|
|
26
|
+
slotKeys: Array<string>;
|
|
27
|
+
showThemeSetting: boolean;
|
|
28
|
+
showLangSetting: boolean;
|
|
29
|
+
showPreferencesSetting: boolean;
|
|
30
|
+
collapseMode: boolean;
|
|
31
|
+
disableFlatMode: boolean;
|
|
32
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
|
|
34
|
+
declare const __VLS_component_2: DefineComponent<Props_4, {
|
|
35
|
+
containerEl: Ref<HTMLElement | null, HTMLElement | null>;
|
|
36
|
+
contentEl: Ref<HTMLElement | null, HTMLElement | null>;
|
|
37
|
+
trackEl: Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
38
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
39
|
+
mouseenter: (event: MouseEvent) => any;
|
|
40
|
+
mouseleave: (event: MouseEvent) => any;
|
|
41
|
+
scroll: (event: Event) => any;
|
|
42
|
+
}, string, PublicProps, Readonly<Props_4> & Readonly<{
|
|
43
|
+
onMouseenter?: ((event: MouseEvent) => any) | undefined;
|
|
44
|
+
onMouseleave?: ((event: MouseEvent) => any) | undefined;
|
|
45
|
+
onScroll?: ((event: Event) => any) | undefined;
|
|
46
|
+
}>, {
|
|
47
|
+
timeout: number;
|
|
48
|
+
tag: string;
|
|
49
|
+
direction: "vertical" | "horizontal";
|
|
50
|
+
visibleOnHover: boolean;
|
|
51
|
+
wrapperClass: string;
|
|
52
|
+
contentClass: string;
|
|
53
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
54
|
+
containerRef: unknown;
|
|
55
|
+
contentRef: HTMLDivElement;
|
|
56
|
+
trackRef: HTMLDivElement;
|
|
57
|
+
}, any>;
|
|
58
|
+
|
|
59
|
+
declare const __VLS_component_3: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
60
|
+
resetPwdDirectlySuccess: (...args: any[]) => void;
|
|
61
|
+
followDevCommunity: (...args: any[]) => void;
|
|
62
|
+
followUser: (...args: any[]) => void;
|
|
63
|
+
"update:openCreateDropdown": (...args: any[]) => void;
|
|
64
|
+
}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{
|
|
65
|
+
onResetPwdDirectlySuccess?: ((...args: any[]) => any) | undefined;
|
|
66
|
+
onFollowDevCommunity?: ((...args: any[]) => any) | undefined;
|
|
67
|
+
onFollowUser?: ((...args: any[]) => any) | undefined;
|
|
68
|
+
"onUpdate:openCreateDropdown"?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
}>, {
|
|
70
|
+
globalStore: Object;
|
|
71
|
+
isLogin: boolean;
|
|
72
|
+
sceneValue: SceneValue;
|
|
73
|
+
request: Function;
|
|
74
|
+
repoInfo: repoInfoType;
|
|
75
|
+
orgInfo: OrgInfo;
|
|
76
|
+
otherUserInfo: UserInfo;
|
|
77
|
+
userInfo: UserInfo;
|
|
78
|
+
independence: boolean;
|
|
79
|
+
headerBorder: boolean;
|
|
80
|
+
bgConfig: {
|
|
81
|
+
index_head: string;
|
|
82
|
+
detail_top: string;
|
|
83
|
+
detail_top_black: string;
|
|
84
|
+
detail_toolbar: string;
|
|
85
|
+
detail_toolbar_black: string;
|
|
86
|
+
detail_top_url: string;
|
|
87
|
+
index_head_url: string;
|
|
88
|
+
detail_toolbar_url: string;
|
|
65
89
|
};
|
|
90
|
+
openCreateDropdown: boolean;
|
|
91
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
92
|
+
headerRef: HTMLDivElement;
|
|
93
|
+
}, HTMLDivElement>;
|
|
66
94
|
|
|
67
|
-
declare
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
95
|
+
declare const __VLS_component_4: DefineComponent<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
96
|
+
resetPwdDirectlySuccess: (...args: any[]) => void;
|
|
97
|
+
followDevCommunity: (...args: any[]) => void;
|
|
98
|
+
followUser: (...args: any[]) => void;
|
|
99
|
+
}, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{
|
|
100
|
+
onResetPwdDirectlySuccess?: ((...args: any[]) => any) | undefined;
|
|
101
|
+
onFollowDevCommunity?: ((...args: any[]) => any) | undefined;
|
|
102
|
+
onFollowUser?: ((...args: any[]) => any) | undefined;
|
|
103
|
+
}>, {
|
|
104
|
+
globalStore: Object;
|
|
105
|
+
isLogin: boolean;
|
|
106
|
+
request: Function;
|
|
107
|
+
orgInfo: OrgInfo;
|
|
108
|
+
userInfo: UserInfo;
|
|
109
|
+
independence: boolean;
|
|
110
|
+
headerBorder: boolean;
|
|
111
|
+
enterpriseInfo: OrgInfo;
|
|
112
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
113
|
+
headerRef: HTMLDivElement;
|
|
114
|
+
}, HTMLDivElement>;
|
|
75
115
|
|
|
76
|
-
declare type
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
116
|
+
declare type __VLS_Props = {
|
|
117
|
+
isLogin: boolean;
|
|
118
|
+
request: Function;
|
|
119
|
+
loginOutFinish?: Function;
|
|
120
|
+
loginSuccess: Function;
|
|
121
|
+
globalStore: Object;
|
|
122
|
+
openHarmonyGuide: boolean;
|
|
83
123
|
};
|
|
84
124
|
|
|
85
|
-
declare type
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
125
|
+
declare type __VLS_Props_2 = {
|
|
126
|
+
sceneValue: SceneValue;
|
|
127
|
+
isLogin: boolean;
|
|
128
|
+
request: Function;
|
|
129
|
+
loginOutFinish?: Function;
|
|
130
|
+
loginSuccess: Function;
|
|
131
|
+
globalStore: Object;
|
|
132
|
+
repoInfo?: repoInfoType;
|
|
133
|
+
orgInfo?: OrgInfo;
|
|
134
|
+
otherUserInfo?: UserInfo;
|
|
135
|
+
userInfo?: UserInfo;
|
|
136
|
+
headerFunctions?: HeaderDisplayItem[];
|
|
137
|
+
headerCustomProps?: HeaderPropsForCustom;
|
|
138
|
+
openHarmonyGuide: boolean;
|
|
139
|
+
headerBorder?: boolean;
|
|
140
|
+
independence?: boolean;
|
|
141
|
+
userMenus?: any[];
|
|
142
|
+
loginChildComponents: any;
|
|
143
|
+
bgConfig?: {
|
|
144
|
+
index_head: string;
|
|
145
|
+
detail_top: string;
|
|
146
|
+
detail_top_black: string;
|
|
147
|
+
detail_toolbar: string;
|
|
148
|
+
detail_toolbar_black: string;
|
|
149
|
+
detail_top_url: string;
|
|
150
|
+
index_head_url: string;
|
|
151
|
+
detail_toolbar_url: string;
|
|
91
152
|
};
|
|
153
|
+
openCreateDropdown?: boolean;
|
|
92
154
|
};
|
|
93
155
|
|
|
94
|
-
declare type
|
|
95
|
-
[
|
|
96
|
-
|
|
97
|
-
} : {
|
|
98
|
-
type: PropType<T[K]>;
|
|
99
|
-
required: true;
|
|
100
|
-
};
|
|
156
|
+
declare type __VLS_Props_3 = {
|
|
157
|
+
customItems?: HomePageSidebarItem[];
|
|
158
|
+
fallbacks?: Partial<HomeHeaderActionUrls>;
|
|
101
159
|
};
|
|
102
160
|
|
|
103
|
-
declare type
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
161
|
+
declare type __VLS_Props_4 = {
|
|
162
|
+
isLogin: boolean;
|
|
163
|
+
request: Function;
|
|
164
|
+
globalStore: Object;
|
|
165
|
+
loginSuccess: Function;
|
|
166
|
+
enterpriseInfo: OrgInfo;
|
|
167
|
+
loginOutFinish?: Function;
|
|
168
|
+
orgInfo?: OrgInfo;
|
|
169
|
+
userInfo?: UserInfo;
|
|
170
|
+
headerFunctions?: HeaderDisplayItem[];
|
|
171
|
+
openHarmonyGuide: boolean;
|
|
172
|
+
headerBorder?: boolean;
|
|
173
|
+
independence?: boolean;
|
|
174
|
+
userMenus?: any[];
|
|
175
|
+
loginChildComponents: any;
|
|
110
176
|
};
|
|
111
177
|
|
|
112
|
-
declare type
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
178
|
+
declare type __VLS_Props_5 = {
|
|
179
|
+
/** 展示主题设置项,默认 true */
|
|
180
|
+
showThemeSetting?: boolean;
|
|
181
|
+
/** 展示语言设置项,默认 true */
|
|
182
|
+
showLangSetting?: boolean;
|
|
183
|
+
/**
|
|
184
|
+
* 下拉菜单弹出位置,默认 `['bottom-end']`。
|
|
185
|
+
* 宿主如果把本组件放在页面底部,可传 `['top-end']` 避免菜单被视口下沿裁掉。
|
|
186
|
+
*/
|
|
187
|
+
position?: string[];
|
|
116
188
|
};
|
|
117
189
|
|
|
118
|
-
declare
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
190
|
+
declare function __VLS_template(): {
|
|
191
|
+
attrs: Partial<{}>;
|
|
192
|
+
slots: Partial<Record<string, (_: {}) => any>>;
|
|
193
|
+
refs: {};
|
|
194
|
+
rootEl: any;
|
|
122
195
|
};
|
|
123
196
|
|
|
124
|
-
declare
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
197
|
+
declare function __VLS_template_2(): {
|
|
198
|
+
attrs: Partial<{}>;
|
|
199
|
+
slots: {
|
|
200
|
+
default?(_: {}): any;
|
|
201
|
+
};
|
|
202
|
+
refs: {
|
|
203
|
+
containerRef: unknown;
|
|
204
|
+
contentRef: HTMLDivElement;
|
|
205
|
+
trackRef: HTMLDivElement;
|
|
206
|
+
};
|
|
207
|
+
rootEl: any;
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
declare function __VLS_template_3(): {
|
|
211
|
+
attrs: Partial<{}>;
|
|
212
|
+
slots: {
|
|
213
|
+
headerCustom?(_: {}): any;
|
|
214
|
+
aiSearch?(_: {}): any;
|
|
215
|
+
headerMiddleRight?(_: {}): any;
|
|
216
|
+
search?(_: {}): any;
|
|
217
|
+
searchRecommend?(_: {}): any;
|
|
218
|
+
globalSearch?(_: {
|
|
219
|
+
searchStr: string;
|
|
220
|
+
searchMore: (type: any) => void;
|
|
221
|
+
}): any;
|
|
222
|
+
headerActions?(_: {}): any;
|
|
223
|
+
bodyHeader?(_: {}): any;
|
|
224
|
+
info?(_: {}): any;
|
|
225
|
+
menu?(_: {}): any;
|
|
226
|
+
headerBottom?(_: {}): any;
|
|
227
|
+
};
|
|
228
|
+
refs: {
|
|
229
|
+
headerRef: HTMLDivElement;
|
|
230
|
+
};
|
|
231
|
+
rootEl: HTMLDivElement;
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
declare function __VLS_template_4(): {
|
|
235
|
+
attrs: Partial<{}>;
|
|
236
|
+
slots: {
|
|
237
|
+
search?(_: {}): any;
|
|
238
|
+
searchRecommend?(_: {}): any;
|
|
239
|
+
globalSearch?(_: {
|
|
240
|
+
searchStr: string;
|
|
241
|
+
searchMore: (type: any) => void;
|
|
242
|
+
}): any;
|
|
243
|
+
bodyHeader?(_: {}): any;
|
|
244
|
+
info?(_: {}): any;
|
|
245
|
+
menu?(_: {}): any;
|
|
246
|
+
headerBottom?(_: {}): any;
|
|
247
|
+
};
|
|
248
|
+
refs: {
|
|
249
|
+
headerRef: HTMLDivElement;
|
|
250
|
+
};
|
|
251
|
+
rootEl: HTMLDivElement;
|
|
128
252
|
};
|
|
129
253
|
|
|
130
|
-
declare type
|
|
131
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_4<P[K] & {
|
|
132
|
-
default: D[K];
|
|
133
|
-
}> : P[K];
|
|
134
|
-
};
|
|
254
|
+
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
135
255
|
|
|
136
|
-
declare type
|
|
137
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_5<P[K] & {
|
|
138
|
-
default: D[K];
|
|
139
|
-
}> : P[K];
|
|
140
|
-
};
|
|
256
|
+
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
141
257
|
|
|
142
|
-
declare type
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}> : P[K];
|
|
146
|
-
};
|
|
258
|
+
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
259
|
+
|
|
260
|
+
declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
|
|
147
261
|
|
|
148
262
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
149
263
|
new (): {
|
|
@@ -163,39 +277,17 @@ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
|
|
|
163
277
|
};
|
|
164
278
|
};
|
|
165
279
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
* 宿主如果把本组件放在页面底部,可传 `['top-end']` 避免菜单被视口下沿裁掉。
|
|
174
|
-
*/
|
|
175
|
-
position?: string[] | undefined;
|
|
176
|
-
}>, {
|
|
177
|
-
showThemeSetting: boolean;
|
|
178
|
-
showLangSetting: boolean;
|
|
179
|
-
position: () => string[];
|
|
180
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_6<__VLS_TypePropsToRuntimeProps_6<{
|
|
181
|
-
/** 展示主题设置项,默认 true */
|
|
182
|
-
showThemeSetting?: boolean | undefined;
|
|
183
|
-
/** 展示语言设置项,默认 true */
|
|
184
|
-
showLangSetting?: boolean | undefined;
|
|
185
|
-
/**
|
|
186
|
-
* 下拉菜单弹出位置,默认 `['bottom-end']`。
|
|
187
|
-
* 宿主如果把本组件放在页面底部,可传 `['top-end']` 避免菜单被视口下沿裁掉。
|
|
188
|
-
*/
|
|
189
|
-
position?: string[] | undefined;
|
|
190
|
-
}>, {
|
|
191
|
-
showThemeSetting: boolean;
|
|
192
|
-
showLangSetting: boolean;
|
|
193
|
-
position: () => string[];
|
|
194
|
-
}>>> & Readonly<{}>, {
|
|
280
|
+
declare type __VLS_WithTemplateSlots_4<T, S> = T & {
|
|
281
|
+
new (): {
|
|
282
|
+
$slots: S;
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
export declare const AsideFooterTools: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{}>, {
|
|
195
287
|
position: string[];
|
|
196
288
|
showThemeSetting: boolean;
|
|
197
289
|
showLangSetting: boolean;
|
|
198
|
-
}, {}, {}, {}, string, ComponentProvideOptions,
|
|
290
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
199
291
|
|
|
200
292
|
declare interface BaseLayoutConfig {
|
|
201
293
|
VITE_HOST: string;
|
|
@@ -221,109 +313,7 @@ declare const _default: {
|
|
|
221
313
|
};
|
|
222
314
|
export default _default;
|
|
223
315
|
|
|
224
|
-
export declare const EnterpriseHeader:
|
|
225
|
-
isLogin: boolean;
|
|
226
|
-
request: Function;
|
|
227
|
-
globalStore: Object;
|
|
228
|
-
loginSuccess: Function;
|
|
229
|
-
enterpriseInfo: OrgInfo;
|
|
230
|
-
loginOutFinish?: Function | undefined;
|
|
231
|
-
orgInfo?: OrgInfo | undefined;
|
|
232
|
-
userInfo?: UserInfo | undefined;
|
|
233
|
-
headerFunctions?: HeaderDisplayItem[] | undefined;
|
|
234
|
-
openHarmonyGuide: boolean;
|
|
235
|
-
headerBorder?: boolean | undefined;
|
|
236
|
-
independence?: boolean | undefined;
|
|
237
|
-
userMenus?: any[] | undefined;
|
|
238
|
-
loginChildComponents: any;
|
|
239
|
-
}>, {
|
|
240
|
-
headerBorder: boolean;
|
|
241
|
-
isLogin: boolean;
|
|
242
|
-
independence: boolean;
|
|
243
|
-
request: (params: any, customConfigs?: {
|
|
244
|
-
customError?: boolean | undefined;
|
|
245
|
-
customTimeout?: number | undefined;
|
|
246
|
-
ignoreError?: boolean | undefined;
|
|
247
|
-
customErrorCodes?: number[] | undefined;
|
|
248
|
-
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
249
|
-
globalStore: () => {
|
|
250
|
-
httpStatus: number;
|
|
251
|
-
};
|
|
252
|
-
orgInfo: () => {
|
|
253
|
-
avatar: string;
|
|
254
|
-
name: string;
|
|
255
|
-
};
|
|
256
|
-
userInfo: () => {};
|
|
257
|
-
enterpriseInfo: () => {
|
|
258
|
-
avatar: string;
|
|
259
|
-
name: string;
|
|
260
|
-
};
|
|
261
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
262
|
-
resetPwdDirectlySuccess: (...args: any[]) => void;
|
|
263
|
-
followDevCommunity: (...args: any[]) => void;
|
|
264
|
-
followUser: (...args: any[]) => void;
|
|
265
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToRuntimeProps_5<{
|
|
266
|
-
isLogin: boolean;
|
|
267
|
-
request: Function;
|
|
268
|
-
globalStore: Object;
|
|
269
|
-
loginSuccess: Function;
|
|
270
|
-
enterpriseInfo: OrgInfo;
|
|
271
|
-
loginOutFinish?: Function | undefined;
|
|
272
|
-
orgInfo?: OrgInfo | undefined;
|
|
273
|
-
userInfo?: UserInfo | undefined;
|
|
274
|
-
headerFunctions?: HeaderDisplayItem[] | undefined;
|
|
275
|
-
openHarmonyGuide: boolean;
|
|
276
|
-
headerBorder?: boolean | undefined;
|
|
277
|
-
independence?: boolean | undefined;
|
|
278
|
-
userMenus?: any[] | undefined;
|
|
279
|
-
loginChildComponents: any;
|
|
280
|
-
}>, {
|
|
281
|
-
headerBorder: boolean;
|
|
282
|
-
isLogin: boolean;
|
|
283
|
-
independence: boolean;
|
|
284
|
-
request: (params: any, customConfigs?: {
|
|
285
|
-
customError?: boolean | undefined;
|
|
286
|
-
customTimeout?: number | undefined;
|
|
287
|
-
ignoreError?: boolean | undefined;
|
|
288
|
-
customErrorCodes?: number[] | undefined;
|
|
289
|
-
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
290
|
-
globalStore: () => {
|
|
291
|
-
httpStatus: number;
|
|
292
|
-
};
|
|
293
|
-
orgInfo: () => {
|
|
294
|
-
avatar: string;
|
|
295
|
-
name: string;
|
|
296
|
-
};
|
|
297
|
-
userInfo: () => {};
|
|
298
|
-
enterpriseInfo: () => {
|
|
299
|
-
avatar: string;
|
|
300
|
-
name: string;
|
|
301
|
-
};
|
|
302
|
-
}>>> & Readonly<{
|
|
303
|
-
onResetPwdDirectlySuccess?: ((...args: any[]) => any) | undefined;
|
|
304
|
-
onFollowDevCommunity?: ((...args: any[]) => any) | undefined;
|
|
305
|
-
onFollowUser?: ((...args: any[]) => any) | undefined;
|
|
306
|
-
}>, {
|
|
307
|
-
globalStore: Object;
|
|
308
|
-
isLogin: boolean;
|
|
309
|
-
request: Function;
|
|
310
|
-
orgInfo: OrgInfo;
|
|
311
|
-
userInfo: UserInfo;
|
|
312
|
-
independence: boolean;
|
|
313
|
-
headerBorder: boolean;
|
|
314
|
-
enterpriseInfo: OrgInfo;
|
|
315
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
316
|
-
search?(_: {}): any;
|
|
317
|
-
searchRecommend?(_: {}): any;
|
|
318
|
-
globalSearch?(_: {
|
|
319
|
-
searchStr: string;
|
|
320
|
-
searchMore: (type: any) => void;
|
|
321
|
-
}): any;
|
|
322
|
-
bodyHeader?(_: {}): any;
|
|
323
|
-
info?(_: {}): any;
|
|
324
|
-
menu?(_: {}): any;
|
|
325
|
-
headerBottom?(_: {}): any;
|
|
326
|
-
}>;
|
|
316
|
+
export declare const EnterpriseHeader: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
327
317
|
|
|
328
318
|
declare type EventBus = {
|
|
329
319
|
logout?: boolean;
|
|
@@ -355,225 +345,69 @@ declare type EventBus = {
|
|
|
355
345
|
resetPwdDirectlySuccess: void;
|
|
356
346
|
};
|
|
357
347
|
|
|
358
|
-
export declare const GitCodeAside: __VLS_WithTemplateSlots<
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
showPreferencesSetting: undefined;
|
|
373
|
-
showThemeSetting: undefined;
|
|
374
|
-
showLangSetting: undefined;
|
|
375
|
-
/** 默认展示小侧边栏,收起隐藏 */
|
|
376
|
-
collapseMode: boolean;
|
|
377
|
-
/** 需要显示hover的slotKeys */
|
|
378
|
-
slotKeys: () => never[];
|
|
379
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_3<Props_2>, {
|
|
380
|
-
sceneValue: SceneValue;
|
|
381
|
-
disableFlatMode: boolean;
|
|
382
|
-
request: (params: any, customConfigs?: {
|
|
383
|
-
customError?: boolean | undefined;
|
|
384
|
-
customTimeout?: number | undefined;
|
|
385
|
-
ignoreError?: boolean | undefined;
|
|
386
|
-
customErrorCodes?: number[] | undefined;
|
|
387
|
-
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
388
|
-
globalStore: () => {
|
|
389
|
-
httpStatus: number;
|
|
390
|
-
};
|
|
391
|
-
userInfo: () => {};
|
|
392
|
-
independence: boolean;
|
|
393
|
-
showPreferencesSetting: undefined;
|
|
394
|
-
showThemeSetting: undefined;
|
|
395
|
-
showLangSetting: undefined;
|
|
396
|
-
/** 默认展示小侧边栏,收起隐藏 */
|
|
397
|
-
collapseMode: boolean;
|
|
398
|
-
/** 需要显示hover的slotKeys */
|
|
399
|
-
slotKeys: () => never[];
|
|
400
|
-
}>>> & Readonly<{}>, {
|
|
401
|
-
globalStore: Object;
|
|
348
|
+
export declare const GitCodeAside: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
349
|
+
|
|
350
|
+
export declare const GitCodeAsideV2: DefineComponent<Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
351
|
+
select: (item: HomeChannelStoreItem) => any;
|
|
352
|
+
"update:modelValue": (val: string) => any;
|
|
353
|
+
"update:activeChannel": (val: string) => any;
|
|
354
|
+
channelChange: (item: HomeChannelStoreItem) => any;
|
|
355
|
+
}, string, PublicProps, Readonly<Props_3> & Readonly<{
|
|
356
|
+
onSelect?: ((item: HomeChannelStoreItem) => any) | undefined;
|
|
357
|
+
"onUpdate:modelValue"?: ((val: string) => any) | undefined;
|
|
358
|
+
"onUpdate:activeChannel"?: ((val: string) => any) | undefined;
|
|
359
|
+
onChannelChange?: ((item: HomeChannelStoreItem) => any) | undefined;
|
|
360
|
+
}>, {
|
|
361
|
+
globalStore: Record<string, unknown>;
|
|
402
362
|
sceneValue: SceneValue;
|
|
403
363
|
request: Function;
|
|
364
|
+
modelValue: string;
|
|
404
365
|
userInfo: AccountInfo;
|
|
405
366
|
independence: boolean;
|
|
406
|
-
slotKeys: string[];
|
|
407
367
|
showThemeSetting: boolean;
|
|
408
368
|
showLangSetting: boolean;
|
|
409
|
-
showPreferencesSetting: boolean;
|
|
410
369
|
collapseMode: boolean;
|
|
411
370
|
disableFlatMode: boolean;
|
|
412
|
-
|
|
371
|
+
singleCol: boolean;
|
|
372
|
+
channels: HomeChannelStoreItem[];
|
|
373
|
+
activeChannel: string;
|
|
374
|
+
onChannelChange: (item: HomeChannelStoreItem) => void;
|
|
375
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
413
376
|
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
request: (params: any, customConfigs?: {
|
|
449
|
-
customError?: boolean | undefined;
|
|
450
|
-
customTimeout?: number | undefined;
|
|
451
|
-
ignoreError?: boolean | undefined;
|
|
452
|
-
customErrorCodes?: number[] | undefined;
|
|
453
|
-
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
454
|
-
globalStore: () => {
|
|
455
|
-
httpStatus: number;
|
|
456
|
-
};
|
|
457
|
-
repoInfo: () => {};
|
|
458
|
-
orgInfo: () => {};
|
|
459
|
-
otherUserInfo: () => {};
|
|
460
|
-
userInfo: () => {};
|
|
461
|
-
bgConfig: () => {
|
|
462
|
-
index_head: string;
|
|
463
|
-
detail_top: string;
|
|
464
|
-
detail_top_black: string;
|
|
465
|
-
detail_toolbar: string;
|
|
466
|
-
detail_toolbar_black: string;
|
|
467
|
-
detail_top_url: string;
|
|
468
|
-
index_head_url: string;
|
|
469
|
-
detail_toolbar_url: string;
|
|
470
|
-
};
|
|
471
|
-
openCreateDropdown: boolean;
|
|
472
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
473
|
-
resetPwdDirectlySuccess: (...args: any[]) => void;
|
|
474
|
-
followDevCommunity: (...args: any[]) => void;
|
|
475
|
-
followUser: (...args: any[]) => void;
|
|
476
|
-
"update:openCreateDropdown": (...args: any[]) => void;
|
|
477
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<{
|
|
478
|
-
sceneValue: SceneValue;
|
|
479
|
-
isLogin: boolean;
|
|
480
|
-
request: Function;
|
|
481
|
-
loginOutFinish?: Function | undefined;
|
|
482
|
-
loginSuccess: Function;
|
|
483
|
-
globalStore: Object;
|
|
484
|
-
repoInfo?: repoInfoType | undefined;
|
|
485
|
-
orgInfo?: OrgInfo | undefined;
|
|
486
|
-
otherUserInfo?: UserInfo | undefined;
|
|
487
|
-
userInfo?: UserInfo | undefined;
|
|
488
|
-
headerFunctions?: HeaderDisplayItem[] | undefined;
|
|
489
|
-
headerCustomProps?: HeaderPropsForCustom | undefined;
|
|
490
|
-
openHarmonyGuide: boolean;
|
|
491
|
-
headerBorder?: boolean | undefined;
|
|
492
|
-
independence?: boolean | undefined;
|
|
493
|
-
userMenus?: any[] | undefined;
|
|
494
|
-
loginChildComponents: any;
|
|
495
|
-
bgConfig?: {
|
|
496
|
-
index_head: string;
|
|
497
|
-
detail_top: string;
|
|
498
|
-
detail_top_black: string;
|
|
499
|
-
detail_toolbar: string;
|
|
500
|
-
detail_toolbar_black: string;
|
|
501
|
-
detail_top_url: string;
|
|
502
|
-
index_head_url: string;
|
|
503
|
-
detail_toolbar_url: string;
|
|
504
|
-
} | undefined;
|
|
505
|
-
openCreateDropdown?: boolean | undefined;
|
|
506
|
-
}>, {
|
|
507
|
-
sceneValue: any;
|
|
508
|
-
headerBorder: boolean;
|
|
509
|
-
isLogin: boolean;
|
|
510
|
-
independence: boolean;
|
|
511
|
-
request: (params: any, customConfigs?: {
|
|
512
|
-
customError?: boolean | undefined;
|
|
513
|
-
customTimeout?: number | undefined;
|
|
514
|
-
ignoreError?: boolean | undefined;
|
|
515
|
-
customErrorCodes?: number[] | undefined;
|
|
516
|
-
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
517
|
-
globalStore: () => {
|
|
518
|
-
httpStatus: number;
|
|
519
|
-
};
|
|
520
|
-
repoInfo: () => {};
|
|
521
|
-
orgInfo: () => {};
|
|
522
|
-
otherUserInfo: () => {};
|
|
523
|
-
userInfo: () => {};
|
|
524
|
-
bgConfig: () => {
|
|
525
|
-
index_head: string;
|
|
526
|
-
detail_top: string;
|
|
527
|
-
detail_top_black: string;
|
|
528
|
-
detail_toolbar: string;
|
|
529
|
-
detail_toolbar_black: string;
|
|
530
|
-
detail_top_url: string;
|
|
531
|
-
index_head_url: string;
|
|
532
|
-
detail_toolbar_url: string;
|
|
533
|
-
};
|
|
534
|
-
openCreateDropdown: boolean;
|
|
535
|
-
}>>> & Readonly<{
|
|
536
|
-
onResetPwdDirectlySuccess?: ((...args: any[]) => any) | undefined;
|
|
537
|
-
onFollowDevCommunity?: ((...args: any[]) => any) | undefined;
|
|
538
|
-
onFollowUser?: ((...args: any[]) => any) | undefined;
|
|
539
|
-
"onUpdate:openCreateDropdown"?: ((...args: any[]) => any) | undefined;
|
|
540
|
-
}>, {
|
|
541
|
-
globalStore: Object;
|
|
542
|
-
isLogin: boolean;
|
|
543
|
-
sceneValue: SceneValue;
|
|
544
|
-
request: Function;
|
|
545
|
-
repoInfo: repoInfoType;
|
|
546
|
-
orgInfo: OrgInfo;
|
|
547
|
-
otherUserInfo: UserInfo;
|
|
548
|
-
userInfo: UserInfo;
|
|
549
|
-
independence: boolean;
|
|
550
|
-
headerBorder: boolean;
|
|
551
|
-
bgConfig: {
|
|
552
|
-
index_head: string;
|
|
553
|
-
detail_top: string;
|
|
554
|
-
detail_top_black: string;
|
|
555
|
-
detail_toolbar: string;
|
|
556
|
-
detail_toolbar_black: string;
|
|
557
|
-
detail_top_url: string;
|
|
558
|
-
index_head_url: string;
|
|
559
|
-
detail_toolbar_url: string;
|
|
560
|
-
};
|
|
561
|
-
openCreateDropdown: boolean;
|
|
562
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
563
|
-
headerCustom?(_: {}): any;
|
|
564
|
-
aiSearch?(_: {}): any;
|
|
565
|
-
headerMiddleRight?(_: {}): any;
|
|
566
|
-
search?(_: {}): any;
|
|
567
|
-
searchRecommend?(_: {}): any;
|
|
568
|
-
globalSearch?(_: {
|
|
569
|
-
searchStr: string;
|
|
570
|
-
searchMore: (type: any) => void;
|
|
571
|
-
}): any;
|
|
572
|
-
bodyHeader?(_: {}): any;
|
|
573
|
-
info?(_: {}): any;
|
|
574
|
-
menu?(_: {}): any;
|
|
575
|
-
headerBottom?(_: {}): any;
|
|
576
|
-
}>;
|
|
377
|
+
/**
|
|
378
|
+
* GitCodeAsideV2 组件 Props 定义
|
|
379
|
+
*/
|
|
380
|
+
declare interface GitCodeAsideV2Props {
|
|
381
|
+
/** 场景值,默认为 home */
|
|
382
|
+
sceneValue?: SceneValue;
|
|
383
|
+
/** 禁用 flat 模式 */
|
|
384
|
+
disableFlatMode?: boolean;
|
|
385
|
+
/** 单列模式:移动端抽屉或紧凑容器内展示,不包含外层固定定位 */
|
|
386
|
+
singleCol?: boolean;
|
|
387
|
+
/** 外部传入的一级频道列表(若不传则组件内部请求接口获取) */
|
|
388
|
+
channels?: HomeChannelStoreItem[];
|
|
389
|
+
/** 当前激活频道 object_id,支持 v-model 或 v-model:activeChannel */
|
|
390
|
+
modelValue?: string;
|
|
391
|
+
activeChannel?: string;
|
|
392
|
+
/** 用户信息 */
|
|
393
|
+
userInfo?: AccountInfo;
|
|
394
|
+
/** 是否登录 */
|
|
395
|
+
isLogin?: boolean;
|
|
396
|
+
/** 请求实例 */
|
|
397
|
+
request?: Function;
|
|
398
|
+
/** 全局 store,上报用 */
|
|
399
|
+
globalStore?: Record<string, unknown>;
|
|
400
|
+
/** 是否独立部署 */
|
|
401
|
+
independence?: boolean;
|
|
402
|
+
/** 是否显示主题设置 */
|
|
403
|
+
showThemeSetting?: boolean;
|
|
404
|
+
/** 是否显示语言设置 */
|
|
405
|
+
showLangSetting?: boolean;
|
|
406
|
+
/** 频道切换完成回调 */
|
|
407
|
+
onChannelChange?: (item: HomeChannelStoreItem) => void;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
export declare const GitCodeHeader: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
577
411
|
|
|
578
412
|
export declare const GitCodeLayoutEmitter: Emitter<EventBus>;
|
|
579
413
|
|
|
@@ -591,47 +425,78 @@ declare enum HeaderDisplayItem {
|
|
|
591
425
|
OPERATION_ENTRY = "0111"
|
|
592
426
|
}
|
|
593
427
|
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
}
|
|
626
|
-
|
|
627
|
-
|
|
428
|
+
/**
|
|
429
|
+
* 首页一级频道项
|
|
430
|
+
*/
|
|
431
|
+
declare interface HomeChannelItem {
|
|
432
|
+
/** 频道 id (后端 mongo object_id 字符串) */
|
|
433
|
+
object_id: string;
|
|
434
|
+
/** 频道展示名 */
|
|
435
|
+
name: string;
|
|
436
|
+
name_en?: string;
|
|
437
|
+
icon?: string;
|
|
438
|
+
dark_icon?: string;
|
|
439
|
+
icon_dark?: string;
|
|
440
|
+
level?: number;
|
|
441
|
+
parent_id?: string;
|
|
442
|
+
/** 标识当前栏目是自定义静态页 */
|
|
443
|
+
static?: boolean;
|
|
444
|
+
/** 直接跳外链 url */
|
|
445
|
+
url?: string;
|
|
446
|
+
description?: string;
|
|
447
|
+
desc?: string;
|
|
448
|
+
desc_en?: string;
|
|
449
|
+
/** 是否本月新增,true 时在侧边菜单展示 New 标签 */
|
|
450
|
+
is_new?: boolean;
|
|
451
|
+
children?: HomeChannelItem[];
|
|
452
|
+
channelPrefixLogo?: {
|
|
453
|
+
logoUrl?: string;
|
|
454
|
+
logoLink?: string;
|
|
455
|
+
};
|
|
456
|
+
pre_logo?: string;
|
|
457
|
+
pre_logo_jump_url?: string;
|
|
458
|
+
[key: string]: unknown;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* 首页频道 Store / 组件中使用的频道项类型
|
|
463
|
+
*/
|
|
464
|
+
declare type HomeChannelStoreItem = HomeChannelItem & {
|
|
465
|
+
links?: RecommendLinkItem[];
|
|
466
|
+
group?: {
|
|
467
|
+
name: string;
|
|
468
|
+
name_en?: string;
|
|
469
|
+
len: number;
|
|
470
|
+
};
|
|
471
|
+
groupIndex?: number;
|
|
472
|
+
children?: HomeChannelStoreItem[];
|
|
628
473
|
};
|
|
629
|
-
|
|
630
|
-
}
|
|
474
|
+
|
|
475
|
+
export declare const HomeHeaderActions: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{}>, {
|
|
476
|
+
customItems: HomePageSidebarItem[];
|
|
477
|
+
fallbacks: Partial<HomeHeaderActionUrls>;
|
|
478
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
479
|
+
|
|
480
|
+
declare interface HomeHeaderActionUrls {
|
|
481
|
+
atomCode: string;
|
|
482
|
+
aiCommunity: string;
|
|
483
|
+
competition: string;
|
|
484
|
+
marketplace: string;
|
|
485
|
+
workspace: string;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
declare interface HomePageSidebarItem {
|
|
489
|
+
left_menu_name_cn?: string;
|
|
490
|
+
left_menu_name_cn_shrink?: string;
|
|
491
|
+
left_menu_url?: string;
|
|
492
|
+
[key: string]: unknown;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
export declare const Login: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
631
496
|
globalStore: Object;
|
|
632
497
|
request: Function;
|
|
633
498
|
openHarmonyGuide: boolean;
|
|
634
|
-
}, {}, {}, {}, string, ComponentProvideOptions,
|
|
499
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
635
500
|
|
|
636
501
|
declare interface LoginOptions {
|
|
637
502
|
Authorization?: boolean;
|
|
@@ -687,6 +552,42 @@ declare interface Props_2 {
|
|
|
687
552
|
slotKeys?: Array<string>;
|
|
688
553
|
}
|
|
689
554
|
|
|
555
|
+
declare interface Props_3 extends GitCodeAsideV2Props {
|
|
556
|
+
/** 是否显示主题设置 */
|
|
557
|
+
showThemeSetting?: boolean | undefined;
|
|
558
|
+
/** 是否显示语言设置 */
|
|
559
|
+
showLangSetting?: boolean | undefined;
|
|
560
|
+
collapseMode?: boolean;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
declare interface Props_4 {
|
|
564
|
+
/** 容器使用的 DOM 元素标签,默认为 'div' */
|
|
565
|
+
tag?: string;
|
|
566
|
+
/** 滚动停止后取消 isScrolling 状态的延迟时间 (毫秒),默认 300 */
|
|
567
|
+
timeout?: number;
|
|
568
|
+
/** 滚动方向 'vertical' | 'horizontal',默认 'vertical' */
|
|
569
|
+
direction?: 'vertical' | 'horizontal';
|
|
570
|
+
/** 鼠标悬浮时是否展示滚动条,默认为 true */
|
|
571
|
+
visibleOnHover?: boolean;
|
|
572
|
+
/** 外层包裹容器的附加 class */
|
|
573
|
+
wrapperClass?: string;
|
|
574
|
+
/** 内容包裹层的附加 class */
|
|
575
|
+
contentClass?: string;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* 频道推荐外链项
|
|
580
|
+
*/
|
|
581
|
+
declare interface RecommendLinkItem {
|
|
582
|
+
name: string;
|
|
583
|
+
name_en?: string;
|
|
584
|
+
url: string;
|
|
585
|
+
icon?: string;
|
|
586
|
+
dark_icon?: string;
|
|
587
|
+
icon_dark?: string;
|
|
588
|
+
[key: string]: unknown;
|
|
589
|
+
}
|
|
590
|
+
|
|
690
591
|
export declare enum SceneValue {
|
|
691
592
|
home = "home",
|
|
692
593
|
repo = "repo",
|
|
@@ -701,48 +602,29 @@ export declare enum SceneValue {
|
|
|
701
602
|
enterprise = "enterprise"
|
|
702
603
|
}
|
|
703
604
|
|
|
605
|
+
export declare const ScrollActiveContainer: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
606
|
+
|
|
704
607
|
export declare function setLayoutConfig(customConfig: BaseLayoutConfig): void;
|
|
705
608
|
|
|
706
609
|
export { setTheme }
|
|
707
610
|
|
|
708
611
|
export declare const SiteAnnouncement: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
709
612
|
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
customErrorCodes?: number[] | undefined;
|
|
718
|
-
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
719
|
-
globalStore: () => {};
|
|
720
|
-
isRepoPage: boolean;
|
|
721
|
-
isWhiteListRepo: boolean;
|
|
722
|
-
isCannWhiteList: boolean;
|
|
723
|
-
}>>, {
|
|
724
|
-
handleCollapseTool: (status: string) => void;
|
|
613
|
+
declare const TOOLS_FLOAT_COLLAPSE_STATUS: {
|
|
614
|
+
COLLAPSE: string;
|
|
615
|
+
EXPAND: string;
|
|
616
|
+
};
|
|
617
|
+
|
|
618
|
+
export declare const ToolsFloat: DefineComponent<Props, {
|
|
619
|
+
handleCollapseTool: (status: ToolsFloatCollapseStatusType) => void;
|
|
725
620
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
726
|
-
"toggle-growth-center": () =>
|
|
727
|
-
}, string, PublicProps, Readonly<
|
|
728
|
-
sceneValue: SceneValue;
|
|
729
|
-
isLogin: boolean;
|
|
730
|
-
request: (params: any, customConfigs?: {
|
|
731
|
-
customError?: boolean | undefined;
|
|
732
|
-
customTimeout?: number | undefined;
|
|
733
|
-
ignoreError?: boolean | undefined;
|
|
734
|
-
customErrorCodes?: number[] | undefined;
|
|
735
|
-
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
736
|
-
globalStore: () => {};
|
|
737
|
-
isRepoPage: boolean;
|
|
738
|
-
isWhiteListRepo: boolean;
|
|
739
|
-
isCannWhiteList: boolean;
|
|
740
|
-
}>>> & Readonly<{
|
|
621
|
+
"toggle-growth-center": () => any;
|
|
622
|
+
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
741
623
|
"onToggle-growth-center"?: (() => any) | undefined;
|
|
742
624
|
}>, {
|
|
743
625
|
globalStore: {
|
|
626
|
+
isSignIn?: boolean;
|
|
744
627
|
[key: string]: any;
|
|
745
|
-
isSignIn?: boolean | undefined;
|
|
746
628
|
};
|
|
747
629
|
isLogin: boolean;
|
|
748
630
|
sceneValue: SceneValue;
|
|
@@ -750,7 +632,9 @@ request: Function;
|
|
|
750
632
|
isRepoPage: boolean;
|
|
751
633
|
isWhiteListRepo: boolean;
|
|
752
634
|
isCannWhiteList: boolean;
|
|
753
|
-
}, {}, {}, {}, string, ComponentProvideOptions,
|
|
635
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
636
|
+
|
|
637
|
+
declare type ToolsFloatCollapseStatusType = typeof TOOLS_FLOAT_COLLAPSE_STATUS[keyof typeof TOOLS_FLOAT_COLLAPSE_STATUS];
|
|
754
638
|
|
|
755
639
|
export declare function useLogin(request: any, globalStore?: any): {
|
|
756
640
|
login: (options?: LoginOptions, loginSuccess?: Function, openHarmonyGuide?: boolean) => void;
|