vue-layout-gitcode 1.11.7 → 1.11.8

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.
@@ -1,5 +1,5 @@
1
- import { defineComponent, onMounted, nextTick, onUnmounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
2
- import { x as slidCaptchaManager, y as useLayoutConfig, z as isZh, _ as _export_sfc } from "./index-Cm9jGd0G.js";
1
+ import { defineComponent, onMounted, nextTick, onUnmounted, openBlock, createBlock, unref, withCtx, createElementVNode } from "vue";
2
+ import { x as slidCaptchaManager, y as useLayoutConfig, z as isZh, _ as _export_sfc } from "./index-CxbzgDJ7.js";
3
3
  import { FixedOverlay } from "vue-devui-lal/overlay";
4
4
  import "vue-devui-lal/overlay/style.css";
5
5
  const TARGET_TEXT = "Click in order:";
package/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { AccountInfo } from '../../types/types';
2
2
  import { App } from '../vue/dist/vue.esm-bundler.js';
3
+ import { AxiosResponse } from 'axios';
3
4
  import { ComponentOptionsMixin } from '../../../vue/dist/vue.esm-bundler.js';
4
5
  import { ComponentOptionsMixin as ComponentOptionsMixin_2 } from '../../../../vue/dist/vue.esm-bundler.js';
5
6
  import { ComponentProvideOptions } from '../../../vue/dist/vue.esm-bundler.js';
@@ -8,194 +9,100 @@ import { currentTheme } from './themes/index';
8
9
  import { DefineComponent } from '../../../vue/dist/vue.esm-bundler.js';
9
10
  import { DefineComponent as DefineComponent_2 } from '../../../../vue/dist/vue.esm-bundler.js';
10
11
  import { Emitter } from 'mitt';
12
+ import { ExtractPropTypes } from '../../../vue/dist/vue.esm-bundler.js';
11
13
  import { HeaderPropsForCustom } from '../../types/types';
12
- import { LocationQueryValue } from 'vue-router';
14
+ import { hn } from 'vue-router/dist/router-CWoNjPRp.mjs';
13
15
  import { OrgInfo } from '../../types/types';
16
+ import { PropType } from '../../../vue/dist/vue.esm-bundler.js';
14
17
  import { PublicProps } from '../../../vue/dist/vue.esm-bundler.js';
15
18
  import { PublicProps as PublicProps_2 } from '../../../../vue/dist/vue.esm-bundler.js';
16
19
  import { repoInfoType } from '../../types/types';
17
20
  import { setTheme } from './themes/index';
18
21
  import { UserInfo } from '../../types/types';
19
22
 
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>;
23
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
33
24
 
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>;
25
+ declare type __VLS_NonUndefinedable_2<T> = T extends undefined ? never : T;
66
26
 
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>;
27
+ declare type __VLS_NonUndefinedable_3<T> = T extends undefined ? never : T;
87
28
 
88
- declare type __VLS_Props = {
89
- isLogin: boolean;
90
- request: Function;
91
- loginOutFinish?: Function;
92
- loginSuccess: Function;
93
- globalStore: Object;
94
- openHarmonyGuide: boolean;
95
- };
29
+ declare type __VLS_NonUndefinedable_4<T> = T extends undefined ? never : T;
96
30
 
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;
31
+ declare type __VLS_Prettify<T> = {
32
+ [K in keyof T]: T[K];
33
+ } & {};
34
+
35
+ declare type __VLS_Prettify_2<T> = {
36
+ [K in keyof T]: T[K];
37
+ } & {};
38
+
39
+ declare type __VLS_Prettify_3<T> = {
40
+ [K in keyof T]: T[K];
41
+ } & {};
42
+
43
+ declare type __VLS_Prettify_4<T> = {
44
+ [K in keyof T]: T[K];
45
+ } & {};
46
+
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;
124
53
  };
125
54
  };
126
55
 
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;
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
+ };
142
63
  };
143
64
 
144
- declare function __VLS_template(): {
145
- attrs: Partial<{}>;
146
- slots: Partial<Record<string, (_: {}) => any>>;
147
- refs: {};
148
- rootEl: any;
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
+ };
149
72
  };
150
73
 
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;
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;
170
80
  };
171
- rootEl: HTMLDivElement;
172
81
  };
173
82
 
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;
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];
192
87
  };
193
88
 
194
- declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
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
+ };
195
94
 
196
- declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
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
+ };
197
100
 
198
- declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
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
+ };
199
106
 
200
107
  declare type __VLS_WithTemplateSlots<T, S> = T & {
201
108
  new (): {
@@ -209,12 +116,6 @@ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
209
116
  };
210
117
  };
211
118
 
212
- declare type __VLS_WithTemplateSlots_3<T, S> = T & {
213
- new (): {
214
- $slots: S;
215
- };
216
- };
217
-
218
119
  declare interface BaseLayoutConfig {
219
120
  VITE_HOST: string;
220
121
  VITE_HOST_TIANQI: string;
@@ -239,8 +140,6 @@ declare const _default: {
239
140
  };
240
141
  export default _default;
241
142
 
242
- export declare const EnterpriseHeader: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
243
-
244
143
  declare type EventBus = {
245
144
  logout?: boolean;
246
145
  login?: any;
@@ -271,9 +170,225 @@ declare type EventBus = {
271
170
  resetPwdDirectlySuccess: void;
272
171
  };
273
172
 
274
- export declare const GitCodeAside: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
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>>>;
275
228
 
276
- export declare const GitCodeHeader: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
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
+ openCreateDropdown?: boolean | undefined;
258
+ }>, {
259
+ sceneValue: any;
260
+ headerBorder: boolean;
261
+ isLogin: boolean;
262
+ independence: boolean;
263
+ request: (params: any, customConfigs?: {
264
+ customError?: boolean | undefined;
265
+ customTimeout?: number | undefined;
266
+ ignoreError?: boolean | undefined;
267
+ customErrorCodes?: number[] | undefined;
268
+ } | undefined) => Promise<AxiosResponse<any, any, {}>>;
269
+ globalStore: () => {
270
+ httpStatus: number;
271
+ };
272
+ repoInfo: () => {};
273
+ orgInfo: () => {};
274
+ otherUserInfo: () => {};
275
+ userInfo: () => {};
276
+ bgConfig: () => {
277
+ index_head: string;
278
+ detail_top: string;
279
+ detail_top_black: string;
280
+ detail_toolbar: string;
281
+ detail_toolbar_black: string;
282
+ detail_top_url: string;
283
+ index_head_url: string;
284
+ detail_toolbar_url: string;
285
+ };
286
+ openCreateDropdown: boolean;
287
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
288
+ resetPwdDirectlySuccess: (...args: any[]) => void;
289
+ followDevCommunity: (...args: any[]) => void;
290
+ followUser: (...args: any[]) => void;
291
+ "update:openCreateDropdown": (...args: any[]) => void;
292
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<{
293
+ sceneValue: SceneValue;
294
+ isLogin: boolean;
295
+ request: Function;
296
+ loginOutFinish?: Function | undefined;
297
+ loginSuccess: Function;
298
+ globalStore: Object;
299
+ repoInfo?: repoInfoType | undefined;
300
+ orgInfo?: OrgInfo | undefined;
301
+ otherUserInfo?: UserInfo | undefined;
302
+ userInfo?: UserInfo | undefined;
303
+ headerFunctions?: HeaderDisplayItem[] | undefined;
304
+ headerCustomProps?: HeaderPropsForCustom | undefined;
305
+ openHarmonyGuide: boolean;
306
+ headerBorder?: boolean | undefined;
307
+ independence?: boolean | undefined;
308
+ userMenus?: any[] | undefined;
309
+ loginChildComponents: any;
310
+ bgConfig?: {
311
+ index_head: string;
312
+ detail_top: string;
313
+ detail_top_black: string;
314
+ detail_toolbar: string;
315
+ detail_toolbar_black: string;
316
+ detail_top_url: string;
317
+ index_head_url: string;
318
+ detail_toolbar_url: string;
319
+ } | undefined;
320
+ openCreateDropdown?: boolean | undefined;
321
+ }>, {
322
+ sceneValue: any;
323
+ headerBorder: boolean;
324
+ isLogin: boolean;
325
+ independence: boolean;
326
+ request: (params: any, customConfigs?: {
327
+ customError?: boolean | undefined;
328
+ customTimeout?: number | undefined;
329
+ ignoreError?: boolean | undefined;
330
+ customErrorCodes?: number[] | undefined;
331
+ } | undefined) => Promise<AxiosResponse<any, any, {}>>;
332
+ globalStore: () => {
333
+ httpStatus: number;
334
+ };
335
+ repoInfo: () => {};
336
+ orgInfo: () => {};
337
+ otherUserInfo: () => {};
338
+ userInfo: () => {};
339
+ bgConfig: () => {
340
+ index_head: string;
341
+ detail_top: string;
342
+ detail_top_black: string;
343
+ detail_toolbar: string;
344
+ detail_toolbar_black: string;
345
+ detail_top_url: string;
346
+ index_head_url: string;
347
+ detail_toolbar_url: string;
348
+ };
349
+ openCreateDropdown: boolean;
350
+ }>>> & Readonly<{
351
+ onResetPwdDirectlySuccess?: ((...args: any[]) => any) | undefined;
352
+ onFollowDevCommunity?: ((...args: any[]) => any) | undefined;
353
+ onFollowUser?: ((...args: any[]) => any) | undefined;
354
+ "onUpdate:openCreateDropdown"?: ((...args: any[]) => any) | undefined;
355
+ }>, {
356
+ globalStore: Object;
357
+ isLogin: boolean;
358
+ sceneValue: SceneValue;
359
+ request: Function;
360
+ repoInfo: repoInfoType;
361
+ orgInfo: OrgInfo;
362
+ otherUserInfo: UserInfo;
363
+ userInfo: UserInfo;
364
+ independence: boolean;
365
+ headerBorder: boolean;
366
+ bgConfig: {
367
+ index_head: string;
368
+ detail_top: string;
369
+ detail_top_black: string;
370
+ detail_toolbar: string;
371
+ detail_toolbar_black: string;
372
+ detail_top_url: string;
373
+ index_head_url: string;
374
+ detail_toolbar_url: string;
375
+ };
376
+ openCreateDropdown: boolean;
377
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
378
+ headerCustom?(_: {}): any;
379
+ aiSearch?(_: {}): any;
380
+ headerMiddleRight?(_: {}): any;
381
+ search?(_: {}): any;
382
+ searchRecommend?(_: {}): any;
383
+ globalSearch?(_: {
384
+ searchStr: string | hn[];
385
+ searchMore: (type: any) => void;
386
+ }): any;
387
+ bodyHeader?(_: {}): any;
388
+ info?(_: {}): any;
389
+ menu?(_: {}): any;
390
+ headerBottom?(_: {}): any;
391
+ }>;
277
392
 
278
393
  export declare const GitCodeLayoutEmitter: Emitter<EventBus>;
279
394
 
@@ -291,11 +406,47 @@ declare enum HeaderDisplayItem {
291
406
  OPERATION_ENTRY = "0111"
292
407
  }
293
408
 
294
- export declare const Login: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
409
+ export declare const Login: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<{
410
+ isLogin: boolean;
411
+ request: Function;
412
+ loginOutFinish?: Function | undefined;
413
+ loginSuccess: Function;
414
+ globalStore: Object;
415
+ openHarmonyGuide: boolean;
416
+ }>, {
417
+ request: (params: any, customConfigs?: {
418
+ customError?: boolean | undefined;
419
+ customTimeout?: number | undefined;
420
+ ignoreError?: boolean | undefined;
421
+ customErrorCodes?: number[] | undefined;
422
+ } | undefined) => Promise<AxiosResponse<any, any, {}>>;
423
+ globalStore: () => {
424
+ httpStatus: number;
425
+ };
426
+ openHarmonyGuide: boolean;
427
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<{
428
+ isLogin: boolean;
429
+ request: Function;
430
+ loginOutFinish?: Function | undefined;
431
+ loginSuccess: Function;
432
+ globalStore: Object;
433
+ openHarmonyGuide: boolean;
434
+ }>, {
435
+ request: (params: any, customConfigs?: {
436
+ customError?: boolean | undefined;
437
+ customTimeout?: number | undefined;
438
+ ignoreError?: boolean | undefined;
439
+ customErrorCodes?: number[] | undefined;
440
+ } | undefined) => Promise<AxiosResponse<any, any, {}>>;
441
+ globalStore: () => {
442
+ httpStatus: number;
443
+ };
444
+ openHarmonyGuide: boolean;
445
+ }>>> & Readonly<{}>, {
295
446
  globalStore: Object;
296
447
  request: Function;
297
448
  openHarmonyGuide: boolean;
298
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
449
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
299
450
 
300
451
  declare interface LoginOptions {
301
452
  Authorization?: boolean;
@@ -360,8 +511,7 @@ export declare enum SceneValue {
360
511
  blog = "blog",
361
512
  news = "news",
362
513
  active = "active",
363
- user = "user",
364
- enterprise = "enterprise"
514
+ user = "user"
365
515
  }
366
516
 
367
517
  export declare function setLayoutConfig(customConfig: BaseLayoutConfig): void;
@@ -370,30 +520,47 @@ export { setTheme }
370
520
 
371
521
  export declare const SiteAnnouncement: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
372
522
 
373
- declare const TOOLS_FLOAT_COLLAPSE_STATUS: {
374
- COLLAPSE: string;
375
- EXPAND: string;
376
- };
377
-
378
- export declare const ToolsFloat: DefineComponent<Props, {
379
- handleCollapseTool: (status: ToolsFloatCollapseStatusType) => void;
523
+ export declare const ToolsFloat: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
524
+ sceneValue: SceneValue;
525
+ isLogin: boolean;
526
+ request: (params: any, customConfigs?: {
527
+ customError?: boolean | undefined;
528
+ customTimeout?: number | undefined;
529
+ ignoreError?: boolean | undefined;
530
+ customErrorCodes?: number[] | undefined;
531
+ } | undefined) => Promise<AxiosResponse<any, any, {}>>;
532
+ globalStore: () => {};
533
+ isRepoPage: boolean;
534
+ isWhiteListRepo: boolean;
535
+ }>>, {
536
+ handleCollapseTool: (status: string) => void;
380
537
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
381
- "toggle-growth-center": () => any;
382
- }, string, PublicProps, Readonly<Props> & Readonly<{
538
+ "toggle-growth-center": () => void;
539
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
540
+ sceneValue: SceneValue;
541
+ isLogin: boolean;
542
+ request: (params: any, customConfigs?: {
543
+ customError?: boolean | undefined;
544
+ customTimeout?: number | undefined;
545
+ ignoreError?: boolean | undefined;
546
+ customErrorCodes?: number[] | undefined;
547
+ } | undefined) => Promise<AxiosResponse<any, any, {}>>;
548
+ globalStore: () => {};
549
+ isRepoPage: boolean;
550
+ isWhiteListRepo: boolean;
551
+ }>>> & Readonly<{
383
552
  "onToggle-growth-center"?: (() => any) | undefined;
384
553
  }>, {
385
554
  globalStore: {
386
- isSignIn?: boolean;
387
555
  [key: string]: any;
556
+ isSignIn?: boolean | undefined;
388
557
  };
389
558
  isLogin: boolean;
390
559
  sceneValue: SceneValue;
391
560
  request: Function;
392
561
  isRepoPage: boolean;
393
562
  isWhiteListRepo: boolean;
394
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
395
-
396
- declare type ToolsFloatCollapseStatusType = typeof TOOLS_FLOAT_COLLAPSE_STATUS[keyof typeof TOOLS_FLOAT_COLLAPSE_STATUS];
563
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
397
564
 
398
565
  export declare function useLogin(request: any, globalStore?: any): {
399
566
  login: (options?: LoginOptions, loginSuccess?: Function, openHarmonyGuide?: boolean) => void;
package/index.js CHANGED
@@ -1,16 +1,15 @@
1
- import { Q, O, P, X, N, S, U, M, B, Z, W, Y, V } from "./index-Cm9jGd0G.js";
1
+ import { M, N, O, P, S, Q, U, B, V, W, X, Y } from "./index-CxbzgDJ7.js";
2
2
  export {
3
- Q as EnterpriseHeader,
4
- O as GitCodeAside,
5
- P as GitCodeHeader,
6
- X as GitCodeLayoutEmitter,
7
- N as Login,
3
+ M as GitCodeAside,
4
+ N as GitCodeHeader,
5
+ O as GitCodeLayoutEmitter,
6
+ P as Login,
8
7
  S as SceneValue,
9
- U as SiteAnnouncement,
10
- M as ToolsFloat,
8
+ Q as SiteAnnouncement,
9
+ U as ToolsFloat,
11
10
  B as currentTheme,
12
- Z as default,
11
+ V as default,
13
12
  W as setLayoutConfig,
14
- Y as setTheme,
15
- V as useLogin
13
+ X as setTheme,
14
+ Y as useLogin
16
15
  };
@@ -1,5 +1,5 @@
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-Cm9jGd0G.js";
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-CxbzgDJ7.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";