vue-layout-gitcode 1.12.15-beta.3 → 1.12.15-beta.30
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-CehDLm5e.js → GloabarSearch-p_l4B9Iv.js} +4 -4
- package/{MenuItem-C3jP0hIF.js → MenuItem-D3r9OiuI.js} +15 -11
- package/{ProjectMenuList-CYBu-6UI.js → ProjectMenuList-DEu7YX5x.js} +6 -6
- package/{ProjectMenuListV2-BNO8Oa9f.js → ProjectMenuListV2-B-yYLbRH.js} +5 -5
- package/{ProjectSearch-DqTXNeuA.js → ProjectSearch-DC73LI8G.js} +2 -2
- package/{SearchHistoryList-08Q75qyT.js → SearchHistoryList-BO8w56wQ.js} +5 -5
- package/{SearchRecommed-BP1gksCD.js → SearchRecommed-C6CwyeCO.js} +3 -3
- package/{SearchScopeList-jaI05Znk.js → SearchScopeList-CSfeBSyx.js} +2 -2
- package/{UserSearch-p1c5YRt2.js → UserSearch-O9bInbNg.js} +2 -2
- package/{index-CtgqGX_c.js → index-CqNMIElC.js} +2785 -911
- package/{index-Vmx0G7Nd.js → index-CuEGmOjr.js} +2 -2
- package/{index-CY16HldM.js → index-DzdeRe6N.js} +3 -3
- package/{index-BniudX3d.js → index-RtiZu2AA.js} +2 -2
- package/index.d.ts +455 -470
- package/index.js +18 -12
- package/{notice-9BqsHOHE.js → notice-DJaG6UOc.js} +2 -2
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-Di5i1eNa.js → transWebUrl-C4jzAU6I.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,120 +8,271 @@ 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
|
-
declare
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
+
showThemeSetting: boolean;
|
|
27
|
+
showLangSetting: boolean;
|
|
28
|
+
disableFlatMode: boolean;
|
|
29
|
+
collapseMode: boolean;
|
|
30
|
+
slotKeys: Array<string>;
|
|
31
|
+
showPreferencesSetting: 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;
|
|
89
|
+
};
|
|
90
|
+
openCreateDropdown: boolean;
|
|
91
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
92
|
+
headerRef: HTMLDivElement;
|
|
93
|
+
}, HTMLDivElement>;
|
|
47
94
|
|
|
48
|
-
declare
|
|
49
|
-
|
|
50
|
-
|
|
95
|
+
declare const __VLS_component_4: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
96
|
+
resetPwdDirectlySuccess: (...args: any[]) => void;
|
|
97
|
+
followDevCommunity: (...args: any[]) => void;
|
|
98
|
+
followUser: (...args: any[]) => void;
|
|
99
|
+
}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{
|
|
100
|
+
onResetPwdDirectlySuccess?: ((...args: any[]) => any) | undefined;
|
|
101
|
+
onFollowDevCommunity?: ((...args: any[]) => any) | undefined;
|
|
102
|
+
onFollowUser?: ((...args: any[]) => any) | undefined;
|
|
103
|
+
}>, {
|
|
104
|
+
globalStore: Record<string, unknown>;
|
|
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>;
|
|
51
115
|
|
|
52
|
-
declare type
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
116
|
+
declare type __VLS_Props = {
|
|
117
|
+
isLogin: boolean;
|
|
118
|
+
request: Function;
|
|
119
|
+
loginOutFinish?: Function;
|
|
120
|
+
loginSuccess: Function;
|
|
121
|
+
globalStore: Object;
|
|
122
|
+
openHarmonyGuide: boolean;
|
|
59
123
|
};
|
|
60
124
|
|
|
61
|
-
declare type
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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;
|
|
67
152
|
};
|
|
153
|
+
openCreateDropdown?: boolean;
|
|
154
|
+
/** Header 新建菜单项,默认使用七项公共菜单 */
|
|
155
|
+
createMenuItems?: HeaderCreateMenuItem[];
|
|
156
|
+
/** Header 新建菜单跳转适配器 */
|
|
157
|
+
createMenuNavigate?: HeaderCreateMenuNavigate;
|
|
68
158
|
};
|
|
69
159
|
|
|
70
|
-
declare type
|
|
71
|
-
[
|
|
72
|
-
|
|
73
|
-
} : {
|
|
74
|
-
type: PropType<T[K]>;
|
|
75
|
-
required: true;
|
|
76
|
-
};
|
|
160
|
+
declare type __VLS_Props_3 = {
|
|
161
|
+
customItems?: HomePageSidebarItem[];
|
|
162
|
+
fallbacks?: Partial<HomeHeaderActionUrls>;
|
|
77
163
|
};
|
|
78
164
|
|
|
79
|
-
declare type
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
165
|
+
declare type __VLS_Props_4 = {
|
|
166
|
+
/** 是否由外部控制下拉展开状态。 */
|
|
167
|
+
dropdownVisible?: boolean;
|
|
168
|
+
/** 是否展示组织入口。 */
|
|
169
|
+
isCreateOrg?: boolean;
|
|
170
|
+
/** 覆写默认七项菜单,适用于工作区等宿主上下文。 */
|
|
171
|
+
items?: HeaderCreateMenuItem[];
|
|
172
|
+
/** 覆写默认跳转行为,宿主可在这里接入自己的 router 或权限校验。 */
|
|
173
|
+
onNavigate?: HeaderCreateMenuNavigate;
|
|
86
174
|
};
|
|
87
175
|
|
|
88
|
-
declare type
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
176
|
+
declare type __VLS_Props_5 = {
|
|
177
|
+
isLogin: boolean;
|
|
178
|
+
request: Function;
|
|
179
|
+
globalStore: Record<string, unknown>;
|
|
180
|
+
loginSuccess: Function;
|
|
181
|
+
enterpriseInfo: OrgInfo;
|
|
182
|
+
loginOutFinish?: Function;
|
|
183
|
+
orgInfo?: OrgInfo;
|
|
184
|
+
userInfo?: UserInfo;
|
|
185
|
+
headerFunctions?: HeaderDisplayItem[];
|
|
186
|
+
openHarmonyGuide: boolean;
|
|
187
|
+
headerBorder?: boolean;
|
|
188
|
+
independence?: boolean;
|
|
189
|
+
userMenus?: any[];
|
|
190
|
+
loginChildComponents: any;
|
|
95
191
|
};
|
|
96
192
|
|
|
97
|
-
declare type
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
193
|
+
declare type __VLS_Props_6 = {
|
|
194
|
+
/** 展示主题设置项,默认 true */
|
|
195
|
+
showThemeSetting?: boolean;
|
|
196
|
+
/** 展示语言设置项,默认 true */
|
|
197
|
+
showLangSetting?: boolean;
|
|
198
|
+
/**
|
|
199
|
+
* 下拉菜单弹出位置,默认 `['bottom-end']`。
|
|
200
|
+
* 宿主如果把本组件放在页面底部,可传 `['top-end']` 避免菜单被视口下沿裁掉。
|
|
201
|
+
*/
|
|
202
|
+
position?: string[];
|
|
101
203
|
};
|
|
102
204
|
|
|
103
|
-
declare
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
205
|
+
declare function __VLS_template(): {
|
|
206
|
+
attrs: Partial<{}>;
|
|
207
|
+
slots: Partial<Record<string, (_: {}) => any>>;
|
|
208
|
+
refs: {};
|
|
209
|
+
rootEl: any;
|
|
107
210
|
};
|
|
108
211
|
|
|
109
|
-
declare
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
212
|
+
declare function __VLS_template_2(): {
|
|
213
|
+
attrs: Partial<{}>;
|
|
214
|
+
slots: {
|
|
215
|
+
default?(_: {}): any;
|
|
216
|
+
};
|
|
217
|
+
refs: {
|
|
218
|
+
containerRef: unknown;
|
|
219
|
+
contentRef: HTMLDivElement;
|
|
220
|
+
trackRef: HTMLDivElement;
|
|
221
|
+
};
|
|
222
|
+
rootEl: any;
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
declare function __VLS_template_3(): {
|
|
226
|
+
attrs: Partial<{}>;
|
|
227
|
+
slots: {
|
|
228
|
+
headerCustom?(_: {}): any;
|
|
229
|
+
aiSearch?(_: {}): any;
|
|
230
|
+
headerMiddleRight?(_: {}): any;
|
|
231
|
+
search?(_: {}): any;
|
|
232
|
+
searchRecommend?(_: {}): any;
|
|
233
|
+
globalSearch?(_: {
|
|
234
|
+
searchStr: string;
|
|
235
|
+
searchMore: (type: any) => void;
|
|
236
|
+
}): any;
|
|
237
|
+
headerActions?(_: {}): any;
|
|
238
|
+
bodyHeader?(_: {}): any;
|
|
239
|
+
info?(_: {}): any;
|
|
240
|
+
menu?(_: {}): any;
|
|
241
|
+
headerBottom?(_: {}): any;
|
|
242
|
+
};
|
|
243
|
+
refs: {
|
|
244
|
+
headerRef: HTMLDivElement;
|
|
245
|
+
};
|
|
246
|
+
rootEl: HTMLDivElement;
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
declare function __VLS_template_4(): {
|
|
250
|
+
attrs: Partial<{}>;
|
|
251
|
+
slots: {
|
|
252
|
+
search?(_: {}): any;
|
|
253
|
+
searchRecommend?(_: {}): any;
|
|
254
|
+
globalSearch?(_: {
|
|
255
|
+
searchStr: string;
|
|
256
|
+
searchMore: (type: any) => void;
|
|
257
|
+
}): any;
|
|
258
|
+
bodyHeader?(_: {}): any;
|
|
259
|
+
info?(_: {}): any;
|
|
260
|
+
menu?(_: {}): any;
|
|
261
|
+
headerBottom?(_: {}): any;
|
|
262
|
+
};
|
|
263
|
+
refs: {
|
|
264
|
+
headerRef: HTMLDivElement;
|
|
265
|
+
};
|
|
266
|
+
rootEl: HTMLDivElement;
|
|
113
267
|
};
|
|
114
268
|
|
|
115
|
-
declare type
|
|
116
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_4<P[K] & {
|
|
117
|
-
default: D[K];
|
|
118
|
-
}> : P[K];
|
|
119
|
-
};
|
|
269
|
+
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
120
270
|
|
|
121
|
-
declare type
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
271
|
+
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
272
|
+
|
|
273
|
+
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
274
|
+
|
|
275
|
+
declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
|
|
126
276
|
|
|
127
277
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
128
278
|
new (): {
|
|
@@ -142,6 +292,18 @@ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
|
|
|
142
292
|
};
|
|
143
293
|
};
|
|
144
294
|
|
|
295
|
+
declare type __VLS_WithTemplateSlots_4<T, S> = T & {
|
|
296
|
+
new (): {
|
|
297
|
+
$slots: S;
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
export declare const AsideFooterTools: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{}>, {
|
|
302
|
+
position: string[];
|
|
303
|
+
showThemeSetting: boolean;
|
|
304
|
+
showLangSetting: boolean;
|
|
305
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
306
|
+
|
|
145
307
|
declare interface BaseLayoutConfig {
|
|
146
308
|
VITE_HOST: string;
|
|
147
309
|
VITE_HOST_TIANQI: string;
|
|
@@ -166,109 +328,7 @@ declare const _default: {
|
|
|
166
328
|
};
|
|
167
329
|
export default _default;
|
|
168
330
|
|
|
169
|
-
export declare const EnterpriseHeader:
|
|
170
|
-
isLogin: boolean;
|
|
171
|
-
request: Function;
|
|
172
|
-
globalStore: Object;
|
|
173
|
-
loginSuccess: Function;
|
|
174
|
-
enterpriseInfo: OrgInfo;
|
|
175
|
-
loginOutFinish?: Function | undefined;
|
|
176
|
-
orgInfo?: OrgInfo | undefined;
|
|
177
|
-
userInfo?: UserInfo | undefined;
|
|
178
|
-
headerFunctions?: HeaderDisplayItem[] | undefined;
|
|
179
|
-
openHarmonyGuide: boolean;
|
|
180
|
-
headerBorder?: boolean | undefined;
|
|
181
|
-
independence?: boolean | undefined;
|
|
182
|
-
userMenus?: any[] | undefined;
|
|
183
|
-
loginChildComponents: any;
|
|
184
|
-
}>, {
|
|
185
|
-
headerBorder: boolean;
|
|
186
|
-
isLogin: boolean;
|
|
187
|
-
independence: boolean;
|
|
188
|
-
request: (params: any, customConfigs?: {
|
|
189
|
-
customError?: boolean | undefined;
|
|
190
|
-
customTimeout?: number | undefined;
|
|
191
|
-
ignoreError?: boolean | undefined;
|
|
192
|
-
customErrorCodes?: number[] | undefined;
|
|
193
|
-
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
194
|
-
globalStore: () => {
|
|
195
|
-
httpStatus: number;
|
|
196
|
-
};
|
|
197
|
-
orgInfo: () => {
|
|
198
|
-
avatar: string;
|
|
199
|
-
name: string;
|
|
200
|
-
};
|
|
201
|
-
userInfo: () => {};
|
|
202
|
-
enterpriseInfo: () => {
|
|
203
|
-
avatar: string;
|
|
204
|
-
name: string;
|
|
205
|
-
};
|
|
206
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
207
|
-
resetPwdDirectlySuccess: (...args: any[]) => void;
|
|
208
|
-
followDevCommunity: (...args: any[]) => void;
|
|
209
|
-
followUser: (...args: any[]) => void;
|
|
210
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToRuntimeProps_5<{
|
|
211
|
-
isLogin: boolean;
|
|
212
|
-
request: Function;
|
|
213
|
-
globalStore: Object;
|
|
214
|
-
loginSuccess: Function;
|
|
215
|
-
enterpriseInfo: OrgInfo;
|
|
216
|
-
loginOutFinish?: Function | undefined;
|
|
217
|
-
orgInfo?: OrgInfo | undefined;
|
|
218
|
-
userInfo?: UserInfo | undefined;
|
|
219
|
-
headerFunctions?: HeaderDisplayItem[] | undefined;
|
|
220
|
-
openHarmonyGuide: boolean;
|
|
221
|
-
headerBorder?: boolean | undefined;
|
|
222
|
-
independence?: boolean | undefined;
|
|
223
|
-
userMenus?: any[] | undefined;
|
|
224
|
-
loginChildComponents: any;
|
|
225
|
-
}>, {
|
|
226
|
-
headerBorder: boolean;
|
|
227
|
-
isLogin: boolean;
|
|
228
|
-
independence: boolean;
|
|
229
|
-
request: (params: any, customConfigs?: {
|
|
230
|
-
customError?: boolean | undefined;
|
|
231
|
-
customTimeout?: number | undefined;
|
|
232
|
-
ignoreError?: boolean | undefined;
|
|
233
|
-
customErrorCodes?: number[] | undefined;
|
|
234
|
-
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
235
|
-
globalStore: () => {
|
|
236
|
-
httpStatus: number;
|
|
237
|
-
};
|
|
238
|
-
orgInfo: () => {
|
|
239
|
-
avatar: string;
|
|
240
|
-
name: string;
|
|
241
|
-
};
|
|
242
|
-
userInfo: () => {};
|
|
243
|
-
enterpriseInfo: () => {
|
|
244
|
-
avatar: string;
|
|
245
|
-
name: string;
|
|
246
|
-
};
|
|
247
|
-
}>>> & Readonly<{
|
|
248
|
-
onResetPwdDirectlySuccess?: ((...args: any[]) => any) | undefined;
|
|
249
|
-
onFollowDevCommunity?: ((...args: any[]) => any) | undefined;
|
|
250
|
-
onFollowUser?: ((...args: any[]) => any) | undefined;
|
|
251
|
-
}>, {
|
|
252
|
-
globalStore: Object;
|
|
253
|
-
isLogin: boolean;
|
|
254
|
-
request: Function;
|
|
255
|
-
orgInfo: OrgInfo;
|
|
256
|
-
userInfo: UserInfo;
|
|
257
|
-
independence: boolean;
|
|
258
|
-
headerBorder: boolean;
|
|
259
|
-
enterpriseInfo: OrgInfo;
|
|
260
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
261
|
-
search?(_: {}): any;
|
|
262
|
-
searchRecommend?(_: {}): any;
|
|
263
|
-
globalSearch?(_: {
|
|
264
|
-
searchStr: string;
|
|
265
|
-
searchMore: (type: any) => void;
|
|
266
|
-
}): any;
|
|
267
|
-
bodyHeader?(_: {}): any;
|
|
268
|
-
info?(_: {}): any;
|
|
269
|
-
menu?(_: {}): any;
|
|
270
|
-
headerBottom?(_: {}): any;
|
|
271
|
-
}>;
|
|
331
|
+
export declare const EnterpriseHeader: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
272
332
|
|
|
273
333
|
declare type EventBus = {
|
|
274
334
|
logout?: boolean;
|
|
@@ -300,228 +360,103 @@ declare type EventBus = {
|
|
|
300
360
|
resetPwdDirectlySuccess: void;
|
|
301
361
|
};
|
|
302
362
|
|
|
303
|
-
export declare const GitCodeAside: __VLS_WithTemplateSlots<
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
showPreferencesSetting: undefined;
|
|
318
|
-
showThemeSetting: undefined;
|
|
319
|
-
showLangSetting: undefined;
|
|
320
|
-
/** 默认展示小侧边栏,收起隐藏 */
|
|
321
|
-
collapseMode: boolean;
|
|
322
|
-
/** 需要显示hover的slotKeys */
|
|
323
|
-
slotKeys: () => never[];
|
|
324
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_3<Props_2>, {
|
|
325
|
-
sceneValue: SceneValue;
|
|
326
|
-
disableFlatMode: boolean;
|
|
327
|
-
request: (params: any, customConfigs?: {
|
|
328
|
-
customError?: boolean | undefined;
|
|
329
|
-
customTimeout?: number | undefined;
|
|
330
|
-
ignoreError?: boolean | undefined;
|
|
331
|
-
customErrorCodes?: number[] | undefined;
|
|
332
|
-
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
333
|
-
globalStore: () => {
|
|
334
|
-
httpStatus: number;
|
|
335
|
-
};
|
|
336
|
-
userInfo: () => {};
|
|
337
|
-
independence: boolean;
|
|
338
|
-
showPreferencesSetting: undefined;
|
|
339
|
-
showThemeSetting: undefined;
|
|
340
|
-
showLangSetting: undefined;
|
|
341
|
-
/** 默认展示小侧边栏,收起隐藏 */
|
|
342
|
-
collapseMode: boolean;
|
|
343
|
-
/** 需要显示hover的slotKeys */
|
|
344
|
-
slotKeys: () => never[];
|
|
345
|
-
}>>> & Readonly<{}>, {
|
|
346
|
-
globalStore: Object;
|
|
363
|
+
export declare const GitCodeAside: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
364
|
+
|
|
365
|
+
export declare const GitCodeAsideV2: DefineComponent<Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
366
|
+
select: (item: HomeChannelStoreItem) => any;
|
|
367
|
+
"update:modelValue": (val: string) => any;
|
|
368
|
+
"update:activeChannel": (val: string) => any;
|
|
369
|
+
channelChange: (item: HomeChannelStoreItem) => any;
|
|
370
|
+
}, string, PublicProps, Readonly<Props_3> & Readonly<{
|
|
371
|
+
onSelect?: ((item: HomeChannelStoreItem) => any) | undefined;
|
|
372
|
+
"onUpdate:modelValue"?: ((val: string) => any) | undefined;
|
|
373
|
+
"onUpdate:activeChannel"?: ((val: string) => any) | undefined;
|
|
374
|
+
onChannelChange?: ((item: HomeChannelStoreItem) => any) | undefined;
|
|
375
|
+
}>, {
|
|
376
|
+
globalStore: Record<string, unknown>;
|
|
347
377
|
sceneValue: SceneValue;
|
|
348
378
|
request: Function;
|
|
379
|
+
modelValue: string;
|
|
349
380
|
userInfo: AccountInfo;
|
|
350
381
|
independence: boolean;
|
|
351
|
-
slotKeys: string[];
|
|
352
382
|
showThemeSetting: boolean;
|
|
353
383
|
showLangSetting: boolean;
|
|
354
|
-
showPreferencesSetting: boolean;
|
|
355
|
-
collapseMode: boolean;
|
|
356
384
|
disableFlatMode: boolean;
|
|
357
|
-
|
|
385
|
+
singleCol: boolean;
|
|
386
|
+
channels: HomeChannelStoreItem[];
|
|
387
|
+
activeChannel: string;
|
|
388
|
+
onChannelChange: (item: HomeChannelStoreItem) => void;
|
|
389
|
+
collapseMode: boolean;
|
|
390
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* GitCodeAsideV2 组件 Props 定义
|
|
394
|
+
*/
|
|
395
|
+
declare interface GitCodeAsideV2Props {
|
|
396
|
+
/** 场景值,默认为 home */
|
|
397
|
+
sceneValue?: SceneValue;
|
|
398
|
+
/** 禁用 flat 模式 */
|
|
399
|
+
disableFlatMode?: boolean;
|
|
400
|
+
/** 单列模式:移动端抽屉或紧凑容器内展示,不包含外层固定定位 */
|
|
401
|
+
singleCol?: boolean;
|
|
402
|
+
/** 外部传入的一级频道列表(若不传则组件内部请求接口获取) */
|
|
403
|
+
channels?: HomeChannelStoreItem[];
|
|
404
|
+
/** 当前激活频道 object_id,支持 v-model 或 v-model:activeChannel */
|
|
405
|
+
modelValue?: string;
|
|
406
|
+
activeChannel?: string;
|
|
407
|
+
/** 用户信息 */
|
|
408
|
+
userInfo?: AccountInfo;
|
|
409
|
+
/** 是否登录 */
|
|
410
|
+
isLogin?: boolean;
|
|
411
|
+
/** 请求实例 */
|
|
412
|
+
request?: Function;
|
|
413
|
+
/** 全局 store,上报用 */
|
|
414
|
+
globalStore?: Record<string, unknown>;
|
|
415
|
+
/** 是否独立部署 */
|
|
416
|
+
independence?: boolean;
|
|
417
|
+
/** 是否显示主题设置 */
|
|
418
|
+
showThemeSetting?: boolean;
|
|
419
|
+
/** 是否显示语言设置 */
|
|
420
|
+
showLangSetting?: boolean;
|
|
421
|
+
/** 频道切换完成回调 */
|
|
422
|
+
onChannelChange?: (item: HomeChannelStoreItem) => void;
|
|
423
|
+
}
|
|
358
424
|
|
|
359
|
-
export declare const GitCodeHeader:
|
|
360
|
-
sceneValue: SceneValue;
|
|
361
|
-
isLogin: boolean;
|
|
362
|
-
request: Function;
|
|
363
|
-
loginOutFinish?: Function | undefined;
|
|
364
|
-
loginSuccess: Function;
|
|
365
|
-
globalStore: Object;
|
|
366
|
-
repoInfo?: repoInfoType | undefined;
|
|
367
|
-
orgInfo?: OrgInfo | undefined;
|
|
368
|
-
otherUserInfo?: UserInfo | undefined;
|
|
369
|
-
userInfo?: UserInfo | undefined;
|
|
370
|
-
headerFunctions?: HeaderDisplayItem[] | undefined;
|
|
371
|
-
headerCustomProps?: HeaderPropsForCustom | undefined;
|
|
372
|
-
openHarmonyGuide: boolean;
|
|
373
|
-
headerBorder?: boolean | undefined;
|
|
374
|
-
independence?: boolean | undefined;
|
|
375
|
-
userMenus?: any[] | undefined;
|
|
376
|
-
loginChildComponents: any;
|
|
377
|
-
bgConfig?: {
|
|
378
|
-
index_head: string;
|
|
379
|
-
detail_top: string;
|
|
380
|
-
detail_top_black: string;
|
|
381
|
-
detail_toolbar: string;
|
|
382
|
-
detail_toolbar_black: string;
|
|
383
|
-
detail_top_url: string;
|
|
384
|
-
index_head_url: string;
|
|
385
|
-
detail_toolbar_url: string;
|
|
386
|
-
} | undefined;
|
|
387
|
-
openCreateDropdown?: boolean | undefined;
|
|
388
|
-
}>, {
|
|
389
|
-
sceneValue: any;
|
|
390
|
-
headerBorder: boolean;
|
|
391
|
-
isLogin: boolean;
|
|
392
|
-
independence: boolean;
|
|
393
|
-
request: (params: any, customConfigs?: {
|
|
394
|
-
customError?: boolean | undefined;
|
|
395
|
-
customTimeout?: number | undefined;
|
|
396
|
-
ignoreError?: boolean | undefined;
|
|
397
|
-
customErrorCodes?: number[] | undefined;
|
|
398
|
-
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
399
|
-
globalStore: () => {
|
|
400
|
-
httpStatus: number;
|
|
401
|
-
};
|
|
402
|
-
repoInfo: () => {};
|
|
403
|
-
orgInfo: () => {};
|
|
404
|
-
otherUserInfo: () => {};
|
|
405
|
-
userInfo: () => {};
|
|
406
|
-
bgConfig: () => {
|
|
407
|
-
index_head: string;
|
|
408
|
-
detail_top: string;
|
|
409
|
-
detail_top_black: string;
|
|
410
|
-
detail_toolbar: string;
|
|
411
|
-
detail_toolbar_black: string;
|
|
412
|
-
detail_top_url: string;
|
|
413
|
-
index_head_url: string;
|
|
414
|
-
detail_toolbar_url: string;
|
|
415
|
-
};
|
|
416
|
-
openCreateDropdown: boolean;
|
|
417
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
418
|
-
resetPwdDirectlySuccess: (...args: any[]) => void;
|
|
419
|
-
followDevCommunity: (...args: any[]) => void;
|
|
420
|
-
followUser: (...args: any[]) => void;
|
|
421
|
-
"update:openCreateDropdown": (...args: any[]) => void;
|
|
422
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<{
|
|
423
|
-
sceneValue: SceneValue;
|
|
424
|
-
isLogin: boolean;
|
|
425
|
-
request: Function;
|
|
426
|
-
loginOutFinish?: Function | undefined;
|
|
427
|
-
loginSuccess: Function;
|
|
428
|
-
globalStore: Object;
|
|
429
|
-
repoInfo?: repoInfoType | undefined;
|
|
430
|
-
orgInfo?: OrgInfo | undefined;
|
|
431
|
-
otherUserInfo?: UserInfo | undefined;
|
|
432
|
-
userInfo?: UserInfo | undefined;
|
|
433
|
-
headerFunctions?: HeaderDisplayItem[] | undefined;
|
|
434
|
-
headerCustomProps?: HeaderPropsForCustom | undefined;
|
|
435
|
-
openHarmonyGuide: boolean;
|
|
436
|
-
headerBorder?: boolean | undefined;
|
|
437
|
-
independence?: boolean | undefined;
|
|
438
|
-
userMenus?: any[] | undefined;
|
|
439
|
-
loginChildComponents: any;
|
|
440
|
-
bgConfig?: {
|
|
441
|
-
index_head: string;
|
|
442
|
-
detail_top: string;
|
|
443
|
-
detail_top_black: string;
|
|
444
|
-
detail_toolbar: string;
|
|
445
|
-
detail_toolbar_black: string;
|
|
446
|
-
detail_top_url: string;
|
|
447
|
-
index_head_url: string;
|
|
448
|
-
detail_toolbar_url: string;
|
|
449
|
-
} | undefined;
|
|
450
|
-
openCreateDropdown?: boolean | undefined;
|
|
451
|
-
}>, {
|
|
452
|
-
sceneValue: any;
|
|
453
|
-
headerBorder: boolean;
|
|
454
|
-
isLogin: boolean;
|
|
455
|
-
independence: boolean;
|
|
456
|
-
request: (params: any, customConfigs?: {
|
|
457
|
-
customError?: boolean | undefined;
|
|
458
|
-
customTimeout?: number | undefined;
|
|
459
|
-
ignoreError?: boolean | undefined;
|
|
460
|
-
customErrorCodes?: number[] | undefined;
|
|
461
|
-
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
462
|
-
globalStore: () => {
|
|
463
|
-
httpStatus: number;
|
|
464
|
-
};
|
|
465
|
-
repoInfo: () => {};
|
|
466
|
-
orgInfo: () => {};
|
|
467
|
-
otherUserInfo: () => {};
|
|
468
|
-
userInfo: () => {};
|
|
469
|
-
bgConfig: () => {
|
|
470
|
-
index_head: string;
|
|
471
|
-
detail_top: string;
|
|
472
|
-
detail_top_black: string;
|
|
473
|
-
detail_toolbar: string;
|
|
474
|
-
detail_toolbar_black: string;
|
|
475
|
-
detail_top_url: string;
|
|
476
|
-
index_head_url: string;
|
|
477
|
-
detail_toolbar_url: string;
|
|
478
|
-
};
|
|
479
|
-
openCreateDropdown: boolean;
|
|
480
|
-
}>>> & Readonly<{
|
|
481
|
-
onResetPwdDirectlySuccess?: ((...args: any[]) => any) | undefined;
|
|
482
|
-
onFollowDevCommunity?: ((...args: any[]) => any) | undefined;
|
|
483
|
-
onFollowUser?: ((...args: any[]) => any) | undefined;
|
|
484
|
-
"onUpdate:openCreateDropdown"?: ((...args: any[]) => any) | undefined;
|
|
485
|
-
}>, {
|
|
486
|
-
globalStore: Object;
|
|
487
|
-
isLogin: boolean;
|
|
488
|
-
sceneValue: SceneValue;
|
|
489
|
-
request: Function;
|
|
490
|
-
repoInfo: repoInfoType;
|
|
491
|
-
orgInfo: OrgInfo;
|
|
492
|
-
otherUserInfo: UserInfo;
|
|
493
|
-
userInfo: UserInfo;
|
|
494
|
-
independence: boolean;
|
|
495
|
-
headerBorder: boolean;
|
|
496
|
-
bgConfig: {
|
|
497
|
-
index_head: string;
|
|
498
|
-
detail_top: string;
|
|
499
|
-
detail_top_black: string;
|
|
500
|
-
detail_toolbar: string;
|
|
501
|
-
detail_toolbar_black: string;
|
|
502
|
-
detail_top_url: string;
|
|
503
|
-
index_head_url: string;
|
|
504
|
-
detail_toolbar_url: string;
|
|
505
|
-
};
|
|
506
|
-
openCreateDropdown: boolean;
|
|
507
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
508
|
-
headerCustom?(_: {}): any;
|
|
509
|
-
aiSearch?(_: {}): any;
|
|
510
|
-
headerMiddleRight?(_: {}): any;
|
|
511
|
-
search?(_: {}): any;
|
|
512
|
-
searchRecommend?(_: {}): any;
|
|
513
|
-
globalSearch?(_: {
|
|
514
|
-
searchStr: string;
|
|
515
|
-
searchMore: (type: any) => void;
|
|
516
|
-
}): any;
|
|
517
|
-
bodyHeader?(_: {}): any;
|
|
518
|
-
info?(_: {}): any;
|
|
519
|
-
menu?(_: {}): any;
|
|
520
|
-
headerBottom?(_: {}): any;
|
|
521
|
-
}>;
|
|
425
|
+
export declare const GitCodeHeader: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
522
426
|
|
|
523
427
|
export declare const GitCodeLayoutEmitter: Emitter<EventBus>;
|
|
524
428
|
|
|
429
|
+
/** 默认 Header 新建菜单的路径顺序,与工作台 Header 保持一致。 */
|
|
430
|
+
export declare const HEADER_CREATE_MENU_PATHS: readonly ["/create?position=nav_top", "/create/migrate?type=3", "/models/create", "/datasets/create", "/space/create", "/collections/create", "/org/create"];
|
|
431
|
+
|
|
432
|
+
export declare const HeaderCreateMenu: DefineComponent_2<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {
|
|
433
|
+
navigate: (item: HeaderCreateMenuItem) => any;
|
|
434
|
+
"update:dropdownVisible": (visible: boolean) => any;
|
|
435
|
+
}, string, PublicProps_2, Readonly<__VLS_Props_4> & Readonly<{
|
|
436
|
+
onNavigate?: ((item: HeaderCreateMenuItem) => any) | undefined;
|
|
437
|
+
"onUpdate:dropdownVisible"?: ((visible: boolean) => any) | undefined;
|
|
438
|
+
}>, {
|
|
439
|
+
dropdownVisible: boolean;
|
|
440
|
+
isCreateOrg: boolean;
|
|
441
|
+
items: HeaderCreateMenuItem[];
|
|
442
|
+
onNavigate: HeaderCreateMenuNavigate;
|
|
443
|
+
}, {}, {}, {}, string, ComponentProvideOptions_2, false, {
|
|
444
|
+
triggerRef: HTMLButtonElement;
|
|
445
|
+
menuRef: HTMLDivElement;
|
|
446
|
+
}, HTMLDivElement>;
|
|
447
|
+
|
|
448
|
+
/** Header 新建菜单项。宿主项目可以用它覆写默认的七项菜单。 */
|
|
449
|
+
export declare interface HeaderCreateMenuItem {
|
|
450
|
+
key: string;
|
|
451
|
+
icon: string;
|
|
452
|
+
label: string;
|
|
453
|
+
href: string;
|
|
454
|
+
dividerBefore?: boolean;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
/** 自定义新建菜单跳转适配器。 */
|
|
458
|
+
export declare type HeaderCreateMenuNavigate = (item: HeaderCreateMenuItem) => void | Promise<void>;
|
|
459
|
+
|
|
525
460
|
declare enum HeaderDisplayItem {
|
|
526
461
|
LOGIN_AND_AVATAR = "0101",
|
|
527
462
|
MESSAGE_CENTER = "0102",
|
|
@@ -536,47 +471,78 @@ declare enum HeaderDisplayItem {
|
|
|
536
471
|
OPERATION_ENTRY = "0111"
|
|
537
472
|
}
|
|
538
473
|
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
|
|
474
|
+
/**
|
|
475
|
+
* 首页一级频道项
|
|
476
|
+
*/
|
|
477
|
+
declare interface HomeChannelItem {
|
|
478
|
+
/** 频道 id (后端 mongo object_id 字符串) */
|
|
479
|
+
object_id: string;
|
|
480
|
+
/** 频道展示名 */
|
|
481
|
+
name: string;
|
|
482
|
+
name_en?: string;
|
|
483
|
+
icon?: string;
|
|
484
|
+
dark_icon?: string;
|
|
485
|
+
icon_dark?: string;
|
|
486
|
+
level?: number;
|
|
487
|
+
parent_id?: string;
|
|
488
|
+
/** 标识当前栏目是自定义静态页 */
|
|
489
|
+
static?: boolean;
|
|
490
|
+
/** 直接跳外链 url */
|
|
491
|
+
url?: string;
|
|
492
|
+
description?: string;
|
|
493
|
+
desc?: string;
|
|
494
|
+
desc_en?: string;
|
|
495
|
+
/** 是否本月新增,true 时在侧边菜单展示 New 标签 */
|
|
496
|
+
is_new?: boolean;
|
|
497
|
+
children?: HomeChannelItem[];
|
|
498
|
+
channelPrefixLogo?: {
|
|
499
|
+
logoUrl?: string;
|
|
500
|
+
logoLink?: string;
|
|
501
|
+
};
|
|
502
|
+
pre_logo?: string;
|
|
503
|
+
pre_logo_jump_url?: string;
|
|
504
|
+
[key: string]: unknown;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* 首页频道 Store / 组件中使用的频道项类型
|
|
509
|
+
*/
|
|
510
|
+
declare type HomeChannelStoreItem = HomeChannelItem & {
|
|
511
|
+
links?: RecommendLinkItem[];
|
|
512
|
+
group?: {
|
|
513
|
+
name: string;
|
|
514
|
+
name_en?: string;
|
|
515
|
+
len: number;
|
|
516
|
+
};
|
|
517
|
+
groupIndex?: number;
|
|
518
|
+
children?: HomeChannelStoreItem[];
|
|
573
519
|
};
|
|
574
|
-
|
|
575
|
-
}
|
|
520
|
+
|
|
521
|
+
export declare const HomeHeaderActions: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{}>, {
|
|
522
|
+
customItems: HomePageSidebarItem[];
|
|
523
|
+
fallbacks: Partial<HomeHeaderActionUrls>;
|
|
524
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
525
|
+
|
|
526
|
+
declare interface HomeHeaderActionUrls {
|
|
527
|
+
atomCode: string;
|
|
528
|
+
aiCommunity: string;
|
|
529
|
+
competition: string;
|
|
530
|
+
marketplace: string;
|
|
531
|
+
workspace: string;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
declare interface HomePageSidebarItem {
|
|
535
|
+
left_menu_name_cn?: string;
|
|
536
|
+
left_menu_name_cn_shrink?: string;
|
|
537
|
+
left_menu_url?: string;
|
|
538
|
+
[key: string]: unknown;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
export declare const Login: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
576
542
|
globalStore: Object;
|
|
577
543
|
request: Function;
|
|
578
544
|
openHarmonyGuide: boolean;
|
|
579
|
-
}, {}, {}, {}, string, ComponentProvideOptions,
|
|
545
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
580
546
|
|
|
581
547
|
declare interface LoginOptions {
|
|
582
548
|
Authorization?: boolean;
|
|
@@ -632,6 +598,42 @@ declare interface Props_2 {
|
|
|
632
598
|
slotKeys?: Array<string>;
|
|
633
599
|
}
|
|
634
600
|
|
|
601
|
+
declare interface Props_3 extends GitCodeAsideV2Props {
|
|
602
|
+
/** 是否显示主题设置 */
|
|
603
|
+
showThemeSetting?: boolean | undefined;
|
|
604
|
+
/** 是否显示语言设置 */
|
|
605
|
+
showLangSetting?: boolean | undefined;
|
|
606
|
+
collapseMode?: boolean;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
declare interface Props_4 {
|
|
610
|
+
/** 容器使用的 DOM 元素标签,默认为 'div' */
|
|
611
|
+
tag?: string;
|
|
612
|
+
/** 滚动停止后取消 isScrolling 状态的延迟时间 (毫秒),默认 300 */
|
|
613
|
+
timeout?: number;
|
|
614
|
+
/** 滚动方向 'vertical' | 'horizontal',默认 'vertical' */
|
|
615
|
+
direction?: 'vertical' | 'horizontal';
|
|
616
|
+
/** 鼠标悬浮时是否展示滚动条,默认为 true */
|
|
617
|
+
visibleOnHover?: boolean;
|
|
618
|
+
/** 外层包裹容器的附加 class */
|
|
619
|
+
wrapperClass?: string;
|
|
620
|
+
/** 内容包裹层的附加 class */
|
|
621
|
+
contentClass?: string;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* 频道推荐外链项
|
|
626
|
+
*/
|
|
627
|
+
declare interface RecommendLinkItem {
|
|
628
|
+
name: string;
|
|
629
|
+
name_en?: string;
|
|
630
|
+
url: string;
|
|
631
|
+
icon?: string;
|
|
632
|
+
dark_icon?: string;
|
|
633
|
+
icon_dark?: string;
|
|
634
|
+
[key: string]: unknown;
|
|
635
|
+
}
|
|
636
|
+
|
|
635
637
|
export declare enum SceneValue {
|
|
636
638
|
home = "home",
|
|
637
639
|
repo = "repo",
|
|
@@ -646,48 +648,29 @@ export declare enum SceneValue {
|
|
|
646
648
|
enterprise = "enterprise"
|
|
647
649
|
}
|
|
648
650
|
|
|
651
|
+
export declare const ScrollActiveContainer: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
652
|
+
|
|
649
653
|
export declare function setLayoutConfig(customConfig: BaseLayoutConfig): void;
|
|
650
654
|
|
|
651
655
|
export { setTheme }
|
|
652
656
|
|
|
653
657
|
export declare const SiteAnnouncement: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
654
658
|
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
customErrorCodes?: number[] | undefined;
|
|
663
|
-
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
664
|
-
globalStore: () => {};
|
|
665
|
-
isRepoPage: boolean;
|
|
666
|
-
isWhiteListRepo: boolean;
|
|
667
|
-
isCannWhiteList: boolean;
|
|
668
|
-
}>>, {
|
|
669
|
-
handleCollapseTool: (status: string) => void;
|
|
659
|
+
declare const TOOLS_FLOAT_COLLAPSE_STATUS: {
|
|
660
|
+
COLLAPSE: string;
|
|
661
|
+
EXPAND: string;
|
|
662
|
+
};
|
|
663
|
+
|
|
664
|
+
export declare const ToolsFloat: DefineComponent<Props, {
|
|
665
|
+
handleCollapseTool: (status: ToolsFloatCollapseStatusType) => void;
|
|
670
666
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
671
|
-
"toggle-growth-center": () =>
|
|
672
|
-
}, string, PublicProps, Readonly<
|
|
673
|
-
sceneValue: SceneValue;
|
|
674
|
-
isLogin: boolean;
|
|
675
|
-
request: (params: any, customConfigs?: {
|
|
676
|
-
customError?: boolean | undefined;
|
|
677
|
-
customTimeout?: number | undefined;
|
|
678
|
-
ignoreError?: boolean | undefined;
|
|
679
|
-
customErrorCodes?: number[] | undefined;
|
|
680
|
-
} | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
681
|
-
globalStore: () => {};
|
|
682
|
-
isRepoPage: boolean;
|
|
683
|
-
isWhiteListRepo: boolean;
|
|
684
|
-
isCannWhiteList: boolean;
|
|
685
|
-
}>>> & Readonly<{
|
|
667
|
+
"toggle-growth-center": () => any;
|
|
668
|
+
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
686
669
|
"onToggle-growth-center"?: (() => any) | undefined;
|
|
687
670
|
}>, {
|
|
688
671
|
globalStore: {
|
|
672
|
+
isSignIn?: boolean;
|
|
689
673
|
[key: string]: any;
|
|
690
|
-
isSignIn?: boolean | undefined;
|
|
691
674
|
};
|
|
692
675
|
isLogin: boolean;
|
|
693
676
|
sceneValue: SceneValue;
|
|
@@ -695,7 +678,9 @@ request: Function;
|
|
|
695
678
|
isRepoPage: boolean;
|
|
696
679
|
isWhiteListRepo: boolean;
|
|
697
680
|
isCannWhiteList: boolean;
|
|
698
|
-
}, {}, {}, {}, string, ComponentProvideOptions,
|
|
681
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
682
|
+
|
|
683
|
+
declare type ToolsFloatCollapseStatusType = typeof TOOLS_FLOAT_COLLAPSE_STATUS[keyof typeof TOOLS_FLOAT_COLLAPSE_STATUS];
|
|
699
684
|
|
|
700
685
|
export declare function useLogin(request: any, globalStore?: any): {
|
|
701
686
|
login: (options?: LoginOptions, loginSuccess?: Function, openHarmonyGuide?: boolean) => void;
|