vue-layout-gitcode 1.11.5 → 1.11.6

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,100 +8,194 @@ 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
- import { hn } from 'vue-router/dist/router-CWoNjPRp.mjs';
12
+ import { LocationQueryValue } from 'vue-router';
15
13
  import { OrgInfo } from '../../types/types';
16
- import { PropType } from '../../../vue/dist/vue.esm-bundler.js';
17
14
  import { PublicProps } from '../../../vue/dist/vue.esm-bundler.js';
18
15
  import { PublicProps as PublicProps_2 } from '../../../../vue/dist/vue.esm-bundler.js';
19
16
  import { repoInfoType } from '../../types/types';
20
17
  import { setTheme } from './themes/index';
21
18
  import { UserInfo } from '../../types/types';
22
19
 
23
- declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
24
-
25
- declare type __VLS_NonUndefinedable_2<T> = T extends undefined ? never : T;
26
-
27
- declare type __VLS_NonUndefinedable_3<T> = T extends undefined ? never : T;
28
-
29
- declare type __VLS_NonUndefinedable_4<T> = T extends undefined ? never : T;
30
-
31
- declare type __VLS_Prettify<T> = {
32
- [K in keyof T]: T[K];
33
- } & {};
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>;
34
33
 
35
- declare type __VLS_Prettify_2<T> = {
36
- [K in keyof T]: T[K];
37
- } & {};
34
+ declare const __VLS_component_2: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
35
+ resetPwdDirectlySuccess: (...args: any[]) => void;
36
+ followDevCommunity: (...args: any[]) => void;
37
+ followUser: (...args: any[]) => void;
38
+ }, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{
39
+ onResetPwdDirectlySuccess?: ((...args: any[]) => any) | undefined;
40
+ onFollowDevCommunity?: ((...args: any[]) => any) | undefined;
41
+ onFollowUser?: ((...args: any[]) => any) | undefined;
42
+ }>, {
43
+ globalStore: Object;
44
+ isLogin: boolean;
45
+ sceneValue: SceneValue;
46
+ request: Function;
47
+ repoInfo: repoInfoType;
48
+ orgInfo: OrgInfo;
49
+ otherUserInfo: UserInfo;
50
+ userInfo: UserInfo;
51
+ independence: boolean;
52
+ headerBorder: boolean;
53
+ bgConfig: {
54
+ index_head: string;
55
+ detail_top: string;
56
+ detail_top_black: string;
57
+ detail_toolbar: string;
58
+ detail_toolbar_black: string;
59
+ detail_top_url: string;
60
+ index_head_url: string;
61
+ detail_toolbar_url: string;
62
+ };
63
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
64
+ headerRef: HTMLDivElement;
65
+ }, HTMLDivElement>;
38
66
 
39
- declare type __VLS_Prettify_3<T> = {
40
- [K in keyof T]: T[K];
41
- } & {};
67
+ declare const __VLS_component_3: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
68
+ resetPwdDirectlySuccess: (...args: any[]) => void;
69
+ followDevCommunity: (...args: any[]) => void;
70
+ followUser: (...args: any[]) => void;
71
+ }, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{
72
+ onResetPwdDirectlySuccess?: ((...args: any[]) => any) | undefined;
73
+ onFollowDevCommunity?: ((...args: any[]) => any) | undefined;
74
+ onFollowUser?: ((...args: any[]) => any) | undefined;
75
+ }>, {
76
+ globalStore: Object;
77
+ isLogin: boolean;
78
+ request: Function;
79
+ orgInfo: OrgInfo;
80
+ userInfo: UserInfo;
81
+ independence: boolean;
82
+ headerBorder: boolean;
83
+ enterpriseInfo: OrgInfo;
84
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
85
+ headerRef: HTMLDivElement;
86
+ }, HTMLDivElement>;
42
87
 
43
- declare type __VLS_Prettify_4<T> = {
44
- [K in keyof T]: T[K];
45
- } & {};
88
+ declare type __VLS_Props = {
89
+ isLogin: boolean;
90
+ request: Function;
91
+ loginOutFinish?: Function;
92
+ loginSuccess: Function;
93
+ globalStore: Object;
94
+ openHarmonyGuide: boolean;
95
+ };
46
96
 
47
- declare type __VLS_TypePropsToRuntimeProps<T> = {
48
- [K in keyof T]-?: {} extends Pick<T, K> ? {
49
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
50
- } : {
51
- type: PropType<T[K]>;
52
- required: true;
97
+ declare type __VLS_Props_2 = {
98
+ sceneValue: SceneValue;
99
+ isLogin: boolean;
100
+ request: Function;
101
+ loginOutFinish?: Function;
102
+ loginSuccess: Function;
103
+ globalStore: Object;
104
+ repoInfo?: repoInfoType;
105
+ orgInfo?: OrgInfo;
106
+ otherUserInfo?: UserInfo;
107
+ userInfo?: UserInfo;
108
+ headerFunctions?: HeaderDisplayItem[];
109
+ headerCustomProps?: HeaderPropsForCustom;
110
+ openHarmonyGuide: boolean;
111
+ headerBorder?: boolean;
112
+ independence?: boolean;
113
+ userMenus?: any[];
114
+ loginChildComponents: any;
115
+ bgConfig?: {
116
+ index_head: string;
117
+ detail_top: string;
118
+ detail_top_black: string;
119
+ detail_toolbar: string;
120
+ detail_toolbar_black: string;
121
+ detail_top_url: string;
122
+ index_head_url: string;
123
+ detail_toolbar_url: string;
53
124
  };
54
125
  };
55
126
 
56
- declare type __VLS_TypePropsToRuntimeProps_2<T> = {
57
- [K in keyof T]-?: {} extends Pick<T, K> ? {
58
- type: PropType<__VLS_NonUndefinedable_2<T[K]>>;
59
- } : {
60
- type: PropType<T[K]>;
61
- required: true;
62
- };
127
+ declare type __VLS_Props_3 = {
128
+ isLogin: boolean;
129
+ request: Function;
130
+ globalStore: Object;
131
+ loginSuccess: Function;
132
+ enterpriseInfo: OrgInfo;
133
+ loginOutFinish?: Function;
134
+ orgInfo?: OrgInfo;
135
+ userInfo?: UserInfo;
136
+ headerFunctions?: HeaderDisplayItem[];
137
+ openHarmonyGuide: boolean;
138
+ headerBorder?: boolean;
139
+ independence?: boolean;
140
+ userMenus?: any[];
141
+ loginChildComponents: any;
63
142
  };
64
143
 
65
- declare type __VLS_TypePropsToRuntimeProps_3<T> = {
66
- [K in keyof T]-?: {} extends Pick<T, K> ? {
67
- type: PropType<__VLS_NonUndefinedable_3<T[K]>>;
68
- } : {
69
- type: PropType<T[K]>;
70
- required: true;
71
- };
144
+ declare function __VLS_template(): {
145
+ attrs: Partial<{}>;
146
+ slots: Partial<Record<string, (_: {}) => any>>;
147
+ refs: {};
148
+ rootEl: any;
72
149
  };
73
150
 
74
- declare type __VLS_TypePropsToRuntimeProps_4<T> = {
75
- [K in keyof T]-?: {} extends Pick<T, K> ? {
76
- type: PropType<__VLS_NonUndefinedable_4<T[K]>>;
77
- } : {
78
- type: PropType<T[K]>;
79
- required: true;
151
+ declare function __VLS_template_2(): {
152
+ attrs: Partial<{}>;
153
+ slots: {
154
+ headerCustom?(_: {}): any;
155
+ aiSearch?(_: {}): any;
156
+ headerMiddleRight?(_: {}): any;
157
+ search?(_: {}): any;
158
+ searchRecommend?(_: {}): any;
159
+ globalSearch?(_: {
160
+ searchStr: string | LocationQueryValue[];
161
+ searchMore: (type: any) => void;
162
+ }): any;
163
+ bodyHeader?(_: {}): any;
164
+ info?(_: {}): any;
165
+ menu?(_: {}): any;
166
+ headerBottom?(_: {}): any;
167
+ };
168
+ refs: {
169
+ headerRef: HTMLDivElement;
80
170
  };
171
+ rootEl: HTMLDivElement;
81
172
  };
82
173
 
83
- declare type __VLS_WithDefaults<P, D> = {
84
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
85
- default: D[K];
86
- }> : P[K];
174
+ declare function __VLS_template_3(): {
175
+ attrs: Partial<{}>;
176
+ slots: {
177
+ search?(_: {}): any;
178
+ searchRecommend?(_: {}): any;
179
+ globalSearch?(_: {
180
+ searchStr: string | LocationQueryValue[];
181
+ searchMore: (type: any) => void;
182
+ }): any;
183
+ bodyHeader?(_: {}): any;
184
+ info?(_: {}): any;
185
+ menu?(_: {}): any;
186
+ headerBottom?(_: {}): any;
187
+ };
188
+ refs: {
189
+ headerRef: HTMLDivElement;
190
+ };
191
+ rootEl: HTMLDivElement;
87
192
  };
88
193
 
89
- declare type __VLS_WithDefaults_2<P, D> = {
90
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_2<P[K] & {
91
- default: D[K];
92
- }> : P[K];
93
- };
194
+ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
94
195
 
95
- declare type __VLS_WithDefaults_3<P, D> = {
96
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_3<P[K] & {
97
- default: D[K];
98
- }> : P[K];
99
- };
196
+ declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
100
197
 
101
- declare type __VLS_WithDefaults_4<P, D> = {
102
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_4<P[K] & {
103
- default: D[K];
104
- }> : P[K];
105
- };
198
+ declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
106
199
 
107
200
  declare type __VLS_WithTemplateSlots<T, S> = T & {
108
201
  new (): {
@@ -116,6 +209,12 @@ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
116
209
  };
117
210
  };
118
211
 
212
+ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
213
+ new (): {
214
+ $slots: S;
215
+ };
216
+ };
217
+
119
218
  declare interface BaseLayoutConfig {
120
219
  VITE_HOST: string;
121
220
  VITE_HOST_TIANQI: string;
@@ -140,6 +239,8 @@ declare const _default: {
140
239
  };
141
240
  export default _default;
142
241
 
242
+ export declare const EnterpriseHeader: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
243
+
143
244
  declare type EventBus = {
144
245
  logout?: boolean;
145
246
  login?: any;
@@ -170,218 +271,9 @@ declare type EventBus = {
170
271
  resetPwdDirectlySuccess: void;
171
272
  };
172
273
 
173
- export declare const GitCodeAside: __VLS_WithTemplateSlots<DefineComponent<ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_3<Props_2>, {
174
- sceneValue: SceneValue;
175
- disableFlatMode: boolean;
176
- request: (params: any, customConfigs?: {
177
- customError?: boolean | undefined;
178
- customTimeout?: number | undefined;
179
- ignoreError?: boolean | undefined;
180
- customErrorCodes?: number[] | undefined;
181
- } | undefined) => Promise<AxiosResponse<any, any, {}>>;
182
- globalStore: () => {
183
- httpStatus: number;
184
- };
185
- userInfo: () => {};
186
- independence: boolean;
187
- showPreferencesSetting: undefined;
188
- showThemeSetting: undefined;
189
- showLangSetting: undefined;
190
- /** 默认展示小侧边栏,收起隐藏 */
191
- collapseMode: boolean;
192
- /** 需要显示hover的slotKeys */
193
- slotKeys: () => never[];
194
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_3<Props_2>, {
195
- sceneValue: SceneValue;
196
- disableFlatMode: boolean;
197
- request: (params: any, customConfigs?: {
198
- customError?: boolean | undefined;
199
- customTimeout?: number | undefined;
200
- ignoreError?: boolean | undefined;
201
- customErrorCodes?: number[] | undefined;
202
- } | undefined) => Promise<AxiosResponse<any, any, {}>>;
203
- globalStore: () => {
204
- httpStatus: number;
205
- };
206
- userInfo: () => {};
207
- independence: boolean;
208
- showPreferencesSetting: undefined;
209
- showThemeSetting: undefined;
210
- showLangSetting: undefined;
211
- /** 默认展示小侧边栏,收起隐藏 */
212
- collapseMode: boolean;
213
- /** 需要显示hover的slotKeys */
214
- slotKeys: () => never[];
215
- }>>> & Readonly<{}>, {
216
- globalStore: Object;
217
- sceneValue: SceneValue;
218
- request: Function;
219
- userInfo: AccountInfo;
220
- independence: boolean;
221
- slotKeys: string[];
222
- showThemeSetting: boolean;
223
- showLangSetting: boolean;
224
- showPreferencesSetting: boolean;
225
- collapseMode: boolean;
226
- disableFlatMode: boolean;
227
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, Partial<Record<string, (_: {}) => any>>>;
274
+ export declare const GitCodeAside: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
228
275
 
229
- export declare const GitCodeHeader: __VLS_WithTemplateSlots_2<DefineComponent<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<{
230
- sceneValue: SceneValue;
231
- isLogin: boolean;
232
- request: Function;
233
- loginOutFinish?: Function | undefined;
234
- loginSuccess: Function;
235
- globalStore: Object;
236
- repoInfo?: repoInfoType | undefined;
237
- orgInfo?: OrgInfo | undefined;
238
- otherUserInfo?: UserInfo | undefined;
239
- userInfo?: UserInfo | undefined;
240
- headerFunctions?: HeaderDisplayItem[] | undefined;
241
- headerCustomProps?: HeaderPropsForCustom | undefined;
242
- openHarmonyGuide: boolean;
243
- headerBorder?: boolean | undefined;
244
- independence?: boolean | undefined;
245
- userMenus?: any[] | undefined;
246
- loginChildComponents: any;
247
- bgConfig?: {
248
- index_head: string;
249
- detail_top: string;
250
- detail_top_black: string;
251
- detail_toolbar: string;
252
- detail_toolbar_black: string;
253
- detail_top_url: string;
254
- index_head_url: string;
255
- detail_toolbar_url: string;
256
- } | undefined;
257
- }>, {
258
- sceneValue: any;
259
- headerBorder: boolean;
260
- isLogin: boolean;
261
- independence: boolean;
262
- request: (params: any, customConfigs?: {
263
- customError?: boolean | undefined;
264
- customTimeout?: number | undefined;
265
- ignoreError?: boolean | undefined;
266
- customErrorCodes?: number[] | undefined;
267
- } | undefined) => Promise<AxiosResponse<any, any, {}>>;
268
- globalStore: () => {
269
- httpStatus: number;
270
- };
271
- repoInfo: () => {};
272
- orgInfo: () => {};
273
- otherUserInfo: () => {};
274
- userInfo: () => {};
275
- bgConfig: () => {
276
- index_head: string;
277
- detail_top: string;
278
- detail_top_black: string;
279
- detail_toolbar: string;
280
- detail_toolbar_black: string;
281
- detail_top_url: string;
282
- index_head_url: string;
283
- detail_toolbar_url: string;
284
- };
285
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
286
- resetPwdDirectlySuccess: (...args: any[]) => void;
287
- followDevCommunity: (...args: any[]) => void;
288
- followUser: (...args: any[]) => void;
289
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<{
290
- sceneValue: SceneValue;
291
- isLogin: boolean;
292
- request: Function;
293
- loginOutFinish?: Function | undefined;
294
- loginSuccess: Function;
295
- globalStore: Object;
296
- repoInfo?: repoInfoType | undefined;
297
- orgInfo?: OrgInfo | undefined;
298
- otherUserInfo?: UserInfo | undefined;
299
- userInfo?: UserInfo | undefined;
300
- headerFunctions?: HeaderDisplayItem[] | undefined;
301
- headerCustomProps?: HeaderPropsForCustom | undefined;
302
- openHarmonyGuide: boolean;
303
- headerBorder?: boolean | undefined;
304
- independence?: boolean | undefined;
305
- userMenus?: any[] | undefined;
306
- loginChildComponents: any;
307
- bgConfig?: {
308
- index_head: string;
309
- detail_top: string;
310
- detail_top_black: string;
311
- detail_toolbar: string;
312
- detail_toolbar_black: string;
313
- detail_top_url: string;
314
- index_head_url: string;
315
- detail_toolbar_url: string;
316
- } | undefined;
317
- }>, {
318
- sceneValue: any;
319
- headerBorder: boolean;
320
- isLogin: boolean;
321
- independence: boolean;
322
- request: (params: any, customConfigs?: {
323
- customError?: boolean | undefined;
324
- customTimeout?: number | undefined;
325
- ignoreError?: boolean | undefined;
326
- customErrorCodes?: number[] | undefined;
327
- } | undefined) => Promise<AxiosResponse<any, any, {}>>;
328
- globalStore: () => {
329
- httpStatus: number;
330
- };
331
- repoInfo: () => {};
332
- orgInfo: () => {};
333
- otherUserInfo: () => {};
334
- userInfo: () => {};
335
- bgConfig: () => {
336
- index_head: string;
337
- detail_top: string;
338
- detail_top_black: string;
339
- detail_toolbar: string;
340
- detail_toolbar_black: string;
341
- detail_top_url: string;
342
- index_head_url: string;
343
- detail_toolbar_url: string;
344
- };
345
- }>>> & Readonly<{
346
- onResetPwdDirectlySuccess?: ((...args: any[]) => any) | undefined;
347
- onFollowDevCommunity?: ((...args: any[]) => any) | undefined;
348
- onFollowUser?: ((...args: any[]) => any) | undefined;
349
- }>, {
350
- globalStore: Object;
351
- isLogin: boolean;
352
- sceneValue: SceneValue;
353
- request: Function;
354
- repoInfo: repoInfoType;
355
- orgInfo: OrgInfo;
356
- otherUserInfo: UserInfo;
357
- userInfo: UserInfo;
358
- independence: boolean;
359
- headerBorder: boolean;
360
- bgConfig: {
361
- index_head: string;
362
- detail_top: string;
363
- detail_top_black: string;
364
- detail_toolbar: string;
365
- detail_toolbar_black: string;
366
- detail_top_url: string;
367
- index_head_url: string;
368
- detail_toolbar_url: string;
369
- };
370
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
371
- headerCustom?(_: {}): any;
372
- aiSearch?(_: {}): any;
373
- headerMiddleRight?(_: {}): any;
374
- search?(_: {}): any;
375
- searchRecommend?(_: {}): any;
376
- globalSearch?(_: {
377
- searchStr: string | hn[];
378
- searchMore: (type: any) => void;
379
- }): any;
380
- bodyHeader?(_: {}): any;
381
- info?(_: {}): any;
382
- menu?(_: {}): any;
383
- headerBottom?(_: {}): any;
384
- }>;
276
+ export declare const GitCodeHeader: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
385
277
 
386
278
  export declare const GitCodeLayoutEmitter: Emitter<EventBus>;
387
279
 
@@ -399,47 +291,11 @@ declare enum HeaderDisplayItem {
399
291
  OPERATION_ENTRY = "0111"
400
292
  }
401
293
 
402
- export declare const Login: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<{
403
- isLogin: boolean;
404
- request: Function;
405
- loginOutFinish?: Function | undefined;
406
- loginSuccess: Function;
407
- globalStore: Object;
408
- openHarmonyGuide: boolean;
409
- }>, {
410
- request: (params: any, customConfigs?: {
411
- customError?: boolean | undefined;
412
- customTimeout?: number | undefined;
413
- ignoreError?: boolean | undefined;
414
- customErrorCodes?: number[] | undefined;
415
- } | undefined) => Promise<AxiosResponse<any, any, {}>>;
416
- globalStore: () => {
417
- httpStatus: number;
418
- };
419
- openHarmonyGuide: boolean;
420
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<{
421
- isLogin: boolean;
422
- request: Function;
423
- loginOutFinish?: Function | undefined;
424
- loginSuccess: Function;
425
- globalStore: Object;
426
- openHarmonyGuide: boolean;
427
- }>, {
428
- request: (params: any, customConfigs?: {
429
- customError?: boolean | undefined;
430
- customTimeout?: number | undefined;
431
- ignoreError?: boolean | undefined;
432
- customErrorCodes?: number[] | undefined;
433
- } | undefined) => Promise<AxiosResponse<any, any, {}>>;
434
- globalStore: () => {
435
- httpStatus: number;
436
- };
437
- openHarmonyGuide: boolean;
438
- }>>> & Readonly<{}>, {
294
+ export declare const Login: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
439
295
  globalStore: Object;
440
296
  request: Function;
441
297
  openHarmonyGuide: boolean;
442
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
298
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
443
299
 
444
300
  declare interface LoginOptions {
445
301
  Authorization?: boolean;
@@ -513,47 +369,30 @@ export { setTheme }
513
369
 
514
370
  export declare const SiteAnnouncement: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
515
371
 
516
- export declare const ToolsFloat: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
517
- sceneValue: SceneValue;
518
- isLogin: boolean;
519
- request: (params: any, customConfigs?: {
520
- customError?: boolean | undefined;
521
- customTimeout?: number | undefined;
522
- ignoreError?: boolean | undefined;
523
- customErrorCodes?: number[] | undefined;
524
- } | undefined) => Promise<AxiosResponse<any, any, {}>>;
525
- globalStore: () => {};
526
- isRepoPage: boolean;
527
- isWhiteListRepo: boolean;
528
- }>>, {
529
- handleCollapseTool: (status: string) => void;
372
+ declare const TOOLS_FLOAT_COLLAPSE_STATUS: {
373
+ COLLAPSE: string;
374
+ EXPAND: string;
375
+ };
376
+
377
+ export declare const ToolsFloat: DefineComponent<Props, {
378
+ handleCollapseTool: (status: ToolsFloatCollapseStatusType) => void;
530
379
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
531
- "toggle-growth-center": () => void;
532
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
533
- sceneValue: SceneValue;
534
- isLogin: boolean;
535
- request: (params: any, customConfigs?: {
536
- customError?: boolean | undefined;
537
- customTimeout?: number | undefined;
538
- ignoreError?: boolean | undefined;
539
- customErrorCodes?: number[] | undefined;
540
- } | undefined) => Promise<AxiosResponse<any, any, {}>>;
541
- globalStore: () => {};
542
- isRepoPage: boolean;
543
- isWhiteListRepo: boolean;
544
- }>>> & Readonly<{
380
+ "toggle-growth-center": () => any;
381
+ }, string, PublicProps, Readonly<Props> & Readonly<{
545
382
  "onToggle-growth-center"?: (() => any) | undefined;
546
383
  }>, {
547
384
  globalStore: {
385
+ isSignIn?: boolean;
548
386
  [key: string]: any;
549
- isSignIn?: boolean | undefined;
550
387
  };
551
388
  isLogin: boolean;
552
389
  sceneValue: SceneValue;
553
390
  request: Function;
554
391
  isRepoPage: boolean;
555
392
  isWhiteListRepo: boolean;
556
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
393
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
394
+
395
+ declare type ToolsFloatCollapseStatusType = typeof TOOLS_FLOAT_COLLAPSE_STATUS[keyof typeof TOOLS_FLOAT_COLLAPSE_STATUS];
557
396
 
558
397
  export declare function useLogin(request: any, globalStore?: any): {
559
398
  login: (options?: LoginOptions, loginSuccess?: Function, openHarmonyGuide?: boolean) => void;
package/index.js CHANGED
@@ -1,15 +1,16 @@
1
- import { M, N, O, P, S, Q, U, B, V, W, X, Y } from "./index-fGEnM3kB.js";
1
+ import { Q, O, P, X, N, S, U, M, B, Z, W, Y, V } from "./index-DCs_1jwN.js";
2
2
  export {
3
- M as GitCodeAside,
4
- N as GitCodeHeader,
5
- O as GitCodeLayoutEmitter,
6
- P as Login,
3
+ Q as EnterpriseHeader,
4
+ O as GitCodeAside,
5
+ P as GitCodeHeader,
6
+ X as GitCodeLayoutEmitter,
7
+ N as Login,
7
8
  S as SceneValue,
8
- Q as SiteAnnouncement,
9
- U as ToolsFloat,
9
+ U as SiteAnnouncement,
10
+ M as ToolsFloat,
10
11
  B as currentTheme,
11
- V as default,
12
+ Z as default,
12
13
  W as setLayoutConfig,
13
- X as setTheme,
14
- Y as useLogin
14
+ Y as setTheme,
15
+ V as useLogin
15
16
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent, computed, openBlock, createBlock, unref, isRef, withCtx, createElementVNode, normalizeClass, createVNode, createTextVNode } from "vue";
2
- import { i as isPhone, u as useModel } from "./index-fGEnM3kB.js";
1
+ import { defineComponent, computed, createBlock, openBlock, unref, isRef, withCtx, createElementVNode, normalizeClass, createVNode, createTextVNode } from "vue";
2
+ import { i as isPhone, u as useModel } from "./index-DCs_1jwN.js";
3
3
  import { Notification } from "vue-devui-lal/notification";
4
4
  import { Button } from "vue-devui-lal/button";
5
5
  import "vue-devui-lal/notification/style.css";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-layout-gitcode",
3
- "version": "1.11.5",
3
+ "version": "1.11.6",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",