vue-layout-gitcode 1.12.15-beta.16 → 1.12.15-beta.17
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-BMVvtDW1.js} +4 -4
- package/{MenuItem-Bhz2xGuE.js → MenuItem-Bce2QrrP.js} +2 -2
- package/{ProjectMenuList-Ci-m9quY.js → ProjectMenuList-CCxFdHf7.js} +11 -11
- package/{ProjectMenuListV2-B0g2gpwj.js → ProjectMenuListV2-BxegipPo.js} +4 -4
- package/{ProjectSearch-sRELCn6C.js → ProjectSearch-DZmw-rlF.js} +2 -2
- package/{SearchHistoryList-CtdFVEod.js → SearchHistoryList-YbVh1LSu.js} +6 -6
- package/{SearchRecommed-B5ORMeCc.js → SearchRecommed-0WK3JW4L.js} +3 -3
- package/{SearchScopeList-DiGyzPIl.js → SearchScopeList-NDSNIf2T.js} +3 -3
- package/{UserSearch-E4s6K2L8.js → UserSearch-Cxhi3du4.js} +2 -2
- package/{index-D7rVJoTw.js → index-BHsDObhI.js} +48 -45
- package/{index-DZyZIqvu.js → index-Br1fy5_D.js} +2784 -1560
- package/{index-CtHLYUVh.js → index-C52-QZeq.js} +6 -5
- package/{index-5jNX3P01.js → index-CgY7MDYx.js} +2 -2
- package/index.d.ts +390 -523
- package/index.js +16 -13
- package/{notice-XD-m4ZVb.js → notice-Cwymytr3.js} +13 -11
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-CtOYQG2D.js → transWebUrl-Cg0htQOi.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_3, {
|
|
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_3> & 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,60 @@ declare type EventBus = {
|
|
|
355
345
|
resetPwdDirectlySuccess: void;
|
|
356
346
|
};
|
|
357
347
|
|
|
358
|
-
export declare const GitCodeAside: __VLS_WithTemplateSlots<
|
|
359
|
-
sceneValue: SceneValue;
|
|
360
|
-
disableFlatMode: boolean;
|
|
361
|
-
request: (params: any, customConfigs?: {
|
|
362
|
-
customError?: boolean | undefined;
|
|
363
|
-
customTimeout?: number | undefined;
|
|
364
|
-
ignoreError?: boolean | undefined;
|
|
365
|
-
customErrorCodes?: number[] | undefined;
|
|
366
|
-
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
367
|
-
globalStore: () => {
|
|
368
|
-
httpStatus: number;
|
|
369
|
-
};
|
|
370
|
-
userInfo: () => {};
|
|
371
|
-
independence: boolean;
|
|
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;
|
|
402
|
-
sceneValue: SceneValue;
|
|
403
|
-
request: Function;
|
|
404
|
-
userInfo: AccountInfo;
|
|
405
|
-
independence: boolean;
|
|
406
|
-
slotKeys: string[];
|
|
407
|
-
showThemeSetting: boolean;
|
|
408
|
-
showLangSetting: boolean;
|
|
409
|
-
showPreferencesSetting: boolean;
|
|
410
|
-
collapseMode: boolean;
|
|
411
|
-
disableFlatMode: boolean;
|
|
412
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, Partial<Record<string, (_: {}) => any>>>;
|
|
348
|
+
export declare const GitCodeAside: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
413
349
|
|
|
414
|
-
export declare const
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
userInfo?: UserInfo | undefined;
|
|
425
|
-
headerFunctions?: HeaderDisplayItem[] | undefined;
|
|
426
|
-
headerCustomProps?: HeaderPropsForCustom | undefined;
|
|
427
|
-
openHarmonyGuide: boolean;
|
|
428
|
-
headerBorder?: boolean | undefined;
|
|
429
|
-
independence?: boolean | undefined;
|
|
430
|
-
userMenus?: any[] | undefined;
|
|
431
|
-
loginChildComponents: any;
|
|
432
|
-
bgConfig?: {
|
|
433
|
-
index_head: string;
|
|
434
|
-
detail_top: string;
|
|
435
|
-
detail_top_black: string;
|
|
436
|
-
detail_toolbar: string;
|
|
437
|
-
detail_toolbar_black: string;
|
|
438
|
-
detail_top_url: string;
|
|
439
|
-
index_head_url: string;
|
|
440
|
-
detail_toolbar_url: string;
|
|
441
|
-
} | undefined;
|
|
442
|
-
openCreateDropdown?: boolean | undefined;
|
|
350
|
+
export declare const GitCodeAsideV2: DefineComponent<GitCodeAsideV2Props, {}, {}, {}, {}, 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<GitCodeAsideV2Props> & 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;
|
|
443
360
|
}>, {
|
|
444
|
-
|
|
445
|
-
headerBorder: boolean;
|
|
361
|
+
globalStore: Record<string, unknown>;
|
|
446
362
|
isLogin: boolean;
|
|
447
|
-
independence: boolean;
|
|
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
363
|
sceneValue: SceneValue;
|
|
479
|
-
isLogin: boolean;
|
|
480
364
|
request: Function;
|
|
481
|
-
|
|
482
|
-
|
|
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;
|
|
365
|
+
modelValue: string;
|
|
366
|
+
userInfo: AccountInfo;
|
|
549
367
|
independence: boolean;
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
368
|
+
singleCol: boolean;
|
|
369
|
+
channels: HomeChannelStoreItem[];
|
|
370
|
+
activeChannel: string;
|
|
371
|
+
onChannelChange: (item: HomeChannelStoreItem) => void;
|
|
372
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* GitCodeAsideV2 组件 Props 定义
|
|
376
|
+
*/
|
|
377
|
+
declare interface GitCodeAsideV2Props {
|
|
378
|
+
/** 场景值,默认为 home */
|
|
379
|
+
sceneValue?: SceneValue;
|
|
380
|
+
/** 单列模式:移动端抽屉或紧凑容器内展示,不包含外层固定定位 */
|
|
381
|
+
singleCol?: boolean;
|
|
382
|
+
/** 外部传入的一级频道列表(若不传则组件内部请求接口获取) */
|
|
383
|
+
channels?: HomeChannelStoreItem[];
|
|
384
|
+
/** 当前激活频道 object_id,支持 v-model 或 v-model:activeChannel */
|
|
385
|
+
modelValue?: string;
|
|
386
|
+
activeChannel?: string;
|
|
387
|
+
/** 用户信息 */
|
|
388
|
+
userInfo?: AccountInfo;
|
|
389
|
+
/** 是否登录 */
|
|
390
|
+
isLogin?: boolean;
|
|
391
|
+
/** 请求实例 */
|
|
392
|
+
request?: Function;
|
|
393
|
+
/** 全局 store,上报用 */
|
|
394
|
+
globalStore?: Record<string, unknown>;
|
|
395
|
+
/** 是否独立部署 */
|
|
396
|
+
independence?: boolean;
|
|
397
|
+
/** 频道切换完成回调 */
|
|
398
|
+
onChannelChange?: (item: HomeChannelStoreItem) => void;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
export declare const GitCodeHeader: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
577
402
|
|
|
578
403
|
export declare const GitCodeLayoutEmitter: Emitter<EventBus>;
|
|
579
404
|
|
|
@@ -591,47 +416,78 @@ declare enum HeaderDisplayItem {
|
|
|
591
416
|
OPERATION_ENTRY = "0111"
|
|
592
417
|
}
|
|
593
418
|
|
|
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
|
-
|
|
419
|
+
/**
|
|
420
|
+
* 首页一级频道项
|
|
421
|
+
*/
|
|
422
|
+
declare interface HomeChannelItem {
|
|
423
|
+
/** 频道 id (后端 mongo object_id 字符串) */
|
|
424
|
+
object_id: string;
|
|
425
|
+
/** 频道展示名 */
|
|
426
|
+
name: string;
|
|
427
|
+
name_en?: string;
|
|
428
|
+
icon?: string;
|
|
429
|
+
dark_icon?: string;
|
|
430
|
+
icon_dark?: string;
|
|
431
|
+
level?: number;
|
|
432
|
+
parent_id?: string;
|
|
433
|
+
/** 标识当前栏目是自定义静态页 */
|
|
434
|
+
static?: boolean;
|
|
435
|
+
/** 直接跳外链 url */
|
|
436
|
+
url?: string;
|
|
437
|
+
description?: string;
|
|
438
|
+
desc?: string;
|
|
439
|
+
desc_en?: string;
|
|
440
|
+
/** 是否本月新增,true 时在侧边菜单展示 New 标签 */
|
|
441
|
+
is_new?: boolean;
|
|
442
|
+
children?: HomeChannelItem[];
|
|
443
|
+
channelPrefixLogo?: {
|
|
444
|
+
logoUrl?: string;
|
|
445
|
+
logoLink?: string;
|
|
446
|
+
};
|
|
447
|
+
pre_logo?: string;
|
|
448
|
+
pre_logo_jump_url?: string;
|
|
449
|
+
[key: string]: unknown;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* 首页频道 Store / 组件中使用的频道项类型
|
|
454
|
+
*/
|
|
455
|
+
declare type HomeChannelStoreItem = HomeChannelItem & {
|
|
456
|
+
links?: RecommendLinkItem[];
|
|
457
|
+
group?: {
|
|
458
|
+
name: string;
|
|
459
|
+
name_en?: string;
|
|
460
|
+
len: number;
|
|
461
|
+
};
|
|
462
|
+
groupIndex?: number;
|
|
463
|
+
children?: HomeChannelStoreItem[];
|
|
628
464
|
};
|
|
629
|
-
|
|
630
|
-
}
|
|
465
|
+
|
|
466
|
+
export declare const HomeHeaderActions: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{}>, {
|
|
467
|
+
customItems: HomePageSidebarItem[];
|
|
468
|
+
fallbacks: Partial<HomeHeaderActionUrls>;
|
|
469
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
470
|
+
|
|
471
|
+
declare interface HomeHeaderActionUrls {
|
|
472
|
+
atomCode: string;
|
|
473
|
+
aiCommunity: string;
|
|
474
|
+
competition: string;
|
|
475
|
+
marketplace: string;
|
|
476
|
+
workspace: string;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
declare interface HomePageSidebarItem {
|
|
480
|
+
left_menu_name_cn?: string;
|
|
481
|
+
left_menu_name_cn_shrink?: string;
|
|
482
|
+
left_menu_url?: string;
|
|
483
|
+
[key: string]: unknown;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
export declare const Login: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
631
487
|
globalStore: Object;
|
|
632
488
|
request: Function;
|
|
633
489
|
openHarmonyGuide: boolean;
|
|
634
|
-
}, {}, {}, {}, string, ComponentProvideOptions,
|
|
490
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
635
491
|
|
|
636
492
|
declare interface LoginOptions {
|
|
637
493
|
Authorization?: boolean;
|
|
@@ -687,6 +543,34 @@ declare interface Props_2 {
|
|
|
687
543
|
slotKeys?: Array<string>;
|
|
688
544
|
}
|
|
689
545
|
|
|
546
|
+
declare interface Props_3 {
|
|
547
|
+
/** 容器使用的 DOM 元素标签,默认为 'div' */
|
|
548
|
+
tag?: string;
|
|
549
|
+
/** 滚动停止后取消 isScrolling 状态的延迟时间 (毫秒),默认 300 */
|
|
550
|
+
timeout?: number;
|
|
551
|
+
/** 滚动方向 'vertical' | 'horizontal',默认 'vertical' */
|
|
552
|
+
direction?: 'vertical' | 'horizontal';
|
|
553
|
+
/** 鼠标悬浮时是否展示滚动条,默认为 true */
|
|
554
|
+
visibleOnHover?: boolean;
|
|
555
|
+
/** 外层包裹容器的附加 class */
|
|
556
|
+
wrapperClass?: string;
|
|
557
|
+
/** 内容包裹层的附加 class */
|
|
558
|
+
contentClass?: string;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* 频道推荐外链项
|
|
563
|
+
*/
|
|
564
|
+
declare interface RecommendLinkItem {
|
|
565
|
+
name: string;
|
|
566
|
+
name_en?: string;
|
|
567
|
+
url: string;
|
|
568
|
+
icon?: string;
|
|
569
|
+
dark_icon?: string;
|
|
570
|
+
icon_dark?: string;
|
|
571
|
+
[key: string]: unknown;
|
|
572
|
+
}
|
|
573
|
+
|
|
690
574
|
export declare enum SceneValue {
|
|
691
575
|
home = "home",
|
|
692
576
|
repo = "repo",
|
|
@@ -701,48 +585,29 @@ export declare enum SceneValue {
|
|
|
701
585
|
enterprise = "enterprise"
|
|
702
586
|
}
|
|
703
587
|
|
|
588
|
+
export declare const ScrollActiveContainer: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
589
|
+
|
|
704
590
|
export declare function setLayoutConfig(customConfig: BaseLayoutConfig): void;
|
|
705
591
|
|
|
706
592
|
export { setTheme }
|
|
707
593
|
|
|
708
594
|
export declare const SiteAnnouncement: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
709
595
|
|
|
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;
|
|
596
|
+
declare const TOOLS_FLOAT_COLLAPSE_STATUS: {
|
|
597
|
+
COLLAPSE: string;
|
|
598
|
+
EXPAND: string;
|
|
599
|
+
};
|
|
600
|
+
|
|
601
|
+
export declare const ToolsFloat: DefineComponent<Props, {
|
|
602
|
+
handleCollapseTool: (status: ToolsFloatCollapseStatusType) => void;
|
|
725
603
|
}, {}, {}, {}, 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<{
|
|
604
|
+
"toggle-growth-center": () => any;
|
|
605
|
+
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
741
606
|
"onToggle-growth-center"?: (() => any) | undefined;
|
|
742
607
|
}>, {
|
|
743
608
|
globalStore: {
|
|
609
|
+
isSignIn?: boolean;
|
|
744
610
|
[key: string]: any;
|
|
745
|
-
isSignIn?: boolean | undefined;
|
|
746
611
|
};
|
|
747
612
|
isLogin: boolean;
|
|
748
613
|
sceneValue: SceneValue;
|
|
@@ -750,7 +615,9 @@ request: Function;
|
|
|
750
615
|
isRepoPage: boolean;
|
|
751
616
|
isWhiteListRepo: boolean;
|
|
752
617
|
isCannWhiteList: boolean;
|
|
753
|
-
}, {}, {}, {}, string, ComponentProvideOptions,
|
|
618
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
619
|
+
|
|
620
|
+
declare type ToolsFloatCollapseStatusType = typeof TOOLS_FLOAT_COLLAPSE_STATUS[keyof typeof TOOLS_FLOAT_COLLAPSE_STATUS];
|
|
754
621
|
|
|
755
622
|
export declare function useLogin(request: any, globalStore?: any): {
|
|
756
623
|
login: (options?: LoginOptions, loginSuccess?: Function, openHarmonyGuide?: boolean) => void;
|