@vtj/ui 0.6.25 → 0.7.0
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/LICENSE +21 -21
- package/dist/index.cjs +7 -0
- package/dist/index.iife.js +7 -0
- package/dist/index.mjs +4165 -0
- package/dist/index.umd.js +7 -0
- package/dist/style.css +1 -0
- package/package.json +23 -21
- package/types/components/action/Action.d.ts +23 -22
- package/types/components/action/Trigger.d.ts +15 -14
- package/types/components/action/hooks.d.ts +7 -6
- package/types/components/action/types.d.ts +14 -10
- package/types/components/action-bar/ActionBar.d.ts +41 -40
- package/types/components/action-bar/types.d.ts +10 -11
- package/types/components/chart/Chart.d.ts +4 -4
- package/types/components/chart/types.d.ts +3 -3
- package/types/components/chart/useChart.d.ts +5 -5
- package/types/components/container/Container.d.ts +7 -7
- package/types/components/container/types.d.ts +3 -3
- package/types/components/data-item/DataItem.d.ts +23 -22
- package/types/components/data-item/types.d.ts +3 -3
- package/types/components/dialog/Dialog.d.ts +9 -9
- package/types/components/dialog/create.d.ts +2 -2
- package/types/components/dialog/hooks.d.ts +5 -5
- package/types/components/dialog/types.d.ts +4 -4
- package/types/components/dialog-form/DialogForm.d.ts +3 -3
- package/types/components/dialog-form/types.d.ts +3 -3
- package/types/components/field/Field.d.ts +17 -4
- package/types/components/field/editors/CheckboxEditor.d.ts +6 -3
- package/types/components/field/editors/RadioEditor.d.ts +6 -3
- package/types/components/field/editors/SelectEditor.d.ts +6 -3
- package/types/components/field/hooks/useEditor.d.ts +3 -3
- package/types/components/field/types.d.ts +16 -4
- package/types/components/form/Form.d.ts +13 -3
- package/types/components/form/types.d.ts +10 -2
- package/types/components/header/Header.d.ts +2 -2
- package/types/components/header/types.d.ts +4 -3
- package/types/components/icon/Icon.d.ts +2 -2
- package/types/components/index.d.ts +2 -2
- package/types/components/list/List.d.ts +109 -0
- package/types/components/list/index.d.ts +3 -0
- package/types/components/list/types.d.ts +58 -0
- package/types/components/mask/Mask.d.ts +23 -22
- package/types/components/mask/components/Avatar.d.ts +2 -2
- package/types/components/mask/components/Brand.d.ts +5 -2
- package/types/components/mask/components/Content.d.ts +3 -3
- package/types/components/mask/components/Menu.d.ts +6 -3
- package/types/components/mask/components/Sidebar.d.ts +2 -2
- package/types/components/mask/components/SwitchBar.d.ts +5 -2
- package/types/components/mask/components/Tabs.d.ts +4 -4
- package/types/components/mask/components/ThemeSwitch.d.ts +2 -2
- package/types/components/mask/components/Toolbar.d.ts +7 -4
- package/types/components/mask/defineTab.d.ts +1 -1
- package/types/components/mask/hooks/useContent.d.ts +2 -2
- package/types/components/mask/hooks/useHome.d.ts +1 -1
- package/types/components/mask/hooks/useMenus.d.ts +3 -3
- package/types/components/mask/hooks/useSidebar.d.ts +1 -2
- package/types/components/mask/hooks/useTabs.d.ts +4 -4
- package/types/components/mask/types.d.ts +3 -3
- package/types/components/menu/Menu.d.ts +6 -3
- package/types/components/menu/MenuItem.d.ts +3 -3
- package/types/components/menu/types.d.ts +2 -2
- package/types/components/panel/Panel.d.ts +6 -24
- package/types/components/panel/types.d.ts +9 -11
- package/types/components/shared.d.ts +2 -1
- package/types/components/tabs/Tabs.d.ts +3 -3
- package/types/components/tabs/types.d.ts +3 -3
- package/types/components/test/Test.d.ts +244 -0
- package/types/components/test/index.d.ts +3 -0
- package/types/components/test/types.d.ts +41 -0
- package/types/directives/vDraggable.d.ts +2 -2
- package/types/directives/vResizable.d.ts +2 -2
- package/types/hooks/index.d.ts +1 -0
- package/types/hooks/useDisabled.d.ts +1 -1
- package/types/hooks/useIcon.d.ts +3 -3
- package/types/index.d.ts +1 -4
- package/types/install.d.ts +4 -0
- package/types/list.d.ts +1 -1
- package/types/utils/util.d.ts +1 -3
- package/types/version.d.ts +8 -1
- package/cdn/index.js +0 -1
- package/cdn/style.css +0 -1
- package/lib/index.js +0 -3830
- package/lib/style.css +0 -1
- package/types/components/simple-mask/SimpleMask.d.ts +0 -43
- package/types/components/simple-mask/index.d.ts +0 -2
- package/types/components/startup/Startup.d.ts +0 -38
- package/types/components/startup/index.d.ts +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IconParam } from '../';
|
|
2
2
|
import { BaseSize } from '../shared';
|
|
3
|
-
import { DefineComponent, PropType, ComponentOptionsMixin,
|
|
3
|
+
import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
4
4
|
declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
5
5
|
size: {
|
|
6
6
|
type: PropType<BaseSize>;
|
|
@@ -22,7 +22,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
22
22
|
more: {
|
|
23
23
|
type: BooleanConstructor;
|
|
24
24
|
};
|
|
25
|
-
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
25
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
26
26
|
size: {
|
|
27
27
|
type: PropType<BaseSize>;
|
|
28
28
|
default: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import { IconParam } from '../icon';
|
|
3
|
-
import { ComponentPropsType, BaseSize } from '../shared';
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { IconParam } from '../icon';
|
|
3
|
+
import type { ComponentPropsType, BaseSize } from '../shared';
|
|
4
4
|
export declare const headerProps: {
|
|
5
5
|
size: {
|
|
6
6
|
type: PropType<BaseSize>;
|
|
@@ -26,4 +26,5 @@ export declare const headerProps: {
|
|
|
26
26
|
export type HeaderProps = ComponentPropsType<typeof headerProps>;
|
|
27
27
|
export type HeaderEmits = {
|
|
28
28
|
click: [];
|
|
29
|
+
clickIcon: [];
|
|
29
30
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IconSize } from './types';
|
|
2
|
-
import { DefineComponent, PropType, VNode, RendererNode, RendererElement, ComponentOptionsMixin,
|
|
2
|
+
import { DefineComponent, PropType, VNode, RendererNode, RendererElement, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
4
4
|
icon: {
|
|
5
5
|
type: PropType<string | object | VNode<RendererNode, RendererElement, {
|
|
@@ -25,7 +25,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
25
25
|
radius: {
|
|
26
26
|
type: NumberConstructor;
|
|
27
27
|
};
|
|
28
|
-
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
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,8 +1,6 @@
|
|
|
1
1
|
export * from './shared';
|
|
2
|
-
export * from './startup';
|
|
3
2
|
export * from './icon';
|
|
4
3
|
export * from './menu';
|
|
5
|
-
export * from './simple-mask';
|
|
6
4
|
export * from './action';
|
|
7
5
|
export * from './action-bar';
|
|
8
6
|
export * from './container';
|
|
@@ -16,3 +14,5 @@ export * from './dialog-form';
|
|
|
16
14
|
export * from './tabs';
|
|
17
15
|
export * from './data-item';
|
|
18
16
|
export * from './chart';
|
|
17
|
+
export * from './list';
|
|
18
|
+
export * from './test';
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { UseVirtualListItem } from '@vueuse/core';
|
|
2
|
+
import { PaginationProps } from 'element-plus';
|
|
3
|
+
import { DataLoader } from '..';
|
|
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<{
|
|
7
|
+
data: {
|
|
8
|
+
type: PropType<DataLoader<ListData, ListState>>;
|
|
9
|
+
default(): never[];
|
|
10
|
+
};
|
|
11
|
+
itemHeight: {
|
|
12
|
+
type: PropType<number | ((index: number) => number)>;
|
|
13
|
+
};
|
|
14
|
+
width: {
|
|
15
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
height: {
|
|
19
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
pager: {
|
|
23
|
+
type: PropType<boolean | Partial<PaginationProps>>;
|
|
24
|
+
};
|
|
25
|
+
page: {
|
|
26
|
+
type: NumberConstructor;
|
|
27
|
+
default: number;
|
|
28
|
+
};
|
|
29
|
+
pageSize: {
|
|
30
|
+
type: NumberConstructor;
|
|
31
|
+
default: number;
|
|
32
|
+
};
|
|
33
|
+
dataKey: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
};
|
|
36
|
+
infiniteScroll: {
|
|
37
|
+
type: PropType<boolean | ListInfiniteScroll>;
|
|
38
|
+
};
|
|
39
|
+
}, {
|
|
40
|
+
list: Ref<UseVirtualListItem<any>[]>;
|
|
41
|
+
scrollTo: (index: number) => void;
|
|
42
|
+
wrapperRef: Ref<any>;
|
|
43
|
+
loading: Ref<boolean>;
|
|
44
|
+
state: {
|
|
45
|
+
page: number;
|
|
46
|
+
pageSize: number;
|
|
47
|
+
};
|
|
48
|
+
pageCount: ComputedRef<number>;
|
|
49
|
+
nomore: Ref<boolean>;
|
|
50
|
+
data: ShallowRef<ListData>;
|
|
51
|
+
getKey: (item: any) => any;
|
|
52
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
53
|
+
load: (state: ListState) => void;
|
|
54
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
55
|
+
data: {
|
|
56
|
+
type: PropType<DataLoader<ListData, ListState>>;
|
|
57
|
+
default(): never[];
|
|
58
|
+
};
|
|
59
|
+
itemHeight: {
|
|
60
|
+
type: PropType<number | ((index: number) => number)>;
|
|
61
|
+
};
|
|
62
|
+
width: {
|
|
63
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
height: {
|
|
67
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
pager: {
|
|
71
|
+
type: PropType<boolean | Partial<PaginationProps>>;
|
|
72
|
+
};
|
|
73
|
+
page: {
|
|
74
|
+
type: NumberConstructor;
|
|
75
|
+
default: number;
|
|
76
|
+
};
|
|
77
|
+
pageSize: {
|
|
78
|
+
type: NumberConstructor;
|
|
79
|
+
default: number;
|
|
80
|
+
};
|
|
81
|
+
dataKey: {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
};
|
|
84
|
+
infiniteScroll: {
|
|
85
|
+
type: PropType<boolean | ListInfiniteScroll>;
|
|
86
|
+
};
|
|
87
|
+
}>> & {
|
|
88
|
+
onLoad?: ((state: ListState) => any) | undefined;
|
|
89
|
+
}, {
|
|
90
|
+
data: DataLoader<ListData, ListState>;
|
|
91
|
+
width: string | number;
|
|
92
|
+
height: string | number;
|
|
93
|
+
pageSize: number;
|
|
94
|
+
page: number;
|
|
95
|
+
}, {}>, {
|
|
96
|
+
empty?(_: {}): any;
|
|
97
|
+
default?(_: {
|
|
98
|
+
item: any;
|
|
99
|
+
index: number;
|
|
100
|
+
}): any;
|
|
101
|
+
loading?(_: {}): any;
|
|
102
|
+
nomore?(_: {}): any;
|
|
103
|
+
}>;
|
|
104
|
+
export default _default;
|
|
105
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
106
|
+
new (): {
|
|
107
|
+
$slots: S;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { ComponentPropsType, DataLoader } from '../shared';
|
|
3
|
+
import type { PaginationProps } from 'element-plus';
|
|
4
|
+
export interface ListData {
|
|
5
|
+
list: any[];
|
|
6
|
+
total?: number;
|
|
7
|
+
}
|
|
8
|
+
export interface ListState {
|
|
9
|
+
page: number;
|
|
10
|
+
pageSize: number;
|
|
11
|
+
}
|
|
12
|
+
export interface ListInfiniteScroll {
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
delay?: number;
|
|
15
|
+
distance?: number;
|
|
16
|
+
immediate?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare const listProps: {
|
|
19
|
+
data: {
|
|
20
|
+
type: PropType<DataLoader<ListData, ListState>>;
|
|
21
|
+
default(): never[];
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* 设置 itemHeight 即自动开启虚拟滚动
|
|
25
|
+
*/
|
|
26
|
+
itemHeight: {
|
|
27
|
+
type: PropType<number | ((index: number) => number)>;
|
|
28
|
+
};
|
|
29
|
+
width: {
|
|
30
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
height: {
|
|
34
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
pager: {
|
|
38
|
+
type: PropType<boolean | Partial<PaginationProps>>;
|
|
39
|
+
};
|
|
40
|
+
page: {
|
|
41
|
+
type: NumberConstructor;
|
|
42
|
+
default: number;
|
|
43
|
+
};
|
|
44
|
+
pageSize: {
|
|
45
|
+
type: NumberConstructor;
|
|
46
|
+
default: number;
|
|
47
|
+
};
|
|
48
|
+
dataKey: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
};
|
|
51
|
+
infiniteScroll: {
|
|
52
|
+
type: PropType<boolean | ListInfiniteScroll>;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export type ListProps = ComponentPropsType<typeof listProps>;
|
|
56
|
+
export type ListEmits = {
|
|
57
|
+
load: [state: ListState];
|
|
58
|
+
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { BaseSize, BaseType } from '../shared';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
|
3
|
+
import { EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils/index.mjs';
|
|
4
|
+
import { ElTooltipProps, BadgeProps, TooltipTriggerType, ButtonProps } from 'element-plus';
|
|
5
|
+
import { DefineComponent, PropType, ComponentOptionsMixin, ExtractPropTypes, PublicProps } from 'vue';
|
|
6
|
+
import { MenuDataItem, ActionBarItems, IconParam, ActionMode, type ActionMenuItem } from '../';
|
|
7
|
+
import { type MaskTab } from './types';
|
|
7
8
|
declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
8
9
|
logo: {
|
|
9
10
|
type: StringConstructor;
|
|
@@ -80,7 +81,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
80
81
|
};
|
|
81
82
|
dropdown: {
|
|
82
83
|
type: PropType<Partial<ExtractPropTypes<{
|
|
83
|
-
readonly trigger: EpPropFinalized<(new (...args: any[]) => "
|
|
84
|
+
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>;
|
|
84
85
|
readonly effect: {
|
|
85
86
|
readonly default: "light";
|
|
86
87
|
readonly type: PropType<string>;
|
|
@@ -94,8 +95,8 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
94
95
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
95
96
|
__epPropKey: true;
|
|
96
97
|
};
|
|
97
|
-
readonly placement: EpPropFinalized<(new (...args: any[]) =>
|
|
98
|
-
readonly popperOptions: EpPropFinalized<(new (...args: any[]) =>
|
|
98
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => any) | (() => Placement) | ((new (...args: any[]) => any) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
|
99
|
+
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Options) | (() => Options) | ((new (...args: any[]) => Options) | (() => Options))[], unknown, unknown, () => {}, boolean>;
|
|
99
100
|
readonly id: StringConstructor;
|
|
100
101
|
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
101
102
|
readonly splitButton: BooleanConstructor;
|
|
@@ -132,7 +133,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
132
133
|
default: string;
|
|
133
134
|
};
|
|
134
135
|
background: {
|
|
135
|
-
type: PropType<"hover" | "always">;
|
|
136
|
+
type: PropType<"hover" | "always" | "none">;
|
|
136
137
|
default: string;
|
|
137
138
|
};
|
|
138
139
|
circle: {
|
|
@@ -167,7 +168,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
167
168
|
};
|
|
168
169
|
dropdown: {
|
|
169
170
|
type: PropType<Partial<ExtractPropTypes<{
|
|
170
|
-
readonly trigger: EpPropFinalized<(new (...args: any[]) => "
|
|
171
|
+
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>;
|
|
171
172
|
readonly effect: {
|
|
172
173
|
readonly default: "light";
|
|
173
174
|
readonly type: PropType<string>;
|
|
@@ -181,8 +182,8 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
181
182
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
182
183
|
__epPropKey: true;
|
|
183
184
|
};
|
|
184
|
-
readonly placement: EpPropFinalized<(new (...args: any[]) =>
|
|
185
|
-
readonly popperOptions: EpPropFinalized<(new (...args: any[]) =>
|
|
185
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => any) | (() => Placement) | ((new (...args: any[]) => any) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
|
186
|
+
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Options) | (() => Options) | ((new (...args: any[]) => Options) | (() => Options))[], unknown, unknown, () => {}, boolean>;
|
|
186
187
|
readonly id: StringConstructor;
|
|
187
188
|
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
188
189
|
readonly splitButton: BooleanConstructor;
|
|
@@ -219,14 +220,14 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
219
220
|
default: string;
|
|
220
221
|
};
|
|
221
222
|
background: {
|
|
222
|
-
type: PropType<"hover" | "always">;
|
|
223
|
+
type: PropType<"hover" | "always" | "none">;
|
|
223
224
|
default: string;
|
|
224
225
|
};
|
|
225
226
|
circle: {
|
|
226
227
|
type: BooleanConstructor;
|
|
227
228
|
};
|
|
228
229
|
}>>>, item: ActionMenuItem) => void;
|
|
229
|
-
}, string,
|
|
230
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
230
231
|
logo: {
|
|
231
232
|
type: StringConstructor;
|
|
232
233
|
default: string;
|
|
@@ -302,7 +303,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
302
303
|
};
|
|
303
304
|
dropdown: {
|
|
304
305
|
type: PropType<Partial<ExtractPropTypes<{
|
|
305
|
-
readonly trigger: EpPropFinalized<(new (...args: any[]) => "
|
|
306
|
+
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>;
|
|
306
307
|
readonly effect: {
|
|
307
308
|
readonly default: "light";
|
|
308
309
|
readonly type: PropType<string>;
|
|
@@ -316,8 +317,8 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
316
317
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
317
318
|
__epPropKey: true;
|
|
318
319
|
};
|
|
319
|
-
readonly placement: EpPropFinalized<(new (...args: any[]) =>
|
|
320
|
-
readonly popperOptions: EpPropFinalized<(new (...args: any[]) =>
|
|
320
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => any) | (() => Placement) | ((new (...args: any[]) => any) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
|
321
|
+
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Options) | (() => Options) | ((new (...args: any[]) => Options) | (() => Options))[], unknown, unknown, () => {}, boolean>;
|
|
321
322
|
readonly id: StringConstructor;
|
|
322
323
|
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
323
324
|
readonly splitButton: BooleanConstructor;
|
|
@@ -354,7 +355,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
354
355
|
default: string;
|
|
355
356
|
};
|
|
356
357
|
background: {
|
|
357
|
-
type: PropType<"hover" | "always">;
|
|
358
|
+
type: PropType<"hover" | "always" | "none">;
|
|
358
359
|
default: string;
|
|
359
360
|
};
|
|
360
361
|
circle: {
|
|
@@ -389,7 +390,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
389
390
|
};
|
|
390
391
|
dropdown: {
|
|
391
392
|
type: PropType<Partial<ExtractPropTypes<{
|
|
392
|
-
readonly trigger: EpPropFinalized<(new (...args: any[]) => "
|
|
393
|
+
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>;
|
|
393
394
|
readonly effect: {
|
|
394
395
|
readonly default: "light";
|
|
395
396
|
readonly type: PropType<string>;
|
|
@@ -403,8 +404,8 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
403
404
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
404
405
|
__epPropKey: true;
|
|
405
406
|
};
|
|
406
|
-
readonly placement: EpPropFinalized<(new (...args: any[]) =>
|
|
407
|
-
readonly popperOptions: EpPropFinalized<(new (...args: any[]) =>
|
|
407
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => any) | (() => Placement) | ((new (...args: any[]) => any) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
|
408
|
+
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Options) | (() => Options) | ((new (...args: any[]) => Options) | (() => Options))[], unknown, unknown, () => {}, boolean>;
|
|
408
409
|
readonly id: StringConstructor;
|
|
409
410
|
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
410
411
|
readonly splitButton: BooleanConstructor;
|
|
@@ -441,7 +442,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
441
442
|
default: string;
|
|
442
443
|
};
|
|
443
444
|
background: {
|
|
444
|
-
type: PropType<"hover" | "always">;
|
|
445
|
+
type: PropType<"hover" | "always" | "none">;
|
|
445
446
|
default: string;
|
|
446
447
|
};
|
|
447
448
|
circle: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin,
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
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,
|
|
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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin,
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
export interface Props {
|
|
3
3
|
collapsed?: boolean;
|
|
4
4
|
logo?: string;
|
|
@@ -7,7 +7,7 @@ export interface Props {
|
|
|
7
7
|
}
|
|
8
8
|
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
9
9
|
collapsed: boolean;
|
|
10
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
10
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
11
11
|
collapsed: boolean;
|
|
12
12
|
}>>>, {
|
|
13
13
|
collapsed: boolean;
|
|
@@ -30,6 +30,9 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
30
30
|
default: D[K];
|
|
31
31
|
}> : P[K];
|
|
32
32
|
};
|
|
33
|
+
type __VLS_Prettify<T> = {
|
|
34
|
+
[K in keyof T]: T[K];
|
|
35
|
+
} & {};
|
|
33
36
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
34
37
|
new (): {
|
|
35
38
|
$slots: S;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin,
|
|
2
|
-
import { RouteLocationNormalizedLoaded } from 'vue-router';
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { type RouteLocationNormalizedLoaded } from 'vue-router';
|
|
3
3
|
export interface Props {
|
|
4
4
|
createView: (module: any, route: RouteLocationNormalizedLoaded) => any;
|
|
5
5
|
exclude: string[];
|
|
6
6
|
}
|
|
7
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
7
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>, {
|
|
8
8
|
default?(_: {}): any;
|
|
9
9
|
}>;
|
|
10
10
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin,
|
|
2
|
-
import { MenuDataItem } from '../../';
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { type MenuDataItem } from '../../';
|
|
3
3
|
export interface Props {
|
|
4
4
|
collapse?: boolean;
|
|
5
5
|
keyword?: string;
|
|
@@ -13,7 +13,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
13
13
|
collapse: boolean;
|
|
14
14
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
15
15
|
select: (item: MenuDataItem) => void;
|
|
16
|
-
}, string,
|
|
16
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
17
17
|
collapse: boolean;
|
|
18
18
|
}>>> & {
|
|
19
19
|
onSelect?: ((item: MenuDataItem) => any) | undefined;
|
|
@@ -35,3 +35,6 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
35
35
|
default: D[K];
|
|
36
36
|
}> : P[K];
|
|
37
37
|
};
|
|
38
|
+
type __VLS_Prettify<T> = {
|
|
39
|
+
[K in keyof T]: T[K];
|
|
40
|
+
} & {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin,
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
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,
|
|
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
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin,
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
export interface Props {
|
|
3
3
|
collasped?: boolean;
|
|
4
4
|
favorite?: boolean;
|
|
@@ -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,
|
|
14
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
15
15
|
collasped: boolean;
|
|
16
16
|
favorite: boolean;
|
|
17
17
|
}>>> & {
|
|
@@ -37,3 +37,6 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
37
37
|
default: D[K];
|
|
38
38
|
}> : P[K];
|
|
39
39
|
};
|
|
40
|
+
type __VLS_Prettify<T> = {
|
|
41
|
+
[K in keyof T]: T[K];
|
|
42
|
+
} & {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin,
|
|
2
|
-
import { MenuDataItem } from '../../';
|
|
3
|
-
import { MaskTab } from '../types';
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { type MenuDataItem } from '../../';
|
|
3
|
+
import { type MaskTab } from '../types';
|
|
4
4
|
export interface Props {
|
|
5
5
|
tabs: MaskTab[];
|
|
6
6
|
home: MaskTab;
|
|
@@ -14,7 +14,7 @@ declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}
|
|
|
14
14
|
remove: (tab: MaskTab) => void;
|
|
15
15
|
refresh: (tab: MaskTab) => void;
|
|
16
16
|
toggleFavorite: (item: MenuDataItem) => void;
|
|
17
|
-
}, string,
|
|
17
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
|
|
18
18
|
onClick?: ((tab: MaskTab) => any) | undefined;
|
|
19
19
|
onDialog?: ((tab: MaskTab) => any) | undefined;
|
|
20
20
|
onRemove?: ((tab: MaskTab) => any) | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin,
|
|
2
|
-
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
|
|
3
3
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin,
|
|
2
|
-
import { ActionBarItems } from '../../';
|
|
3
|
-
import { MaskTab } from '../types';
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { type ActionBarItems } from '../../';
|
|
3
|
+
import type { MaskTab } from '../types';
|
|
4
4
|
export interface Props {
|
|
5
5
|
tabs: MaskTab[];
|
|
6
6
|
actions?: ActionBarItems;
|
|
@@ -15,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
15
15
|
closeAllTabs: (...args: any[]) => void;
|
|
16
16
|
closeTab: (...args: any[]) => void;
|
|
17
17
|
clickTab: (...args: any[]) => void;
|
|
18
|
-
}, string,
|
|
18
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
19
19
|
tabs: () => never[];
|
|
20
20
|
}>>> & {
|
|
21
21
|
onActionClick?: ((...args: any[]) => any) | undefined;
|
|
@@ -44,6 +44,9 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
44
44
|
default: D[K];
|
|
45
45
|
}> : P[K];
|
|
46
46
|
};
|
|
47
|
+
type __VLS_Prettify<T> = {
|
|
48
|
+
[K in keyof T]: T[K];
|
|
49
|
+
} & {};
|
|
47
50
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
48
51
|
new (): {
|
|
49
52
|
$slots: S;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
|
-
import { MaskTab, TabCreator } from './types';
|
|
2
|
+
import { type MaskTab, type TabCreator } from './types';
|
|
3
3
|
export declare function defineTab(options?: Partial<MaskTab> | TabCreator): {
|
|
4
4
|
tab: ComputedRef<MaskTab | null>;
|
|
5
5
|
mask: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VNode, RendererNode, RendererElement, Ref } from 'vue';
|
|
2
|
-
import { RouteLocationNormalizedLoaded } from 'vue-router';
|
|
3
|
-
import { MaskTab } from '../types';
|
|
2
|
+
import { type RouteLocationNormalizedLoaded } from 'vue-router';
|
|
3
|
+
import type { MaskTab } from '../types';
|
|
4
4
|
import { useTabs } from './useTabs';
|
|
5
5
|
export type UseContentOptions = ReturnType<typeof useTabs>;
|
|
6
6
|
export declare function useContent(options: Partial<UseContentOptions>): {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EpPropMergeType } from 'element-plus/es/utils';
|
|
1
|
+
import { EpPropMergeType } from 'element-plus/es/utils/index.mjs';
|
|
2
2
|
import { ShallowRef, ComputedRef, Ref, DefineComponent } from 'vue';
|
|
3
|
-
import { MaskProps, MaskEmitsFn } from '../types';
|
|
4
|
-
import { MenuDataItem } from '../../';
|
|
3
|
+
import type { MaskProps, MaskEmitsFn } from '../types';
|
|
4
|
+
import { type MenuDataItem } from '../../';
|
|
5
5
|
export declare function useMenus(props: MaskProps, emit: MaskEmitsFn): {
|
|
6
6
|
menus: ShallowRef<MenuDataItem[]>;
|
|
7
7
|
favorites: ShallowRef<MenuDataItem[]>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ComputedRef, Ref } from 'vue';
|
|
2
|
-
import { MaskProps, MaskEmitsFn, MaskTab } from '../types';
|
|
3
|
-
import { MenuDataItem } from '../../';
|
|
4
|
-
export declare function useTabs(
|
|
1
|
+
import { type ComputedRef, type Ref } from 'vue';
|
|
2
|
+
import { type MaskProps, type MaskEmitsFn, type MaskTab } from '../types';
|
|
3
|
+
import type { MenuDataItem } from '../../';
|
|
4
|
+
export declare function useTabs(_props: MaskProps, _emit: MaskEmitsFn, menus: ComputedRef<MenuDataItem[]>, active: Ref<MenuDataItem | null>, home: ComputedRef<MaskTab>): {
|
|
5
5
|
tabRef: Ref<any>;
|
|
6
6
|
tabs: Ref<MaskTab[]>;
|
|
7
7
|
showTabs: ComputedRef<MaskTab[]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PropType, InjectionKey, DefineComponent } from 'vue';
|
|
2
|
-
import { MenuDataItem, ActionBarItems, ActionProps, ActionMenuItem, ComponentPropsType, DialogProps } from '../';
|
|
3
|
-
import { Emits } from '../shared';
|
|
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
4
|
import type Mask from "./Mask";
|
|
5
5
|
export declare const TAB_ITEM_WIDTH = 140;
|
|
6
6
|
export declare const maskProps: {
|