@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.
- package/dist/index.cjs +2 -2
- package/dist/index.iife.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/index.umd.js +2 -2
- package/package.json +5 -5
- package/types/components/action/Action.d.ts +23 -23
- package/types/components/action/Trigger.d.ts +11 -11
- package/types/components/action/hooks.d.ts +4 -3
- package/types/components/action/index.d.ts +2 -1
- package/types/components/action/types.d.ts +6 -5
- package/types/components/action-bar/ActionBar.d.ts +42 -41
- package/types/components/action-bar/index.d.ts +2 -1
- package/types/components/action-bar/types.d.ts +7 -6
- package/types/components/chart/Chart.d.ts +2 -2
- package/types/components/chart/index.d.ts +2 -1
- package/types/components/chart/types.d.ts +4 -3
- package/types/components/chart/useChart.d.ts +4 -3
- package/types/components/container/Container.d.ts +4 -4
- package/types/components/container/index.d.ts +2 -1
- package/types/components/container/types.d.ts +4 -3
- package/types/components/data-item/DataItem.d.ts +24 -23
- package/types/components/data-item/index.d.ts +2 -1
- package/types/components/data-item/types.d.ts +4 -3
- package/types/components/dialog/Dialog.d.ts +2 -2
- package/types/components/dialog/create.d.ts +3 -2
- package/types/components/dialog/hooks.d.ts +5 -4
- package/types/components/dialog/index.d.ts +2 -1
- package/types/components/dialog/types.d.ts +7 -6
- package/types/components/dialog-form/DialogForm.d.ts +2 -2
- package/types/components/dialog-form/index.d.ts +2 -1
- package/types/components/dialog-form/types.d.ts +3 -2
- package/types/components/field/Field.d.ts +9 -8
- package/types/components/field/editors/CheckboxEditor.d.ts +3 -2
- package/types/components/field/editors/RadioEditor.d.ts +3 -2
- package/types/components/field/editors/SelectEditor.d.ts +4 -3
- package/types/components/field/editors/index.d.ts +4 -3
- package/types/components/field/hooks/useEditor.d.ts +4 -3
- package/types/components/field/index.d.ts +2 -1
- package/types/components/field/types.d.ts +7 -6
- package/types/components/form/Form.d.ts +7 -6
- package/types/components/form/index.d.ts +2 -1
- package/types/components/form/types.d.ts +5 -4
- package/types/components/header/Header.d.ts +2 -2
- package/types/components/header/index.d.ts +2 -1
- package/types/components/header/types.d.ts +4 -3
- package/types/components/icon/Icon.d.ts +2 -2
- package/types/components/icon/index.d.ts +2 -1
- package/types/components/icon/types.d.ts +3 -2
- package/types/components/input-unit/InputUnit.d.ts +1 -1
- package/types/components/input-unit/index.d.ts +2 -1
- package/types/components/input-unit/types.d.ts +3 -2
- package/types/components/list/List.d.ts +7 -6
- package/types/components/list/index.d.ts +2 -1
- package/types/components/list/types.d.ts +4 -3
- package/types/components/mask/Mask.d.ts +31 -30
- package/types/components/mask/components/Avatar.d.ts +1 -1
- package/types/components/mask/components/Brand.d.ts +2 -2
- package/types/components/mask/components/Content.d.ts +3 -2
- package/types/components/mask/components/Menu.d.ts +3 -2
- package/types/components/mask/components/Sidebar.d.ts +1 -1
- package/types/components/mask/components/SwitchBar.d.ts +1 -1
- package/types/components/mask/components/Tabs.d.ts +4 -3
- package/types/components/mask/components/ThemeSwitch.d.ts +1 -1
- package/types/components/mask/components/Toolbar.d.ts +5 -4
- package/types/components/mask/defineTab.d.ts +2 -1
- package/types/components/mask/hooks/useContent.d.ts +3 -2
- package/types/components/mask/hooks/useHome.d.ts +2 -1
- package/types/components/mask/hooks/useMenus.d.ts +3 -2
- package/types/components/mask/hooks/useTabs.d.ts +4 -3
- package/types/components/mask/index.d.ts +2 -1
- package/types/components/mask/types.d.ts +5 -4
- package/types/components/menu/Menu.d.ts +3 -2
- package/types/components/menu/MenuItem.d.ts +4 -3
- package/types/components/menu/components.d.ts +2 -1
- package/types/components/menu/index.d.ts +2 -1
- package/types/components/menu/types.d.ts +3 -2
- package/types/components/panel/Panel.d.ts +12 -12
- package/types/components/panel/index.d.ts +2 -1
- package/types/components/panel/types.d.ts +19 -18
- package/types/components/shared.d.ts +3 -2
- package/types/components/startup/Startup.d.ts +1 -1
- package/types/components/startup/index.d.ts +2 -1
- package/types/components/startup/types.d.ts +2 -1
- package/types/components/tabs/Tabs.d.ts +25 -24
- package/types/components/tabs/index.d.ts +2 -1
- package/types/components/tabs/types.d.ts +4 -3
- package/types/components/test/Test.d.ts +6 -6
- package/types/components/test/index.d.ts +2 -1
- package/types/components/test/types.d.ts +2 -1
- package/types/directives/vDraggable.d.ts +3 -2
- package/types/directives/vResizable.d.ts +3 -2
- package/types/hooks/useDisabled.d.ts +2 -1
- package/types/hooks/useIcon.d.ts +3 -2
- package/types/hooks/useLoader.d.ts +2 -1
- package/types/index.d.ts +1 -0
- package/types/list.d.ts +2 -1
- package/types/utils/install.d.ts +2 -1
- 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,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
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
|
};
|
|
@@ -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 {
|
|
6
|
-
|
|
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,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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 {
|
|
7
|
-
import {
|
|
8
|
-
|
|
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 {
|
|
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 {
|
|
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 {
|
|
3
|
-
import {
|
|
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 {
|
|
3
|
-
import
|
|
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 {
|
|
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,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
|
|
4
|
-
import {
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
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,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
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
|
|
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
|
|
2
|
-
import {
|
|
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,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
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;
|