vue-layout-gitcode 1.12.15-beta.2 → 1.12.15-beta.20

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/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,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 type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
-
24
- declare type __VLS_NonUndefinedable_2<T> = T extends undefined ? never : T;
25
-
26
- declare type __VLS_NonUndefinedable_3<T> = T extends undefined ? never : T;
27
-
28
- declare type __VLS_NonUndefinedable_4<T> = T extends undefined ? never : T;
29
-
30
- declare type __VLS_NonUndefinedable_5<T> = T extends undefined ? never : T;
31
-
32
- declare type __VLS_Prettify<T> = {
33
- [K in keyof T]: T[K];
34
- } & {};
35
-
36
- declare type __VLS_Prettify_2<T> = {
37
- [K in keyof T]: T[K];
38
- } & {};
39
-
40
- declare type __VLS_Prettify_3<T> = {
41
- [K in keyof T]: T[K];
42
- } & {};
43
-
44
- declare type __VLS_Prettify_4<T> = {
45
- [K in keyof T]: T[K];
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
+ 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;
89
+ };
90
+ openCreateDropdown: boolean;
91
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
92
+ headerRef: HTMLDivElement;
93
+ }, HTMLDivElement>;
47
94
 
48
- declare type __VLS_Prettify_5<T> = {
49
- [K in keyof T]: T[K];
50
- } & {};
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>;
51
115
 
52
- declare type __VLS_TypePropsToRuntimeProps<T> = {
53
- [K in keyof T]-?: {} extends Pick<T, K> ? {
54
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
55
- } : {
56
- type: PropType<T[K]>;
57
- required: true;
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 __VLS_TypePropsToRuntimeProps_2<T> = {
62
- [K in keyof T]-?: {} extends Pick<T, K> ? {
63
- type: PropType<__VLS_NonUndefinedable_2<T[K]>>;
64
- } : {
65
- type: PropType<T[K]>;
66
- required: true;
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;
68
154
  };
69
155
 
70
- declare type __VLS_TypePropsToRuntimeProps_3<T> = {
71
- [K in keyof T]-?: {} extends Pick<T, K> ? {
72
- type: PropType<__VLS_NonUndefinedable_3<T[K]>>;
73
- } : {
74
- type: PropType<T[K]>;
75
- required: true;
76
- };
156
+ declare type __VLS_Props_3 = {
157
+ customItems?: HomePageSidebarItem[];
158
+ fallbacks?: Partial<HomeHeaderActionUrls>;
77
159
  };
78
160
 
79
- declare type __VLS_TypePropsToRuntimeProps_4<T> = {
80
- [K in keyof T]-?: {} extends Pick<T, K> ? {
81
- type: PropType<__VLS_NonUndefinedable_4<T[K]>>;
82
- } : {
83
- type: PropType<T[K]>;
84
- required: true;
85
- };
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;
86
176
  };
87
177
 
88
- declare type __VLS_TypePropsToRuntimeProps_5<T> = {
89
- [K in keyof T]-?: {} extends Pick<T, K> ? {
90
- type: PropType<__VLS_NonUndefinedable_5<T[K]>>;
91
- } : {
92
- type: PropType<T[K]>;
93
- required: true;
94
- };
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[];
95
188
  };
96
189
 
97
- declare type __VLS_WithDefaults<P, D> = {
98
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
99
- default: D[K];
100
- }> : P[K];
190
+ declare function __VLS_template(): {
191
+ attrs: Partial<{}>;
192
+ slots: Partial<Record<string, (_: {}) => any>>;
193
+ refs: {};
194
+ rootEl: any;
101
195
  };
102
196
 
103
- declare type __VLS_WithDefaults_2<P, D> = {
104
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_2<P[K] & {
105
- default: D[K];
106
- }> : P[K];
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;
107
252
  };
108
253
 
109
- declare type __VLS_WithDefaults_3<P, D> = {
110
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_3<P[K] & {
111
- default: D[K];
112
- }> : P[K];
113
- };
254
+ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
114
255
 
115
- declare type __VLS_WithDefaults_4<P, D> = {
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
- };
256
+ declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
120
257
 
121
- declare type __VLS_WithDefaults_5<P, D> = {
122
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_5<P[K] & {
123
- default: D[K];
124
- }> : P[K];
125
- };
258
+ declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
259
+
260
+ declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
126
261
 
127
262
  declare type __VLS_WithTemplateSlots<T, S> = T & {
128
263
  new (): {
@@ -142,6 +277,18 @@ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
142
277
  };
143
278
  };
144
279
 
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<{}>, {
287
+ position: string[];
288
+ showThemeSetting: boolean;
289
+ showLangSetting: boolean;
290
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
291
+
145
292
  declare interface BaseLayoutConfig {
146
293
  VITE_HOST: string;
147
294
  VITE_HOST_TIANQI: string;
@@ -166,109 +313,7 @@ declare const _default: {
166
313
  };
167
314
  export default _default;
168
315
 
169
- export declare const EnterpriseHeader: __VLS_WithTemplateSlots_3<DefineComponent<ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToRuntimeProps_5<{
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
- }>;
316
+ export declare const EnterpriseHeader: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
272
317
 
273
318
  declare type EventBus = {
274
319
  logout?: boolean;
@@ -300,225 +345,69 @@ declare type EventBus = {
300
345
  resetPwdDirectlySuccess: void;
301
346
  };
302
347
 
303
- export declare const GitCodeAside: __VLS_WithTemplateSlots<DefineComponent<ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_3<Props_2>, {
304
- sceneValue: SceneValue;
305
- disableFlatMode: boolean;
306
- request: (params: any, customConfigs?: {
307
- customError?: boolean | undefined;
308
- customTimeout?: number | undefined;
309
- ignoreError?: boolean | undefined;
310
- customErrorCodes?: number[] | undefined;
311
- } | undefined) => Promise<AxiosResponse<any, any, {}>>;
312
- globalStore: () => {
313
- httpStatus: number;
314
- };
315
- userInfo: () => {};
316
- independence: boolean;
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;
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>;
347
362
  sceneValue: SceneValue;
348
363
  request: Function;
364
+ modelValue: string;
349
365
  userInfo: AccountInfo;
350
366
  independence: boolean;
351
- slotKeys: string[];
352
367
  showThemeSetting: boolean;
353
368
  showLangSetting: boolean;
354
- showPreferencesSetting: boolean;
355
369
  collapseMode: boolean;
356
370
  disableFlatMode: boolean;
357
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, Partial<Record<string, (_: {}) => any>>>;
371
+ singleCol: boolean;
372
+ channels: HomeChannelStoreItem[];
373
+ activeChannel: string;
374
+ onChannelChange: (item: HomeChannelStoreItem) => void;
375
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
376
+
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
+ }
358
409
 
359
- export declare const GitCodeHeader: __VLS_WithTemplateSlots_2<DefineComponent<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<{
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
- }>;
410
+ export declare const GitCodeHeader: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
522
411
 
523
412
  export declare const GitCodeLayoutEmitter: Emitter<EventBus>;
524
413
 
@@ -536,47 +425,78 @@ declare enum HeaderDisplayItem {
536
425
  OPERATION_ENTRY = "0111"
537
426
  }
538
427
 
539
- export declare const Login: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<{
540
- isLogin: boolean;
541
- request: Function;
542
- loginOutFinish?: Function | undefined;
543
- loginSuccess: Function;
544
- globalStore: Object;
545
- openHarmonyGuide: boolean;
546
- }>, {
547
- request: (params: any, customConfigs?: {
548
- customError?: boolean | undefined;
549
- customTimeout?: number | undefined;
550
- ignoreError?: boolean | undefined;
551
- customErrorCodes?: number[] | undefined;
552
- } | undefined) => Promise<AxiosResponse<any, any, {}>>;
553
- globalStore: () => {
554
- httpStatus: number;
555
- };
556
- openHarmonyGuide: boolean;
557
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<{
558
- isLogin: boolean;
559
- request: Function;
560
- loginOutFinish?: Function | undefined;
561
- loginSuccess: Function;
562
- globalStore: Object;
563
- openHarmonyGuide: boolean;
564
- }>, {
565
- request: (params: any, customConfigs?: {
566
- customError?: boolean | undefined;
567
- customTimeout?: number | undefined;
568
- ignoreError?: boolean | undefined;
569
- customErrorCodes?: number[] | undefined;
570
- } | undefined) => Promise<AxiosResponse<any, any, {}>>;
571
- globalStore: () => {
572
- httpStatus: number;
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[];
573
473
  };
574
- openHarmonyGuide: boolean;
575
- }>>> & Readonly<{}>, {
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<{}>, {
576
496
  globalStore: Object;
577
497
  request: Function;
578
498
  openHarmonyGuide: boolean;
579
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
499
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
580
500
 
581
501
  declare interface LoginOptions {
582
502
  Authorization?: boolean;
@@ -632,6 +552,42 @@ declare interface Props_2 {
632
552
  slotKeys?: Array<string>;
633
553
  }
634
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
+
635
591
  export declare enum SceneValue {
636
592
  home = "home",
637
593
  repo = "repo",
@@ -646,48 +602,29 @@ export declare enum SceneValue {
646
602
  enterprise = "enterprise"
647
603
  }
648
604
 
605
+ export declare const ScrollActiveContainer: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
606
+
649
607
  export declare function setLayoutConfig(customConfig: BaseLayoutConfig): void;
650
608
 
651
609
  export { setTheme }
652
610
 
653
611
  export declare const SiteAnnouncement: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
654
612
 
655
- export declare const ToolsFloat: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
656
- sceneValue: SceneValue;
657
- isLogin: boolean;
658
- request: (params: any, customConfigs?: {
659
- customError?: boolean | undefined;
660
- customTimeout?: number | undefined;
661
- ignoreError?: boolean | undefined;
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;
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;
670
620
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
671
- "toggle-growth-center": () => void;
672
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
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<{
621
+ "toggle-growth-center": () => any;
622
+ }, string, PublicProps, Readonly<Props> & Readonly<{
686
623
  "onToggle-growth-center"?: (() => any) | undefined;
687
624
  }>, {
688
625
  globalStore: {
626
+ isSignIn?: boolean;
689
627
  [key: string]: any;
690
- isSignIn?: boolean | undefined;
691
628
  };
692
629
  isLogin: boolean;
693
630
  sceneValue: SceneValue;
@@ -695,7 +632,9 @@ request: Function;
695
632
  isRepoPage: boolean;
696
633
  isWhiteListRepo: boolean;
697
634
  isCannWhiteList: boolean;
698
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
635
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
636
+
637
+ declare type ToolsFloatCollapseStatusType = typeof TOOLS_FLOAT_COLLAPSE_STATUS[keyof typeof TOOLS_FLOAT_COLLAPSE_STATUS];
699
638
 
700
639
  export declare function useLogin(request: any, globalStore?: any): {
701
640
  login: (options?: LoginOptions, loginSuccess?: Function, openHarmonyGuide?: boolean) => void;