vue-layout-gitcode 1.12.15-beta.16 → 1.12.15-beta.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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 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_NonUndefinedable_6<T> = T extends undefined ? never : T;
33
-
34
- declare type __VLS_Prettify<T> = {
35
- [K in keyof T]: T[K];
36
- } & {};
37
-
38
- declare type __VLS_Prettify_2<T> = {
39
- [K in keyof T]: T[K];
40
- } & {};
41
-
42
- declare type __VLS_Prettify_3<T> = {
43
- [K in keyof T]: T[K];
44
- } & {};
45
-
46
- declare type __VLS_Prettify_4<T> = {
47
- [K in keyof T]: T[K];
48
- } & {};
49
-
50
- declare type __VLS_Prettify_5<T> = {
51
- [K in keyof T]: T[K];
52
- } & {};
53
-
54
- declare type __VLS_Prettify_6<T> = {
55
- [K in keyof T]: T[K];
56
- } & {};
57
-
58
- declare type __VLS_TypePropsToRuntimeProps<T> = {
59
- [K in keyof T]-?: {} extends Pick<T, K> ? {
60
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
61
- } : {
62
- type: PropType<T[K]>;
63
- required: true;
64
- };
20
+ declare const __VLS_component: DefineComponent<Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_2> & Readonly<{}>, {
21
+ globalStore: Object;
22
+ sceneValue: SceneValue;
23
+ request: Function;
24
+ userInfo: AccountInfo;
25
+ independence: boolean;
26
+ slotKeys: Array<string>;
27
+ showThemeSetting: boolean;
28
+ showLangSetting: boolean;
29
+ showPreferencesSetting: boolean;
30
+ collapseMode: boolean;
31
+ disableFlatMode: boolean;
32
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
33
+
34
+ declare const __VLS_component_2: DefineComponent<Props_4, {
35
+ containerEl: Ref<HTMLElement | null, HTMLElement | null>;
36
+ contentEl: Ref<HTMLElement | null, HTMLElement | null>;
37
+ trackEl: Ref<HTMLDivElement | null, HTMLDivElement | null>;
38
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
39
+ mouseenter: (event: MouseEvent) => any;
40
+ mouseleave: (event: MouseEvent) => any;
41
+ scroll: (event: Event) => any;
42
+ }, string, PublicProps, Readonly<Props_4> & Readonly<{
43
+ onMouseenter?: ((event: MouseEvent) => any) | undefined;
44
+ onMouseleave?: ((event: MouseEvent) => any) | undefined;
45
+ onScroll?: ((event: Event) => any) | undefined;
46
+ }>, {
47
+ timeout: number;
48
+ tag: string;
49
+ direction: "vertical" | "horizontal";
50
+ visibleOnHover: boolean;
51
+ wrapperClass: string;
52
+ contentClass: string;
53
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
54
+ containerRef: unknown;
55
+ contentRef: HTMLDivElement;
56
+ trackRef: HTMLDivElement;
57
+ }, any>;
58
+
59
+ declare const __VLS_component_3: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
60
+ resetPwdDirectlySuccess: (...args: any[]) => void;
61
+ followDevCommunity: (...args: any[]) => void;
62
+ followUser: (...args: any[]) => void;
63
+ "update:openCreateDropdown": (...args: any[]) => void;
64
+ }, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{
65
+ onResetPwdDirectlySuccess?: ((...args: any[]) => any) | undefined;
66
+ onFollowDevCommunity?: ((...args: any[]) => any) | undefined;
67
+ onFollowUser?: ((...args: any[]) => any) | undefined;
68
+ "onUpdate:openCreateDropdown"?: ((...args: any[]) => any) | undefined;
69
+ }>, {
70
+ globalStore: Object;
71
+ isLogin: boolean;
72
+ sceneValue: SceneValue;
73
+ request: Function;
74
+ repoInfo: repoInfoType;
75
+ orgInfo: OrgInfo;
76
+ otherUserInfo: UserInfo;
77
+ userInfo: UserInfo;
78
+ independence: boolean;
79
+ headerBorder: boolean;
80
+ bgConfig: {
81
+ index_head: string;
82
+ detail_top: string;
83
+ detail_top_black: string;
84
+ detail_toolbar: string;
85
+ detail_toolbar_black: string;
86
+ detail_top_url: string;
87
+ index_head_url: string;
88
+ detail_toolbar_url: string;
65
89
  };
90
+ openCreateDropdown: boolean;
91
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
92
+ headerRef: HTMLDivElement;
93
+ }, HTMLDivElement>;
66
94
 
67
- declare type __VLS_TypePropsToRuntimeProps_2<T> = {
68
- [K in keyof T]-?: {} extends Pick<T, K> ? {
69
- type: PropType<__VLS_NonUndefinedable_2<T[K]>>;
70
- } : {
71
- type: PropType<T[K]>;
72
- required: true;
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 __VLS_TypePropsToRuntimeProps_3<T> = {
77
- [K in keyof T]-?: {} extends Pick<T, K> ? {
78
- type: PropType<__VLS_NonUndefinedable_3<T[K]>>;
79
- } : {
80
- type: PropType<T[K]>;
81
- required: true;
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 __VLS_TypePropsToRuntimeProps_4<T> = {
86
- [K in keyof T]-?: {} extends Pick<T, K> ? {
87
- type: PropType<__VLS_NonUndefinedable_4<T[K]>>;
88
- } : {
89
- type: PropType<T[K]>;
90
- 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;
91
152
  };
153
+ openCreateDropdown?: boolean;
92
154
  };
93
155
 
94
- declare type __VLS_TypePropsToRuntimeProps_5<T> = {
95
- [K in keyof T]-?: {} extends Pick<T, K> ? {
96
- type: PropType<__VLS_NonUndefinedable_5<T[K]>>;
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 __VLS_TypePropsToRuntimeProps_6<T> = {
104
- [K in keyof T]-?: {} extends Pick<T, K> ? {
105
- type: PropType<__VLS_NonUndefinedable_6<T[K]>>;
106
- } : {
107
- type: PropType<T[K]>;
108
- required: true;
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 __VLS_WithDefaults<P, D> = {
113
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
114
- default: D[K];
115
- }> : P[K];
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 type __VLS_WithDefaults_2<P, D> = {
119
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_2<P[K] & {
120
- default: D[K];
121
- }> : P[K];
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 type __VLS_WithDefaults_3<P, D> = {
125
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_3<P[K] & {
126
- default: D[K];
127
- }> : 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;
128
252
  };
129
253
 
130
- declare type __VLS_WithDefaults_4<P, D> = {
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 __VLS_WithDefaults_5<P, D> = {
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 __VLS_WithDefaults_6<P, D> = {
143
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_6<P[K] & {
144
- default: D[K];
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
- export declare const AsideFooterTools: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_6<__VLS_TypePropsToRuntimeProps_6<{
167
- /** 展示主题设置项,默认 true */
168
- showThemeSetting?: boolean | undefined;
169
- /** 展示语言设置项,默认 true */
170
- showLangSetting?: boolean | undefined;
171
- /**
172
- * 下拉菜单弹出位置,默认 `['bottom-end']`。
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, true, {}, any>;
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: __VLS_WithTemplateSlots_3<DefineComponent<ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToRuntimeProps_5<{
225
- isLogin: boolean;
226
- request: Function;
227
- globalStore: Object;
228
- loginSuccess: Function;
229
- enterpriseInfo: OrgInfo;
230
- loginOutFinish?: Function | undefined;
231
- orgInfo?: OrgInfo | undefined;
232
- userInfo?: UserInfo | undefined;
233
- headerFunctions?: HeaderDisplayItem[] | undefined;
234
- openHarmonyGuide: boolean;
235
- headerBorder?: boolean | undefined;
236
- independence?: boolean | undefined;
237
- userMenus?: any[] | undefined;
238
- loginChildComponents: any;
239
- }>, {
240
- headerBorder: boolean;
241
- isLogin: boolean;
242
- independence: boolean;
243
- request: (params: any, customConfigs?: {
244
- customError?: boolean | undefined;
245
- customTimeout?: number | undefined;
246
- ignoreError?: boolean | undefined;
247
- customErrorCodes?: number[] | undefined;
248
- } | undefined) => Promise<AxiosResponse<any, any, {}>>;
249
- globalStore: () => {
250
- httpStatus: number;
251
- };
252
- orgInfo: () => {
253
- avatar: string;
254
- name: string;
255
- };
256
- userInfo: () => {};
257
- enterpriseInfo: () => {
258
- avatar: string;
259
- name: string;
260
- };
261
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
262
- resetPwdDirectlySuccess: (...args: any[]) => void;
263
- followDevCommunity: (...args: any[]) => void;
264
- followUser: (...args: any[]) => void;
265
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToRuntimeProps_5<{
266
- isLogin: boolean;
267
- request: Function;
268
- globalStore: Object;
269
- loginSuccess: Function;
270
- enterpriseInfo: OrgInfo;
271
- loginOutFinish?: Function | undefined;
272
- orgInfo?: OrgInfo | undefined;
273
- userInfo?: UserInfo | undefined;
274
- headerFunctions?: HeaderDisplayItem[] | undefined;
275
- openHarmonyGuide: boolean;
276
- headerBorder?: boolean | undefined;
277
- independence?: boolean | undefined;
278
- userMenus?: any[] | undefined;
279
- loginChildComponents: any;
280
- }>, {
281
- headerBorder: boolean;
282
- isLogin: boolean;
283
- independence: boolean;
284
- request: (params: any, customConfigs?: {
285
- customError?: boolean | undefined;
286
- customTimeout?: number | undefined;
287
- ignoreError?: boolean | undefined;
288
- customErrorCodes?: number[] | undefined;
289
- } | undefined) => Promise<AxiosResponse<any, any, {}>>;
290
- globalStore: () => {
291
- httpStatus: number;
292
- };
293
- orgInfo: () => {
294
- avatar: string;
295
- name: string;
296
- };
297
- userInfo: () => {};
298
- enterpriseInfo: () => {
299
- avatar: string;
300
- name: string;
301
- };
302
- }>>> & Readonly<{
303
- onResetPwdDirectlySuccess?: ((...args: any[]) => any) | undefined;
304
- onFollowDevCommunity?: ((...args: any[]) => any) | undefined;
305
- onFollowUser?: ((...args: any[]) => any) | undefined;
306
- }>, {
307
- globalStore: Object;
308
- isLogin: boolean;
309
- request: Function;
310
- orgInfo: OrgInfo;
311
- userInfo: UserInfo;
312
- independence: boolean;
313
- headerBorder: boolean;
314
- enterpriseInfo: OrgInfo;
315
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
316
- search?(_: {}): any;
317
- searchRecommend?(_: {}): any;
318
- globalSearch?(_: {
319
- searchStr: string;
320
- searchMore: (type: any) => void;
321
- }): any;
322
- bodyHeader?(_: {}): any;
323
- info?(_: {}): any;
324
- menu?(_: {}): any;
325
- headerBottom?(_: {}): any;
326
- }>;
316
+ export declare const EnterpriseHeader: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
327
317
 
328
318
  declare type EventBus = {
329
319
  logout?: boolean;
@@ -355,225 +345,69 @@ declare type EventBus = {
355
345
  resetPwdDirectlySuccess: void;
356
346
  };
357
347
 
358
- export declare const GitCodeAside: __VLS_WithTemplateSlots<DefineComponent<ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_3<Props_2>, {
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;
348
+ export declare const GitCodeAside: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
349
+
350
+ export declare const GitCodeAsideV2: DefineComponent<Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
351
+ select: (item: HomeChannelStoreItem) => any;
352
+ "update:modelValue": (val: string) => any;
353
+ "update:activeChannel": (val: string) => any;
354
+ channelChange: (item: HomeChannelStoreItem) => any;
355
+ }, string, PublicProps, Readonly<Props_3> & Readonly<{
356
+ onSelect?: ((item: HomeChannelStoreItem) => any) | undefined;
357
+ "onUpdate:modelValue"?: ((val: string) => any) | undefined;
358
+ "onUpdate:activeChannel"?: ((val: string) => any) | undefined;
359
+ onChannelChange?: ((item: HomeChannelStoreItem) => any) | undefined;
360
+ }>, {
361
+ globalStore: Record<string, unknown>;
402
362
  sceneValue: SceneValue;
403
363
  request: Function;
364
+ modelValue: string;
404
365
  userInfo: AccountInfo;
405
366
  independence: boolean;
406
- slotKeys: string[];
407
367
  showThemeSetting: boolean;
408
368
  showLangSetting: boolean;
409
- showPreferencesSetting: boolean;
410
369
  collapseMode: boolean;
411
370
  disableFlatMode: boolean;
412
- }, {}, {}, {}, 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>;
413
376
 
414
- export declare const GitCodeHeader: __VLS_WithTemplateSlots_2<DefineComponent<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<{
415
- sceneValue: SceneValue;
416
- isLogin: boolean;
417
- request: Function;
418
- loginOutFinish?: Function | undefined;
419
- loginSuccess: Function;
420
- globalStore: Object;
421
- repoInfo?: repoInfoType | undefined;
422
- orgInfo?: OrgInfo | undefined;
423
- otherUserInfo?: UserInfo | undefined;
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;
443
- }>, {
444
- sceneValue: any;
445
- headerBorder: boolean;
446
- 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
- sceneValue: SceneValue;
479
- isLogin: boolean;
480
- request: Function;
481
- loginOutFinish?: Function | undefined;
482
- loginSuccess: Function;
483
- globalStore: Object;
484
- repoInfo?: repoInfoType | undefined;
485
- orgInfo?: OrgInfo | undefined;
486
- otherUserInfo?: UserInfo | undefined;
487
- userInfo?: UserInfo | undefined;
488
- headerFunctions?: HeaderDisplayItem[] | undefined;
489
- headerCustomProps?: HeaderPropsForCustom | undefined;
490
- openHarmonyGuide: boolean;
491
- headerBorder?: boolean | undefined;
492
- independence?: boolean | undefined;
493
- userMenus?: any[] | undefined;
494
- loginChildComponents: any;
495
- bgConfig?: {
496
- index_head: string;
497
- detail_top: string;
498
- detail_top_black: string;
499
- detail_toolbar: string;
500
- detail_toolbar_black: string;
501
- detail_top_url: string;
502
- index_head_url: string;
503
- detail_toolbar_url: string;
504
- } | undefined;
505
- openCreateDropdown?: boolean | undefined;
506
- }>, {
507
- sceneValue: any;
508
- headerBorder: boolean;
509
- isLogin: boolean;
510
- independence: boolean;
511
- request: (params: any, customConfigs?: {
512
- customError?: boolean | undefined;
513
- customTimeout?: number | undefined;
514
- ignoreError?: boolean | undefined;
515
- customErrorCodes?: number[] | undefined;
516
- } | undefined) => Promise<AxiosResponse<any, any, {}>>;
517
- globalStore: () => {
518
- httpStatus: number;
519
- };
520
- repoInfo: () => {};
521
- orgInfo: () => {};
522
- otherUserInfo: () => {};
523
- userInfo: () => {};
524
- bgConfig: () => {
525
- index_head: string;
526
- detail_top: string;
527
- detail_top_black: string;
528
- detail_toolbar: string;
529
- detail_toolbar_black: string;
530
- detail_top_url: string;
531
- index_head_url: string;
532
- detail_toolbar_url: string;
533
- };
534
- openCreateDropdown: boolean;
535
- }>>> & Readonly<{
536
- onResetPwdDirectlySuccess?: ((...args: any[]) => any) | undefined;
537
- onFollowDevCommunity?: ((...args: any[]) => any) | undefined;
538
- onFollowUser?: ((...args: any[]) => any) | undefined;
539
- "onUpdate:openCreateDropdown"?: ((...args: any[]) => any) | undefined;
540
- }>, {
541
- globalStore: Object;
542
- isLogin: boolean;
543
- sceneValue: SceneValue;
544
- request: Function;
545
- repoInfo: repoInfoType;
546
- orgInfo: OrgInfo;
547
- otherUserInfo: UserInfo;
548
- userInfo: UserInfo;
549
- independence: boolean;
550
- headerBorder: boolean;
551
- bgConfig: {
552
- index_head: string;
553
- detail_top: string;
554
- detail_top_black: string;
555
- detail_toolbar: string;
556
- detail_toolbar_black: string;
557
- detail_top_url: string;
558
- index_head_url: string;
559
- detail_toolbar_url: string;
560
- };
561
- openCreateDropdown: boolean;
562
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
563
- headerCustom?(_: {}): any;
564
- aiSearch?(_: {}): any;
565
- headerMiddleRight?(_: {}): any;
566
- search?(_: {}): any;
567
- searchRecommend?(_: {}): any;
568
- globalSearch?(_: {
569
- searchStr: string;
570
- searchMore: (type: any) => void;
571
- }): any;
572
- bodyHeader?(_: {}): any;
573
- info?(_: {}): any;
574
- menu?(_: {}): any;
575
- headerBottom?(_: {}): any;
576
- }>;
377
+ /**
378
+ * GitCodeAsideV2 组件 Props 定义
379
+ */
380
+ declare interface GitCodeAsideV2Props {
381
+ /** 场景值,默认为 home */
382
+ sceneValue?: SceneValue;
383
+ /** 禁用 flat 模式 */
384
+ disableFlatMode?: boolean;
385
+ /** 单列模式:移动端抽屉或紧凑容器内展示,不包含外层固定定位 */
386
+ singleCol?: boolean;
387
+ /** 外部传入的一级频道列表(若不传则组件内部请求接口获取) */
388
+ channels?: HomeChannelStoreItem[];
389
+ /** 当前激活频道 object_id,支持 v-model 或 v-model:activeChannel */
390
+ modelValue?: string;
391
+ activeChannel?: string;
392
+ /** 用户信息 */
393
+ userInfo?: AccountInfo;
394
+ /** 是否登录 */
395
+ isLogin?: boolean;
396
+ /** 请求实例 */
397
+ request?: Function;
398
+ /** 全局 store,上报用 */
399
+ globalStore?: Record<string, unknown>;
400
+ /** 是否独立部署 */
401
+ independence?: boolean;
402
+ /** 是否显示主题设置 */
403
+ showThemeSetting?: boolean;
404
+ /** 是否显示语言设置 */
405
+ showLangSetting?: boolean;
406
+ /** 频道切换完成回调 */
407
+ onChannelChange?: (item: HomeChannelStoreItem) => void;
408
+ }
409
+
410
+ export declare const GitCodeHeader: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
577
411
 
578
412
  export declare const GitCodeLayoutEmitter: Emitter<EventBus>;
579
413
 
@@ -591,47 +425,78 @@ declare enum HeaderDisplayItem {
591
425
  OPERATION_ENTRY = "0111"
592
426
  }
593
427
 
594
- export declare const Login: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<{
595
- isLogin: boolean;
596
- request: Function;
597
- loginOutFinish?: Function | undefined;
598
- loginSuccess: Function;
599
- globalStore: Object;
600
- openHarmonyGuide: boolean;
601
- }>, {
602
- request: (params: any, customConfigs?: {
603
- customError?: boolean | undefined;
604
- customTimeout?: number | undefined;
605
- ignoreError?: boolean | undefined;
606
- customErrorCodes?: number[] | undefined;
607
- } | undefined) => Promise<AxiosResponse<any, any, {}>>;
608
- globalStore: () => {
609
- httpStatus: number;
610
- };
611
- openHarmonyGuide: boolean;
612
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<{
613
- isLogin: boolean;
614
- request: Function;
615
- loginOutFinish?: Function | undefined;
616
- loginSuccess: Function;
617
- globalStore: Object;
618
- openHarmonyGuide: boolean;
619
- }>, {
620
- request: (params: any, customConfigs?: {
621
- customError?: boolean | undefined;
622
- customTimeout?: number | undefined;
623
- ignoreError?: boolean | undefined;
624
- customErrorCodes?: number[] | undefined;
625
- } | undefined) => Promise<AxiosResponse<any, any, {}>>;
626
- globalStore: () => {
627
- 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[];
628
473
  };
629
- openHarmonyGuide: boolean;
630
- }>>> & 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<{}>, {
631
496
  globalStore: Object;
632
497
  request: Function;
633
498
  openHarmonyGuide: boolean;
634
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
499
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
635
500
 
636
501
  declare interface LoginOptions {
637
502
  Authorization?: boolean;
@@ -687,6 +552,42 @@ declare interface Props_2 {
687
552
  slotKeys?: Array<string>;
688
553
  }
689
554
 
555
+ declare interface Props_3 extends GitCodeAsideV2Props {
556
+ /** 是否显示主题设置 */
557
+ showThemeSetting?: boolean | undefined;
558
+ /** 是否显示语言设置 */
559
+ showLangSetting?: boolean | undefined;
560
+ collapseMode?: boolean;
561
+ }
562
+
563
+ declare interface Props_4 {
564
+ /** 容器使用的 DOM 元素标签,默认为 'div' */
565
+ tag?: string;
566
+ /** 滚动停止后取消 isScrolling 状态的延迟时间 (毫秒),默认 300 */
567
+ timeout?: number;
568
+ /** 滚动方向 'vertical' | 'horizontal',默认 'vertical' */
569
+ direction?: 'vertical' | 'horizontal';
570
+ /** 鼠标悬浮时是否展示滚动条,默认为 true */
571
+ visibleOnHover?: boolean;
572
+ /** 外层包裹容器的附加 class */
573
+ wrapperClass?: string;
574
+ /** 内容包裹层的附加 class */
575
+ contentClass?: string;
576
+ }
577
+
578
+ /**
579
+ * 频道推荐外链项
580
+ */
581
+ declare interface RecommendLinkItem {
582
+ name: string;
583
+ name_en?: string;
584
+ url: string;
585
+ icon?: string;
586
+ dark_icon?: string;
587
+ icon_dark?: string;
588
+ [key: string]: unknown;
589
+ }
590
+
690
591
  export declare enum SceneValue {
691
592
  home = "home",
692
593
  repo = "repo",
@@ -701,48 +602,29 @@ export declare enum SceneValue {
701
602
  enterprise = "enterprise"
702
603
  }
703
604
 
605
+ export declare const ScrollActiveContainer: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
606
+
704
607
  export declare function setLayoutConfig(customConfig: BaseLayoutConfig): void;
705
608
 
706
609
  export { setTheme }
707
610
 
708
611
  export declare const SiteAnnouncement: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
709
612
 
710
- export declare const ToolsFloat: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
711
- sceneValue: SceneValue;
712
- isLogin: boolean;
713
- request: (params: any, customConfigs?: {
714
- customError?: boolean | undefined;
715
- customTimeout?: number | undefined;
716
- ignoreError?: boolean | undefined;
717
- customErrorCodes?: number[] | undefined;
718
- } | undefined) => Promise<AxiosResponse<any, any, {}>>;
719
- globalStore: () => {};
720
- isRepoPage: boolean;
721
- isWhiteListRepo: boolean;
722
- isCannWhiteList: boolean;
723
- }>>, {
724
- handleCollapseTool: (status: string) => void;
613
+ declare const TOOLS_FLOAT_COLLAPSE_STATUS: {
614
+ COLLAPSE: string;
615
+ EXPAND: string;
616
+ };
617
+
618
+ export declare const ToolsFloat: DefineComponent<Props, {
619
+ handleCollapseTool: (status: ToolsFloatCollapseStatusType) => void;
725
620
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
726
- "toggle-growth-center": () => void;
727
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
728
- sceneValue: SceneValue;
729
- isLogin: boolean;
730
- request: (params: any, customConfigs?: {
731
- customError?: boolean | undefined;
732
- customTimeout?: number | undefined;
733
- ignoreError?: boolean | undefined;
734
- customErrorCodes?: number[] | undefined;
735
- } | undefined) => Promise<AxiosResponse<any, any, {}>>;
736
- globalStore: () => {};
737
- isRepoPage: boolean;
738
- isWhiteListRepo: boolean;
739
- isCannWhiteList: boolean;
740
- }>>> & Readonly<{
621
+ "toggle-growth-center": () => any;
622
+ }, string, PublicProps, Readonly<Props> & Readonly<{
741
623
  "onToggle-growth-center"?: (() => any) | undefined;
742
624
  }>, {
743
625
  globalStore: {
626
+ isSignIn?: boolean;
744
627
  [key: string]: any;
745
- isSignIn?: boolean | undefined;
746
628
  };
747
629
  isLogin: boolean;
748
630
  sceneValue: SceneValue;
@@ -750,7 +632,9 @@ request: Function;
750
632
  isRepoPage: boolean;
751
633
  isWhiteListRepo: boolean;
752
634
  isCannWhiteList: boolean;
753
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
635
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
636
+
637
+ declare type ToolsFloatCollapseStatusType = typeof TOOLS_FLOAT_COLLAPSE_STATUS[keyof typeof TOOLS_FLOAT_COLLAPSE_STATUS];
754
638
 
755
639
  export declare function useLogin(request: any, globalStore?: any): {
756
640
  login: (options?: LoginOptions, loginSuccess?: Function, openHarmonyGuide?: boolean) => void;