@vtj/ui 0.7.28 → 0.7.30

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.
Files changed (98) hide show
  1. package/dist/index.cjs +2 -2
  2. package/dist/index.iife.js +2 -2
  3. package/dist/index.mjs +2 -2
  4. package/dist/index.umd.js +2 -2
  5. package/package.json +5 -5
  6. package/types/components/action/Action.d.ts +23 -23
  7. package/types/components/action/Trigger.d.ts +11 -11
  8. package/types/components/action/hooks.d.ts +4 -3
  9. package/types/components/action/index.d.ts +2 -1
  10. package/types/components/action/types.d.ts +6 -5
  11. package/types/components/action-bar/ActionBar.d.ts +42 -41
  12. package/types/components/action-bar/index.d.ts +2 -1
  13. package/types/components/action-bar/types.d.ts +7 -6
  14. package/types/components/chart/Chart.d.ts +2 -2
  15. package/types/components/chart/index.d.ts +2 -1
  16. package/types/components/chart/types.d.ts +4 -3
  17. package/types/components/chart/useChart.d.ts +4 -3
  18. package/types/components/container/Container.d.ts +4 -4
  19. package/types/components/container/index.d.ts +2 -1
  20. package/types/components/container/types.d.ts +4 -3
  21. package/types/components/data-item/DataItem.d.ts +24 -23
  22. package/types/components/data-item/index.d.ts +2 -1
  23. package/types/components/data-item/types.d.ts +4 -3
  24. package/types/components/dialog/Dialog.d.ts +2 -2
  25. package/types/components/dialog/create.d.ts +3 -2
  26. package/types/components/dialog/hooks.d.ts +5 -4
  27. package/types/components/dialog/index.d.ts +2 -1
  28. package/types/components/dialog/types.d.ts +7 -6
  29. package/types/components/dialog-form/DialogForm.d.ts +2 -2
  30. package/types/components/dialog-form/index.d.ts +2 -1
  31. package/types/components/dialog-form/types.d.ts +3 -2
  32. package/types/components/field/Field.d.ts +9 -8
  33. package/types/components/field/editors/CheckboxEditor.d.ts +3 -2
  34. package/types/components/field/editors/RadioEditor.d.ts +3 -2
  35. package/types/components/field/editors/SelectEditor.d.ts +4 -3
  36. package/types/components/field/editors/index.d.ts +4 -3
  37. package/types/components/field/hooks/useEditor.d.ts +4 -3
  38. package/types/components/field/index.d.ts +2 -1
  39. package/types/components/field/types.d.ts +7 -6
  40. package/types/components/form/Form.d.ts +7 -6
  41. package/types/components/form/index.d.ts +2 -1
  42. package/types/components/form/types.d.ts +5 -4
  43. package/types/components/header/Header.d.ts +2 -2
  44. package/types/components/header/index.d.ts +2 -1
  45. package/types/components/header/types.d.ts +4 -3
  46. package/types/components/icon/Icon.d.ts +2 -2
  47. package/types/components/icon/index.d.ts +2 -1
  48. package/types/components/icon/types.d.ts +3 -2
  49. package/types/components/input-unit/InputUnit.d.ts +1 -1
  50. package/types/components/input-unit/index.d.ts +2 -1
  51. package/types/components/input-unit/types.d.ts +3 -2
  52. package/types/components/list/List.d.ts +7 -6
  53. package/types/components/list/index.d.ts +2 -1
  54. package/types/components/list/types.d.ts +4 -3
  55. package/types/components/mask/Mask.d.ts +31 -30
  56. package/types/components/mask/components/Avatar.d.ts +1 -1
  57. package/types/components/mask/components/Brand.d.ts +2 -2
  58. package/types/components/mask/components/Content.d.ts +3 -2
  59. package/types/components/mask/components/Menu.d.ts +3 -2
  60. package/types/components/mask/components/Sidebar.d.ts +1 -1
  61. package/types/components/mask/components/SwitchBar.d.ts +1 -1
  62. package/types/components/mask/components/Tabs.d.ts +4 -3
  63. package/types/components/mask/components/ThemeSwitch.d.ts +1 -1
  64. package/types/components/mask/components/Toolbar.d.ts +5 -4
  65. package/types/components/mask/defineTab.d.ts +2 -1
  66. package/types/components/mask/hooks/useContent.d.ts +3 -2
  67. package/types/components/mask/hooks/useHome.d.ts +2 -1
  68. package/types/components/mask/hooks/useMenus.d.ts +3 -2
  69. package/types/components/mask/hooks/useTabs.d.ts +4 -3
  70. package/types/components/mask/index.d.ts +2 -1
  71. package/types/components/mask/types.d.ts +5 -4
  72. package/types/components/menu/Menu.d.ts +3 -2
  73. package/types/components/menu/MenuItem.d.ts +4 -3
  74. package/types/components/menu/components.d.ts +2 -1
  75. package/types/components/menu/index.d.ts +2 -1
  76. package/types/components/menu/types.d.ts +3 -2
  77. package/types/components/panel/Panel.d.ts +12 -12
  78. package/types/components/panel/index.d.ts +2 -1
  79. package/types/components/panel/types.d.ts +19 -18
  80. package/types/components/shared.d.ts +3 -2
  81. package/types/components/startup/Startup.d.ts +1 -1
  82. package/types/components/startup/index.d.ts +2 -1
  83. package/types/components/startup/types.d.ts +2 -1
  84. package/types/components/tabs/Tabs.d.ts +25 -24
  85. package/types/components/tabs/index.d.ts +2 -1
  86. package/types/components/tabs/types.d.ts +4 -3
  87. package/types/components/test/Test.d.ts +6 -6
  88. package/types/components/test/index.d.ts +2 -1
  89. package/types/components/test/types.d.ts +2 -1
  90. package/types/directives/vDraggable.d.ts +3 -2
  91. package/types/directives/vResizable.d.ts +3 -2
  92. package/types/hooks/useDisabled.d.ts +2 -1
  93. package/types/hooks/useIcon.d.ts +3 -2
  94. package/types/hooks/useLoader.d.ts +2 -1
  95. package/types/index.d.ts +1 -0
  96. package/types/list.d.ts +2 -1
  97. package/types/utils/install.d.ts +2 -1
  98. package/types/version.d.ts +2 -2
@@ -1,6 +1,6 @@
1
1
  import { IconSize } from './types';
2
2
  import { DefineComponent, PropType, VNode, RendererNode, RendererElement, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
3
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
3
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
4
4
  icon: {
5
5
  type: PropType<string | object | VNode<RendererNode, RendererElement, {
6
6
  [key: string]: any;
@@ -25,7 +25,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
25
25
  radius: {
26
26
  type: NumberConstructor;
27
27
  };
28
- }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
28
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
29
29
  icon: {
30
30
  type: PropType<string | object | VNode<RendererNode, RendererElement, {
31
31
  [key: string]: any;
@@ -1,3 +1,4 @@
1
- import XIcon from "./Icon";
1
+ import { default as XIcon } from "./Icon";
2
+
2
3
  export { XIcon };
3
4
  export * from './types';
@@ -1,4 +1,5 @@
1
- import { RendererNode, RendererElement, ExtractPropTypes, PropType, VNode } from 'vue';
1
+ import { ExtractPropTypes, PropType, VNode, RendererNode, RendererElement } from 'vue';
2
+
2
3
  export type IconParam = string | VNode | IconProps | Record<string, any>;
3
4
  export type IconSize = number | 'inherit' | 'large' | 'default' | 'small';
4
5
  export declare const iconSizeMap: {
@@ -9,7 +10,7 @@ export declare const iconSizeMap: {
9
10
  export type IconSizeKey = keyof typeof iconSizeMap;
10
11
  export declare const iconProps: {
11
12
  icon: {
12
- type: PropType<string | object | VNode<RendererNode, RendererElement, {
13
+ type: PropType<string | object | VNode< RendererNode, RendererElement, {
13
14
  [key: string]: any;
14
15
  }>>;
15
16
  };
@@ -35,7 +35,7 @@ declare const _default: DefineComponent<{
35
35
  "update:modelValue": (args_0: string | number | undefined) => void;
36
36
  "update:unit": (args_0: string | number | undefined) => void;
37
37
  "unit-change": (args_0: string | undefined) => void;
38
- }, string, PublicProps, Readonly<ExtractPropTypes<{
38
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
39
39
  units: {
40
40
  type: PropType<(string | InputUnitOption)[]>;
41
41
  };
@@ -1,3 +1,4 @@
1
- import XInputUnit from "./InputUnit";
1
+ import { default as XInputUnit } from "./InputUnit";
2
+
2
3
  export { XInputUnit };
3
4
  export * from './types';
@@ -1,5 +1,6 @@
1
- import type { PropType } from 'vue';
2
- import type { ComponentPropsType } from '../shared';
1
+ import { ComponentPropsType } from '../shared';
2
+ import { PropType } from 'vue';
3
+
3
4
  export interface InputUnitOption {
4
5
  label: string;
5
6
  value: string;
@@ -2,8 +2,9 @@ import { UseVirtualListItem } from '@vueuse/core';
2
2
  import { PaginationProps } from 'element-plus';
3
3
  import { DataLoader } from '..';
4
4
  import { DefineComponent, PropType, Ref, ComputedRef, ShallowRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
5
- import { ListInfiniteScroll, type ListData, type ListState } from './types';
6
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
5
+ import { ListData, ListState, ListInfiniteScroll } from './types';
6
+
7
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
7
8
  data: {
8
9
  type: PropType<DataLoader<ListData, ListState>>;
9
10
  default(): never[];
@@ -20,7 +21,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
20
21
  default: string;
21
22
  };
22
23
  pager: {
23
- type: PropType<boolean | Partial<PaginationProps>>;
24
+ type: PropType<boolean | Partial< PaginationProps>>;
24
25
  };
25
26
  page: {
26
27
  type: NumberConstructor;
@@ -37,7 +38,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
37
38
  type: PropType<boolean | ListInfiniteScroll>;
38
39
  };
39
40
  }, {
40
- list: Ref<UseVirtualListItem<any>[]>;
41
+ list: Ref< UseVirtualListItem<any>[]>;
41
42
  scrollTo: (index: number) => void;
42
43
  wrapperRef: Ref<any>;
43
44
  loading: Ref<boolean>;
@@ -51,7 +52,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
51
52
  getKey: (item: any) => any;
52
53
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
53
54
  load: (state: ListState) => void;
54
- }, string, PublicProps, Readonly<ExtractPropTypes<{
55
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
55
56
  data: {
56
57
  type: PropType<DataLoader<ListData, ListState>>;
57
58
  default(): never[];
@@ -68,7 +69,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
68
69
  default: string;
69
70
  };
70
71
  pager: {
71
- type: PropType<boolean | Partial<PaginationProps>>;
72
+ type: PropType<boolean | Partial< PaginationProps>>;
72
73
  };
73
74
  page: {
74
75
  type: NumberConstructor;
@@ -1,3 +1,4 @@
1
- import XList from "./List";
1
+ import { default as XList } from "./List";
2
+
2
3
  export { XList };
3
4
  export * from './types';
@@ -1,6 +1,7 @@
1
- import type { PropType } from 'vue';
2
- import type { ComponentPropsType, DataLoader } from '../shared';
3
- import type { PaginationProps } from 'element-plus';
1
+ import { PaginationProps } from 'element-plus';
2
+ import { ComponentPropsType, DataLoader } from '../shared';
3
+ import { PropType } from 'vue';
4
+
4
5
  export interface ListData {
5
6
  list: any[];
6
7
  total?: number;
@@ -3,9 +3,10 @@ import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
3
3
  import { EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils/index.mjs';
4
4
  import { ElTooltipProps, BadgeProps, TooltipTriggerType, ButtonProps } from 'element-plus';
5
5
  import { DefineComponent, PropType, ComponentOptionsMixin, ExtractPropTypes, PublicProps } from 'vue';
6
- import { MenuDataItem, ActionBarItems, IconParam, ActionMode, type ActionMenuItem } from '../';
7
- import { type MaskTab } from './types';
8
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
6
+ import { MaskTab } from './types';
7
+ import { ActionMenuItem, MenuDataItem, ActionBarItems, IconParam, ActionMode } from '../';
8
+
9
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
9
10
  logo: {
10
11
  type: StringConstructor;
11
12
  default: string;
@@ -15,11 +16,11 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
15
16
  default: string;
16
17
  };
17
18
  menus: {
18
- type: PropType<MenuDataItem[] | (() => MenuDataItem[] | Promise<MenuDataItem[]>)>;
19
+ type: PropType< MenuDataItem[] | (() => MenuDataItem[] | Promise< MenuDataItem[]>)>;
19
20
  default(): never[];
20
21
  };
21
22
  favorites: {
22
- type: PropType<MenuDataItem[] | (() => MenuDataItem[] | Promise<MenuDataItem[]>)>;
23
+ type: PropType< MenuDataItem[] | (() => MenuDataItem[] | Promise< MenuDataItem[]>)>;
23
24
  default(): never[];
24
25
  };
25
26
  menuAdapter: {
@@ -53,7 +54,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
53
54
  };
54
55
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
55
56
  select: (menu: MenuDataItem) => void;
56
- actionClick: (action: Readonly<Partial<ExtractPropTypes<{
57
+ actionClick: (action: Readonly<Partial< ExtractPropTypes<{
57
58
  name: {
58
59
  type: StringConstructor;
59
60
  };
@@ -74,13 +75,13 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
74
75
  type: PropType<ActionMenuItem[]>;
75
76
  };
76
77
  tooltip: {
77
- type: PropType<string | Partial<ElTooltipProps>>;
78
+ type: PropType<string | Partial< ElTooltipProps>>;
78
79
  };
79
80
  badge: {
80
- type: PropType<string | number | Partial<BadgeProps>>;
81
+ type: PropType<string | number | Partial< BadgeProps>>;
81
82
  };
82
83
  dropdown: {
83
- type: PropType<Partial<ExtractPropTypes<{
84
+ type: PropType<Partial< ExtractPropTypes<{
84
85
  readonly trigger: EpPropFinalized<(new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
85
86
  readonly effect: {
86
87
  readonly default: "light";
@@ -119,7 +120,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
119
120
  }>>>;
120
121
  };
121
122
  button: {
122
- type: PropType<Partial<ButtonProps>>;
123
+ type: PropType<Partial< ButtonProps>>;
123
124
  };
124
125
  disabled: {
125
126
  type: PropType<boolean | (() => boolean)>;
@@ -140,7 +141,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
140
141
  type: BooleanConstructor;
141
142
  };
142
143
  }>>>) => void;
143
- actionCommand: (action: Readonly<Partial<ExtractPropTypes<{
144
+ actionCommand: (action: Readonly<Partial< ExtractPropTypes<{
144
145
  name: {
145
146
  type: StringConstructor;
146
147
  };
@@ -161,13 +162,13 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
161
162
  type: PropType<ActionMenuItem[]>;
162
163
  };
163
164
  tooltip: {
164
- type: PropType<string | Partial<ElTooltipProps>>;
165
+ type: PropType<string | Partial< ElTooltipProps>>;
165
166
  };
166
167
  badge: {
167
- type: PropType<string | number | Partial<BadgeProps>>;
168
+ type: PropType<string | number | Partial< BadgeProps>>;
168
169
  };
169
170
  dropdown: {
170
- type: PropType<Partial<ExtractPropTypes<{
171
+ type: PropType<Partial< ExtractPropTypes<{
171
172
  readonly trigger: EpPropFinalized<(new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
172
173
  readonly effect: {
173
174
  readonly default: "light";
@@ -206,7 +207,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
206
207
  }>>>;
207
208
  };
208
209
  button: {
209
- type: PropType<Partial<ButtonProps>>;
210
+ type: PropType<Partial< ButtonProps>>;
210
211
  };
211
212
  disabled: {
212
213
  type: PropType<boolean | (() => boolean)>;
@@ -227,7 +228,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
227
228
  type: BooleanConstructor;
228
229
  };
229
230
  }>>>, item: ActionMenuItem) => void;
230
- }, string, PublicProps, Readonly<ExtractPropTypes<{
231
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
231
232
  logo: {
232
233
  type: StringConstructor;
233
234
  default: string;
@@ -237,11 +238,11 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
237
238
  default: string;
238
239
  };
239
240
  menus: {
240
- type: PropType<MenuDataItem[] | (() => MenuDataItem[] | Promise<MenuDataItem[]>)>;
241
+ type: PropType< MenuDataItem[] | (() => MenuDataItem[] | Promise< MenuDataItem[]>)>;
241
242
  default(): never[];
242
243
  };
243
244
  favorites: {
244
- type: PropType<MenuDataItem[] | (() => MenuDataItem[] | Promise<MenuDataItem[]>)>;
245
+ type: PropType< MenuDataItem[] | (() => MenuDataItem[] | Promise< MenuDataItem[]>)>;
245
246
  default(): never[];
246
247
  };
247
248
  menuAdapter: {
@@ -275,7 +276,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
275
276
  };
276
277
  }>> & {
277
278
  onSelect?: ((menu: MenuDataItem) => any) | undefined;
278
- onActionClick?: ((action: Readonly<Partial<ExtractPropTypes<{
279
+ onActionClick?: ((action: Readonly<Partial< ExtractPropTypes<{
279
280
  name: {
280
281
  type: StringConstructor;
281
282
  };
@@ -296,13 +297,13 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
296
297
  type: PropType<ActionMenuItem[]>;
297
298
  };
298
299
  tooltip: {
299
- type: PropType<string | Partial<ElTooltipProps>>;
300
+ type: PropType<string | Partial< ElTooltipProps>>;
300
301
  };
301
302
  badge: {
302
- type: PropType<string | number | Partial<BadgeProps>>;
303
+ type: PropType<string | number | Partial< BadgeProps>>;
303
304
  };
304
305
  dropdown: {
305
- type: PropType<Partial<ExtractPropTypes<{
306
+ type: PropType<Partial< ExtractPropTypes<{
306
307
  readonly trigger: EpPropFinalized<(new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
307
308
  readonly effect: {
308
309
  readonly default: "light";
@@ -341,7 +342,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
341
342
  }>>>;
342
343
  };
343
344
  button: {
344
- type: PropType<Partial<ButtonProps>>;
345
+ type: PropType<Partial< ButtonProps>>;
345
346
  };
346
347
  disabled: {
347
348
  type: PropType<boolean | (() => boolean)>;
@@ -362,7 +363,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
362
363
  type: BooleanConstructor;
363
364
  };
364
365
  }>>>) => any) | undefined;
365
- onActionCommand?: ((action: Readonly<Partial<ExtractPropTypes<{
366
+ onActionCommand?: ((action: Readonly<Partial< ExtractPropTypes<{
366
367
  name: {
367
368
  type: StringConstructor;
368
369
  };
@@ -383,13 +384,13 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
383
384
  type: PropType<ActionMenuItem[]>;
384
385
  };
385
386
  tooltip: {
386
- type: PropType<string | Partial<ElTooltipProps>>;
387
+ type: PropType<string | Partial< ElTooltipProps>>;
387
388
  };
388
389
  badge: {
389
- type: PropType<string | number | Partial<BadgeProps>>;
390
+ type: PropType<string | number | Partial< BadgeProps>>;
390
391
  };
391
392
  dropdown: {
392
- type: PropType<Partial<ExtractPropTypes<{
393
+ type: PropType<Partial< ExtractPropTypes<{
393
394
  readonly trigger: EpPropFinalized<(new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
394
395
  readonly effect: {
395
396
  readonly default: "light";
@@ -428,7 +429,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
428
429
  }>>>;
429
430
  };
430
431
  button: {
431
- type: PropType<Partial<ButtonProps>>;
432
+ type: PropType<Partial< ButtonProps>>;
432
433
  };
433
434
  disabled: {
434
435
  type: PropType<boolean | (() => boolean)>;
@@ -452,9 +453,9 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
452
453
  }, {
453
454
  disabled: boolean;
454
455
  title: string;
455
- menus: MenuDataItem[] | (() => MenuDataItem[] | Promise<MenuDataItem[]>);
456
+ menus: MenuDataItem[] | (() => MenuDataItem[] | Promise< MenuDataItem[]>);
456
457
  logo: string;
457
- favorites: MenuDataItem[] | (() => MenuDataItem[] | Promise<MenuDataItem[]>);
458
+ favorites: MenuDataItem[] | (() => MenuDataItem[] | Promise< MenuDataItem[]>);
458
459
  home: string | MaskTab;
459
460
  tabs: number;
460
461
  theme: boolean;
@@ -2,7 +2,7 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes,
2
2
  export interface Props {
3
3
  avatar?: string;
4
4
  }
5
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>, {
5
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>, {
6
6
  default?(_: {}): any;
7
7
  }>;
8
8
  export default _default;
@@ -5,9 +5,9 @@ export interface Props {
5
5
  title?: string;
6
6
  url?: string;
7
7
  }
8
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
8
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
9
9
  collapsed: boolean;
10
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
10
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
11
  collapsed: boolean;
12
12
  }>>>, {
13
13
  collapsed: boolean;
@@ -1,10 +1,11 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { type RouteLocationNormalizedLoaded } from 'vue-router';
2
+ import { RouteLocationNormalizedLoaded } from 'vue-router';
3
+
3
4
  export interface Props {
4
5
  createView: (module: any, route: RouteLocationNormalizedLoaded) => any;
5
6
  exclude: string[];
6
7
  }
7
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>, {
8
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>, {
8
9
  default?(_: {}): any;
9
10
  }>;
10
11
  export default _default;
@@ -1,5 +1,6 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { type MenuDataItem } from '../../';
2
+ import { MenuDataItem } from '../../';
3
+
3
4
  export interface Props {
4
5
  collapse?: boolean;
5
6
  keyword?: string;
@@ -13,7 +14,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
13
14
  collapse: boolean;
14
15
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
15
16
  select: (item: MenuDataItem) => void;
16
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
17
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
17
18
  collapse: boolean;
18
19
  }>>> & {
19
20
  onSelect?: ((item: MenuDataItem) => any) | undefined;
@@ -2,7 +2,7 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes,
2
2
  export interface Props {
3
3
  collapsed?: boolean;
4
4
  }
5
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>, {
5
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>, {
6
6
  brand?(_: {}): any;
7
7
  default?(_: {}): any;
8
8
  }>;
@@ -11,7 +11,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
11
11
  "update:collasped": (...args: any[]) => void;
12
12
  "update:keyword": (...args: any[]) => void;
13
13
  "update:favorite": (...args: any[]) => void;
14
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
14
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
15
15
  collasped: boolean;
16
16
  favorite: boolean;
17
17
  }>>> & {
@@ -1,6 +1,7 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { type MenuDataItem } from '../../';
3
- import { type MaskTab } from '../types';
2
+ import { MaskTab } from '../types';
3
+ import { MenuDataItem } from '../../';
4
+
4
5
  export interface Props {
5
6
  tabs: MaskTab[];
6
7
  home: MaskTab;
@@ -14,7 +15,7 @@ declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}
14
15
  remove: (tab: MaskTab) => void;
15
16
  refresh: (tab: MaskTab) => void;
16
17
  toggleFavorite: (item: MenuDataItem) => void;
17
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
18
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
18
19
  onClick?: ((tab: MaskTab) => any) | undefined;
19
20
  onDialog?: ((tab: MaskTab) => any) | undefined;
20
21
  onRemove?: ((tab: MaskTab) => any) | undefined;
@@ -1,3 +1,3 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
- declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{}>>, {}, {}>;
3
3
  export default _default;
@@ -1,12 +1,13 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { type ActionBarItems } from '../../';
3
- import type { MaskTab } from '../types';
2
+ import { MaskTab } from '../types';
3
+ import { ActionBarItems } from '../../';
4
+
4
5
  export interface Props {
5
6
  tabs: MaskTab[];
6
7
  actions?: ActionBarItems;
7
8
  theme?: boolean;
8
9
  }
9
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
10
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
10
11
  tabs: () => never[];
11
12
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
12
13
  actionClick: (...args: any[]) => void;
@@ -15,7 +16,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
15
16
  closeAllTabs: (...args: any[]) => void;
16
17
  closeTab: (...args: any[]) => void;
17
18
  clickTab: (...args: any[]) => void;
18
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
19
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
19
20
  tabs: () => never[];
20
21
  }>>> & {
21
22
  onActionClick?: ((...args: any[]) => any) | undefined;
@@ -1,5 +1,6 @@
1
1
  import { ComputedRef } from 'vue';
2
- import { type MaskTab, type TabCreator } from './types';
2
+ import { MaskTab, TabCreator } from './types';
3
+
3
4
  export declare function defineTab(options?: Partial<MaskTab> | TabCreator): {
4
5
  tab: ComputedRef<MaskTab | null>;
5
6
  mask: any;
@@ -1,7 +1,8 @@
1
1
  import { VNode, RendererNode, RendererElement, Ref } from 'vue';
2
- import { type RouteLocationNormalizedLoaded } from 'vue-router';
3
- import type { MaskTab } from '../types';
4
2
  import { useTabs } from './useTabs';
3
+ import { MaskTab } from '../types';
4
+ import { RouteLocationNormalizedLoaded } from 'vue-router';
5
+
5
6
  export type UseContentOptions = ReturnType<typeof useTabs>;
6
7
  export declare function useContent(options: Partial<UseContentOptions>): {
7
8
  createView: (module: any, route: RouteLocationNormalizedLoaded) => any;
@@ -1,3 +1,4 @@
1
1
  import { ComputedRef } from 'vue';
2
- import type { MaskProps, MaskTab } from '../types';
2
+ import { MaskProps, MaskTab } from '../types';
3
+
3
4
  export declare function useHome(props: MaskProps): ComputedRef<MaskTab>;
@@ -1,7 +1,8 @@
1
1
  import { EpPropMergeType } from 'element-plus/es/utils/index.mjs';
2
2
  import { ShallowRef, ComputedRef, Ref, DefineComponent } from 'vue';
3
- import type { MaskProps, MaskEmitsFn } from '../types';
4
- import { type MenuDataItem } from '../../';
3
+ import { MenuDataItem } from '../../';
4
+ import { MaskProps, MaskEmitsFn } from '../types';
5
+
5
6
  export declare function useMenus(props: MaskProps, emit: MaskEmitsFn): {
6
7
  menus: ShallowRef<MenuDataItem[]>;
7
8
  favorites: ShallowRef<MenuDataItem[]>;
@@ -1,6 +1,7 @@
1
- import { type ComputedRef, type Ref } from 'vue';
2
- import { type MaskProps, type MaskEmitsFn, type MaskTab } from '../types';
3
- import type { MenuDataItem } from '../../';
1
+ import { MenuDataItem } from '../../';
2
+ import { MaskProps, MaskEmitsFn, MaskTab } from '../types';
3
+ import { ComputedRef, Ref } from 'vue';
4
+
4
5
  export declare function useTabs(_props: MaskProps, _emit: MaskEmitsFn, menus: ComputedRef<MenuDataItem[]>, active: Ref<MenuDataItem | null>, home: ComputedRef<MaskTab>): {
5
6
  tabRef: Ref<any>;
6
7
  tabs: Ref<MaskTab[]>;
@@ -1,4 +1,5 @@
1
- import XMask from "./Mask";
1
+ import { default as XMask } from "./Mask";
2
+
2
3
  export { XMask };
3
4
  export * from './types';
4
5
  export * from './defineTab';
@@ -1,7 +1,8 @@
1
- import type { PropType, InjectionKey, DefineComponent } from 'vue';
2
- import type { MenuDataItem, ActionBarItems, ActionProps, ActionMenuItem, ComponentPropsType, DialogProps } from '../';
3
- import type { Emits } from '../shared';
4
- import type Mask from "./Mask";
1
+ import { default as Mask } from "./Mask";
2
+ import { Emits } from '../shared';
3
+ import { MenuDataItem, ActionBarItems, ActionProps, ActionMenuItem, ComponentPropsType, DialogProps } from '../';
4
+ import { PropType, InjectionKey, DefineComponent } from 'vue';
5
+
5
6
  export declare const TAB_ITEM_WIDTH = 140;
6
7
  export declare const maskProps: {
7
8
  /**
@@ -1,11 +1,12 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import type { MenuProps, MenuDataItem } from './types';
2
+ import { MenuProps, MenuDataItem } from './types';
3
+
3
4
  declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MenuProps>, {
4
5
  data: () => never[];
5
6
  subMenuProps: () => {};
6
7
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
7
8
  select: (item: MenuDataItem) => void;
8
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MenuProps>, {
9
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MenuProps>, {
9
10
  data: () => never[];
10
11
  subMenuProps: () => {};
11
12
  }>>> & {
@@ -1,11 +1,12 @@
1
- import type { MenuDataItem, SubMenuProps } from './types';
2
- import { ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, type DefineComponent } from 'vue';
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { MenuDataItem, SubMenuProps } from './types';
3
+
3
4
  export interface Props {
4
5
  item: MenuDataItem;
5
6
  subMenu?: SubMenuProps;
6
7
  defaultIcon?: DefineComponent<any, any, any, any>;
7
8
  }
8
- declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
9
+ declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
9
10
  export default _default;
10
11
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
12
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,2 +1,3 @@
1
- import XMenuItem from "./MenuItem";
1
+ import { default as XMenuItem } from "./MenuItem";
2
+
2
3
  export { XMenuItem };
@@ -1,3 +1,4 @@
1
- import XMenu from "./Menu";
1
+ import { default as XMenu } from "./Menu";
2
+
2
3
  export { XMenu };
3
4
  export * from './types';
@@ -1,5 +1,6 @@
1
- import type { SubMenuProps as ElSubMenuProps, BadgeProps } from 'element-plus';
2
- import type { DefineComponent } from 'vue';
1
+ import { DefineComponent } from 'vue';
2
+ import { SubMenuProps as ElSubMenuProps, BadgeProps } from 'element-plus';
3
+
3
4
  export interface MenuDataItem {
4
5
  id: string | number;
5
6
  title?: string;