vue-layout-gitcode 1.12.15-beta.3 → 1.12.15-beta.31

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,282 @@ 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
+ 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
+ atomcodeLaunchQs: string;
80
+ headerBorder: boolean;
81
+ bgConfig: {
82
+ index_head: string;
83
+ detail_top: string;
84
+ detail_top_black: string;
85
+ detail_toolbar: string;
86
+ detail_toolbar_black: string;
87
+ detail_top_url: string;
88
+ index_head_url: string;
89
+ detail_toolbar_url: string;
90
+ };
91
+ openCreateDropdown: boolean;
92
+ showAtomCodeLauncher: boolean;
93
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
94
+ headerRef: HTMLDivElement;
95
+ }, HTMLDivElement>;
47
96
 
48
- declare type __VLS_Prettify_5<T> = {
49
- [K in keyof T]: T[K];
50
- } & {};
97
+ declare const __VLS_component_4: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
98
+ resetPwdDirectlySuccess: (...args: any[]) => void;
99
+ followDevCommunity: (...args: any[]) => void;
100
+ followUser: (...args: any[]) => void;
101
+ }, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{
102
+ onResetPwdDirectlySuccess?: ((...args: any[]) => any) | undefined;
103
+ onFollowDevCommunity?: ((...args: any[]) => any) | undefined;
104
+ onFollowUser?: ((...args: any[]) => any) | undefined;
105
+ }>, {
106
+ globalStore: Record<string, unknown>;
107
+ isLogin: boolean;
108
+ request: Function;
109
+ orgInfo: OrgInfo;
110
+ userInfo: UserInfo;
111
+ independence: boolean;
112
+ headerBorder: boolean;
113
+ enterpriseInfo: OrgInfo;
114
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
115
+ headerRef: HTMLDivElement;
116
+ }, HTMLDivElement>;
51
117
 
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
- };
118
+ declare type __VLS_Props = {
119
+ isLogin: boolean;
120
+ request: Function;
121
+ loginOutFinish?: Function;
122
+ loginSuccess: Function;
123
+ globalStore: Object;
124
+ openHarmonyGuide: boolean;
59
125
  };
60
126
 
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;
127
+ declare type __VLS_Props_2 = {
128
+ sceneValue: SceneValue;
129
+ isLogin: boolean;
130
+ request: Function;
131
+ loginOutFinish?: Function;
132
+ loginSuccess: Function;
133
+ globalStore: Object;
134
+ repoInfo?: repoInfoType;
135
+ orgInfo?: OrgInfo;
136
+ otherUserInfo?: UserInfo;
137
+ userInfo?: UserInfo;
138
+ headerFunctions?: HeaderDisplayItem[];
139
+ headerCustomProps?: HeaderPropsForCustom;
140
+ openHarmonyGuide: boolean;
141
+ headerBorder?: boolean;
142
+ independence?: boolean;
143
+ userMenus?: any[];
144
+ loginChildComponents: any;
145
+ bgConfig?: {
146
+ index_head: string;
147
+ detail_top: string;
148
+ detail_top_black: string;
149
+ detail_toolbar: string;
150
+ detail_toolbar_black: string;
151
+ detail_top_url: string;
152
+ index_head_url: string;
153
+ detail_toolbar_url: string;
67
154
  };
155
+ openCreateDropdown?: boolean;
156
+ /** Header 新建菜单项,默认使用七项公共菜单 */
157
+ createMenuItems?: HeaderCreateMenuItem[];
158
+ /** Header 新建菜单跳转适配器 */
159
+ createMenuNavigate?: HeaderCreateMenuNavigate;
160
+ /** AtomCode 工作台 query string 参数 */
161
+ atomcodeLaunchQs?: string;
162
+ /** 是否展示 AtomCodeLauncher 引导入口 */
163
+ showAtomCodeLauncher?: boolean;
68
164
  };
69
165
 
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
- };
166
+ declare type __VLS_Props_3 = {
167
+ customItems?: HomePageSidebarItem[];
168
+ fallbacks?: Partial<HomeHeaderActionUrls>;
77
169
  };
78
170
 
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
- };
171
+ declare type __VLS_Props_4 = {
172
+ atomcodeLaunchQs?: string;
86
173
  };
87
174
 
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
- };
175
+ declare type __VLS_Props_5 = {
176
+ /** 是否由外部控制下拉展开状态。 */
177
+ dropdownVisible?: boolean;
178
+ /** 是否展示组织入口。 */
179
+ isCreateOrg?: boolean;
180
+ /** 覆写默认七项菜单,适用于工作区等宿主上下文。 */
181
+ items?: HeaderCreateMenuItem[];
182
+ /** 覆写默认跳转行为,宿主可在这里接入自己的 router 或权限校验。 */
183
+ onNavigate?: HeaderCreateMenuNavigate;
95
184
  };
96
185
 
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];
186
+ declare type __VLS_Props_6 = {
187
+ isLogin: boolean;
188
+ request: Function;
189
+ globalStore: Record<string, unknown>;
190
+ loginSuccess: Function;
191
+ enterpriseInfo: OrgInfo;
192
+ loginOutFinish?: Function;
193
+ orgInfo?: OrgInfo;
194
+ userInfo?: UserInfo;
195
+ headerFunctions?: HeaderDisplayItem[];
196
+ openHarmonyGuide: boolean;
197
+ headerBorder?: boolean;
198
+ independence?: boolean;
199
+ userMenus?: any[];
200
+ loginChildComponents: any;
101
201
  };
102
202
 
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];
203
+ declare type __VLS_Props_7 = {
204
+ /** 展示主题设置项,默认 true */
205
+ showThemeSetting?: boolean;
206
+ /** 展示语言设置项,默认 true */
207
+ showLangSetting?: boolean;
208
+ /**
209
+ * 下拉菜单弹出位置,默认 `['bottom-end']`。
210
+ * 宿主如果把本组件放在页面底部,可传 `['top-end']` 避免菜单被视口下沿裁掉。
211
+ */
212
+ position?: string[];
107
213
  };
108
214
 
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];
215
+ declare function __VLS_template(): {
216
+ attrs: Partial<{}>;
217
+ slots: Partial<Record<string, (_: {}) => any>>;
218
+ refs: {};
219
+ rootEl: any;
113
220
  };
114
221
 
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];
222
+ declare function __VLS_template_2(): {
223
+ attrs: Partial<{}>;
224
+ slots: {
225
+ default?(_: {}): any;
226
+ };
227
+ refs: {
228
+ containerRef: unknown;
229
+ contentRef: HTMLDivElement;
230
+ trackRef: HTMLDivElement;
231
+ };
232
+ rootEl: any;
233
+ };
234
+
235
+ declare function __VLS_template_3(): {
236
+ attrs: Partial<{}>;
237
+ slots: {
238
+ headerCustom?(_: {}): any;
239
+ aiSearch?(_: {}): any;
240
+ headerMiddleRight?(_: {}): any;
241
+ search?(_: {}): any;
242
+ searchRecommend?(_: {}): any;
243
+ globalSearch?(_: {
244
+ searchStr: string;
245
+ searchMore: (type: any) => void;
246
+ }): any;
247
+ atomCodeLauncher?(_: {}): any;
248
+ headerActions?(_: {}): any;
249
+ bodyHeader?(_: {}): any;
250
+ info?(_: {}): any;
251
+ menu?(_: {}): any;
252
+ headerBottom?(_: {}): any;
253
+ };
254
+ refs: {
255
+ headerRef: HTMLDivElement;
256
+ };
257
+ rootEl: HTMLDivElement;
258
+ };
259
+
260
+ declare function __VLS_template_4(): {
261
+ attrs: Partial<{}>;
262
+ slots: {
263
+ search?(_: {}): any;
264
+ searchRecommend?(_: {}): any;
265
+ globalSearch?(_: {
266
+ searchStr: string;
267
+ searchMore: (type: any) => void;
268
+ }): any;
269
+ bodyHeader?(_: {}): any;
270
+ info?(_: {}): any;
271
+ menu?(_: {}): any;
272
+ headerBottom?(_: {}): any;
273
+ };
274
+ refs: {
275
+ headerRef: HTMLDivElement;
276
+ };
277
+ rootEl: HTMLDivElement;
119
278
  };
120
279
 
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
- };
280
+ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
281
+
282
+ declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
283
+
284
+ declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
285
+
286
+ declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
126
287
 
127
288
  declare type __VLS_WithTemplateSlots<T, S> = T & {
128
289
  new (): {
@@ -142,6 +303,22 @@ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
142
303
  };
143
304
  };
144
305
 
306
+ declare type __VLS_WithTemplateSlots_4<T, S> = T & {
307
+ new (): {
308
+ $slots: S;
309
+ };
310
+ };
311
+
312
+ export declare const AsideFooterTools: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{}>, {
313
+ position: string[];
314
+ showThemeSetting: boolean;
315
+ showLangSetting: boolean;
316
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
317
+
318
+ export declare const AtomCodeLauncher: DefineComponent<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{}>, {
319
+ atomcodeLaunchQs: string;
320
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
321
+
145
322
  declare interface BaseLayoutConfig {
146
323
  VITE_HOST: string;
147
324
  VITE_HOST_TIANQI: string;
@@ -166,109 +343,7 @@ declare const _default: {
166
343
  };
167
344
  export default _default;
168
345
 
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
- }>;
346
+ export declare const EnterpriseHeader: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
272
347
 
273
348
  declare type EventBus = {
274
349
  logout?: boolean;
@@ -300,228 +375,103 @@ declare type EventBus = {
300
375
  resetPwdDirectlySuccess: void;
301
376
  };
302
377
 
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;
378
+ export declare const GitCodeAside: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
379
+
380
+ export declare const GitCodeAsideV2: DefineComponent<Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
381
+ select: (item: HomeChannelStoreItem) => any;
382
+ "update:modelValue": (val: string) => any;
383
+ "update:activeChannel": (val: string) => any;
384
+ channelChange: (item: HomeChannelStoreItem) => any;
385
+ }, string, PublicProps, Readonly<Props_3> & Readonly<{
386
+ onSelect?: ((item: HomeChannelStoreItem) => any) | undefined;
387
+ "onUpdate:modelValue"?: ((val: string) => any) | undefined;
388
+ "onUpdate:activeChannel"?: ((val: string) => any) | undefined;
389
+ onChannelChange?: ((item: HomeChannelStoreItem) => any) | undefined;
390
+ }>, {
391
+ globalStore: Record<string, unknown>;
347
392
  sceneValue: SceneValue;
348
393
  request: Function;
394
+ modelValue: string;
349
395
  userInfo: AccountInfo;
350
396
  independence: boolean;
351
- slotKeys: string[];
352
397
  showThemeSetting: boolean;
353
398
  showLangSetting: boolean;
354
- showPreferencesSetting: boolean;
355
- collapseMode: boolean;
356
399
  disableFlatMode: boolean;
357
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, Partial<Record<string, (_: {}) => any>>>;
400
+ singleCol: boolean;
401
+ channels: HomeChannelStoreItem[];
402
+ activeChannel: string;
403
+ onChannelChange: (item: HomeChannelStoreItem) => void;
404
+ collapseMode: boolean;
405
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
406
+
407
+ /**
408
+ * GitCodeAsideV2 组件 Props 定义
409
+ */
410
+ declare interface GitCodeAsideV2Props {
411
+ /** 场景值,默认为 home */
412
+ sceneValue?: SceneValue;
413
+ /** 禁用 flat 模式 */
414
+ disableFlatMode?: boolean;
415
+ /** 单列模式:移动端抽屉或紧凑容器内展示,不包含外层固定定位 */
416
+ singleCol?: boolean;
417
+ /** 外部传入的一级频道列表(若不传则组件内部请求接口获取) */
418
+ channels?: HomeChannelStoreItem[];
419
+ /** 当前激活频道 object_id,支持 v-model 或 v-model:activeChannel */
420
+ modelValue?: string;
421
+ activeChannel?: string;
422
+ /** 用户信息 */
423
+ userInfo?: AccountInfo;
424
+ /** 是否登录 */
425
+ isLogin?: boolean;
426
+ /** 请求实例 */
427
+ request?: Function;
428
+ /** 全局 store,上报用 */
429
+ globalStore?: Record<string, unknown>;
430
+ /** 是否独立部署 */
431
+ independence?: boolean;
432
+ /** 是否显示主题设置 */
433
+ showThemeSetting?: boolean;
434
+ /** 是否显示语言设置 */
435
+ showLangSetting?: boolean;
436
+ /** 频道切换完成回调 */
437
+ onChannelChange?: (item: HomeChannelStoreItem) => void;
438
+ }
358
439
 
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
- }>;
440
+ export declare const GitCodeHeader: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
522
441
 
523
442
  export declare const GitCodeLayoutEmitter: Emitter<EventBus>;
524
443
 
444
+ /** 默认 Header 新建菜单的路径顺序,与工作台 Header 保持一致。 */
445
+ 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"];
446
+
447
+ export declare const HeaderCreateMenu: DefineComponent_2<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {
448
+ "update:dropdownVisible": (visible: boolean) => any;
449
+ navigate: (item: HeaderCreateMenuItem) => any;
450
+ }, string, PublicProps_2, Readonly<__VLS_Props_5> & Readonly<{
451
+ "onUpdate:dropdownVisible"?: ((visible: boolean) => any) | undefined;
452
+ onNavigate?: ((item: HeaderCreateMenuItem) => any) | undefined;
453
+ }>, {
454
+ dropdownVisible: boolean;
455
+ isCreateOrg: boolean;
456
+ items: HeaderCreateMenuItem[];
457
+ onNavigate: HeaderCreateMenuNavigate;
458
+ }, {}, {}, {}, string, ComponentProvideOptions_2, false, {
459
+ triggerRef: HTMLButtonElement;
460
+ menuRef: HTMLDivElement;
461
+ }, HTMLDivElement>;
462
+
463
+ /** Header 新建菜单项。宿主项目可以用它覆写默认的七项菜单。 */
464
+ export declare interface HeaderCreateMenuItem {
465
+ key: string;
466
+ icon: string;
467
+ label: string;
468
+ href: string;
469
+ dividerBefore?: boolean;
470
+ }
471
+
472
+ /** 自定义新建菜单跳转适配器。 */
473
+ export declare type HeaderCreateMenuNavigate = (item: HeaderCreateMenuItem) => void | Promise<void>;
474
+
525
475
  declare enum HeaderDisplayItem {
526
476
  LOGIN_AND_AVATAR = "0101",
527
477
  MESSAGE_CENTER = "0102",
@@ -536,47 +486,78 @@ declare enum HeaderDisplayItem {
536
486
  OPERATION_ENTRY = "0111"
537
487
  }
538
488
 
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;
489
+ /**
490
+ * 首页一级频道项
491
+ */
492
+ declare interface HomeChannelItem {
493
+ /** 频道 id (后端 mongo object_id 字符串) */
494
+ object_id: string;
495
+ /** 频道展示名 */
496
+ name: string;
497
+ name_en?: string;
498
+ icon?: string;
499
+ dark_icon?: string;
500
+ icon_dark?: string;
501
+ level?: number;
502
+ parent_id?: string;
503
+ /** 标识当前栏目是自定义静态页 */
504
+ static?: boolean;
505
+ /** 直接跳外链 url */
506
+ url?: string;
507
+ description?: string;
508
+ desc?: string;
509
+ desc_en?: string;
510
+ /** 是否本月新增,true 时在侧边菜单展示 New 标签 */
511
+ is_new?: boolean;
512
+ children?: HomeChannelItem[];
513
+ channelPrefixLogo?: {
514
+ logoUrl?: string;
515
+ logoLink?: string;
516
+ };
517
+ pre_logo?: string;
518
+ pre_logo_jump_url?: string;
519
+ [key: string]: unknown;
520
+ }
521
+
522
+ /**
523
+ * 首页频道 Store / 组件中使用的频道项类型
524
+ */
525
+ declare type HomeChannelStoreItem = HomeChannelItem & {
526
+ links?: RecommendLinkItem[];
527
+ group?: {
528
+ name: string;
529
+ name_en?: string;
530
+ len: number;
531
+ };
532
+ groupIndex?: number;
533
+ children?: HomeChannelStoreItem[];
573
534
  };
574
- openHarmonyGuide: boolean;
575
- }>>> & Readonly<{}>, {
535
+
536
+ export declare const HomeHeaderActions: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{}>, {
537
+ customItems: HomePageSidebarItem[];
538
+ fallbacks: Partial<HomeHeaderActionUrls>;
539
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
540
+
541
+ declare interface HomeHeaderActionUrls {
542
+ atomCode: string;
543
+ aiCommunity: string;
544
+ competition: string;
545
+ marketplace: string;
546
+ workspace: string;
547
+ }
548
+
549
+ declare interface HomePageSidebarItem {
550
+ left_menu_name_cn?: string;
551
+ left_menu_name_cn_shrink?: string;
552
+ left_menu_url?: string;
553
+ [key: string]: unknown;
554
+ }
555
+
556
+ export declare const Login: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
576
557
  globalStore: Object;
577
558
  request: Function;
578
559
  openHarmonyGuide: boolean;
579
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
560
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
580
561
 
581
562
  declare interface LoginOptions {
582
563
  Authorization?: boolean;
@@ -632,6 +613,42 @@ declare interface Props_2 {
632
613
  slotKeys?: Array<string>;
633
614
  }
634
615
 
616
+ declare interface Props_3 extends GitCodeAsideV2Props {
617
+ /** 是否显示主题设置 */
618
+ showThemeSetting?: boolean | undefined;
619
+ /** 是否显示语言设置 */
620
+ showLangSetting?: boolean | undefined;
621
+ collapseMode?: boolean;
622
+ }
623
+
624
+ declare interface Props_4 {
625
+ /** 容器使用的 DOM 元素标签,默认为 'div' */
626
+ tag?: string;
627
+ /** 滚动停止后取消 isScrolling 状态的延迟时间 (毫秒),默认 300 */
628
+ timeout?: number;
629
+ /** 滚动方向 'vertical' | 'horizontal',默认 'vertical' */
630
+ direction?: 'vertical' | 'horizontal';
631
+ /** 鼠标悬浮时是否展示滚动条,默认为 true */
632
+ visibleOnHover?: boolean;
633
+ /** 外层包裹容器的附加 class */
634
+ wrapperClass?: string;
635
+ /** 内容包裹层的附加 class */
636
+ contentClass?: string;
637
+ }
638
+
639
+ /**
640
+ * 频道推荐外链项
641
+ */
642
+ declare interface RecommendLinkItem {
643
+ name: string;
644
+ name_en?: string;
645
+ url: string;
646
+ icon?: string;
647
+ dark_icon?: string;
648
+ icon_dark?: string;
649
+ [key: string]: unknown;
650
+ }
651
+
635
652
  export declare enum SceneValue {
636
653
  home = "home",
637
654
  repo = "repo",
@@ -646,48 +663,29 @@ export declare enum SceneValue {
646
663
  enterprise = "enterprise"
647
664
  }
648
665
 
666
+ export declare const ScrollActiveContainer: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
667
+
649
668
  export declare function setLayoutConfig(customConfig: BaseLayoutConfig): void;
650
669
 
651
670
  export { setTheme }
652
671
 
653
672
  export declare const SiteAnnouncement: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
654
673
 
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;
674
+ declare const TOOLS_FLOAT_COLLAPSE_STATUS: {
675
+ COLLAPSE: string;
676
+ EXPAND: string;
677
+ };
678
+
679
+ export declare const ToolsFloat: DefineComponent<Props, {
680
+ handleCollapseTool: (status: ToolsFloatCollapseStatusType) => void;
670
681
  }, {}, {}, {}, 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<{
682
+ "toggle-growth-center": () => any;
683
+ }, string, PublicProps, Readonly<Props> & Readonly<{
686
684
  "onToggle-growth-center"?: (() => any) | undefined;
687
685
  }>, {
688
686
  globalStore: {
687
+ isSignIn?: boolean;
689
688
  [key: string]: any;
690
- isSignIn?: boolean | undefined;
691
689
  };
692
690
  isLogin: boolean;
693
691
  sceneValue: SceneValue;
@@ -695,7 +693,9 @@ request: Function;
695
693
  isRepoPage: boolean;
696
694
  isWhiteListRepo: boolean;
697
695
  isCannWhiteList: boolean;
698
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
696
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
697
+
698
+ declare type ToolsFloatCollapseStatusType = typeof TOOLS_FLOAT_COLLAPSE_STATUS[keyof typeof TOOLS_FLOAT_COLLAPSE_STATUS];
699
699
 
700
700
  export declare function useLogin(request: any, globalStore?: any): {
701
701
  login: (options?: LoginOptions, loginSuccess?: Function, openHarmonyGuide?: boolean) => void;