@vtj/ui 0.10.4 → 0.10.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +180 -180
- package/dist/index.umd.js +3 -3
- package/package.json +3 -3
- package/types/components/action/Action.d.ts +3 -10
- package/types/components/attachment/Attachment.d.ts +274 -805
- package/types/components/container/Container.d.ts +178 -15
- package/types/components/data-item/DataItem.d.ts +517 -18
- package/types/components/dialog/Dialog.d.ts +372 -1143
- package/types/components/dialog-form/DialogForm.d.ts +104 -3049
- package/types/components/dialog-grid/DialogGrid.d.ts +69 -4907
- package/types/components/field/Field.d.ts +222 -353
- package/types/components/field/editors/SelectEditor.d.ts +21 -12
- package/types/components/form/Form.d.ts +116 -389
- package/types/components/grid/Grid.d.ts +787 -57
- package/types/components/grid/renderers/components/DateEdit.d.ts +2 -255
- package/types/components/grid/renderers/components/DateFilter.d.ts +1 -1
- package/types/components/grid/renderers/components/GridEdit.d.ts +2 -410
- package/types/components/grid/renderers/components/InputFilter.d.ts +1 -1
- package/types/components/grid/renderers/components/NumberFilter.d.ts +1 -1
- package/types/components/grid/renderers/components/PickerEdit.d.ts +2 -1926
- package/types/components/grid/renderers/components/SelectFilter.d.ts +1 -1
- package/types/components/grid-editor/GridEditor.d.ts +2 -375
- package/types/components/header/Header.d.ts +76 -14
- package/types/components/import-button/ImportButton.d.ts +47 -10
- package/types/components/list/List.d.ts +155 -30
- package/types/components/mask/Mask.d.ts +546 -562
- package/types/components/mask/components/Avatar.d.ts +16 -11
- package/types/components/mask/components/Brand.d.ts +17 -12
- package/types/components/mask/components/Content.d.ts +13 -12
- package/types/components/mask/components/Sidebar.d.ts +15 -12
- package/types/components/mask/components/Tabs.d.ts +2 -255
- package/types/components/mask/components/ThemeSwitch.d.ts +1 -1
- package/types/components/mask/components/Toolbar.d.ts +55 -13
- package/types/components/panel/Panel.d.ts +124 -521
- package/types/components/picker/Dialog.d.ts +2 -1291
- package/types/components/picker/Picker.d.ts +2 -1730
- package/types/components/qr-code/QrCode.d.ts +35 -13
- package/types/components/query-form/QueryForm.d.ts +418 -1105
- package/types/components/startup/Startup.d.ts +1 -1
- package/types/components/tabs/Tabs.d.ts +297 -53
- package/types/components/test/Test.d.ts +268 -41
- package/types/version.d.ts +2 -2
- package/types/components/icon/Icon.d.ts +0 -74
@@ -1,10 +1,16 @@
|
|
1
|
-
import { ActionMenuItem } from '../';
|
1
|
+
import { XContainer, ActionProps, ActionMenuItem } from '../';
|
2
|
+
import { default as Sidebar } from './components/Sidebar';
|
3
|
+
import { default as SwitchBar } from './components/SwitchBar';
|
4
|
+
import { default as Brand } from './components/Brand';
|
5
|
+
import { default as Menu } from './components/Menu';
|
6
|
+
import { default as Tabs } from './components/Tabs';
|
7
|
+
import { default as Toolbar } from './components/Toolbar';
|
8
|
+
import { default as Avatar } from './components/Avatar';
|
9
|
+
import { default as Content } from './components/Content';
|
2
10
|
import { MaskTab } from './types';
|
3
|
-
import {
|
4
|
-
import { Props } from './components/Tabs';
|
11
|
+
import { ComputedRef, Ref, ShallowRef, VNode, RendererNode, RendererElement, DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
5
12
|
import { MenuDataItem } from '../menu';
|
6
|
-
import {
|
7
|
-
import { OnCleanup } from '@vue/reactivity';
|
13
|
+
import { RouteLocationNormalizedLoaded } from 'vue-router';
|
8
14
|
import { ActionBarItems } from '../action-bar';
|
9
15
|
import { IconParam } from '../icon';
|
10
16
|
import { ActionMode } from '../action';
|
@@ -12,295 +18,551 @@ import { ElTooltipProps, BadgeProps, TooltipTriggerType, PopperEffect, ButtonPro
|
|
12
18
|
import { EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils/index.mjs';
|
13
19
|
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
14
20
|
import { BaseSize, BaseType } from '../shared';
|
15
|
-
declare
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
+
declare const home: ComputedRef<MaskTab>;
|
22
|
+
declare const collapsed: Ref<boolean, boolean>, keyword: Ref<string, string>, favorite: Ref<boolean, boolean>;
|
23
|
+
declare const menus: ShallowRef< MenuDataItem[], MenuDataItem[]>, favorites: ShallowRef< MenuDataItem[], MenuDataItem[]>, flatMenus: ComputedRef< MenuDataItem[]>, active: Ref< MenuDataItem | null, MenuDataItem | null>, select: (id: string | number | MenuDataItem) => void, toggleFavorite: (item: MenuDataItem) => void;
|
24
|
+
declare const tabRef: Ref<any, any>, showTabs: ComputedRef<MaskTab[]>, currentTab: ComputedRef<MaskTab | undefined>, changeTab: (tab: MaskTab) => void, dropdownTabs: ComputedRef<MaskTab[]>, moveToShow: (tab: MaskTab) => void;
|
25
|
+
declare const createView: (module: any, route: RouteLocationNormalizedLoaded) => any, openDialog: (tab: MaskTab) => Promise<{
|
26
|
+
vnode: VNode<RendererNode, RendererElement, {
|
27
|
+
[key: string]: any;
|
28
|
+
}>;
|
29
|
+
destroy: () => void;
|
30
|
+
}>, refresh: (tab: MaskTab) => Promise<void>, exclude: Ref<string[], string[]>;
|
31
|
+
declare const onRemoveTab: (tab: MaskTab) => Promise<void>;
|
32
|
+
declare const onRemoveAllTabs: () => Promise<void>;
|
33
|
+
declare const onRemoveOtherTabs: () => Promise<void>;
|
34
|
+
declare const onActionClick: (action: ActionProps) => void;
|
35
|
+
declare const onActionCommand: (action: ActionProps, item: ActionMenuItem) => void;
|
36
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
37
|
+
declare var __VLS_58: {}, __VLS_63: {}, __VLS_68: {};
|
38
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
39
|
+
user?: (props: typeof __VLS_58) => any;
|
40
|
+
} & {
|
41
|
+
default?: (props: typeof __VLS_63) => any;
|
42
|
+
} & {
|
43
|
+
default?: (props: typeof __VLS_68) => any;
|
44
|
+
}>;
|
45
|
+
declare const __VLS_self: DefineComponent<ExtractPropTypes<{
|
46
|
+
logo: {
|
47
|
+
type: StringConstructor;
|
48
|
+
default: string;
|
21
49
|
};
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
default: string;
|
144
|
-
};
|
145
|
-
overflow: {
|
146
|
-
type: PropType<"auto" | "hidden" | "visible">;
|
147
|
-
};
|
148
|
-
padding: {
|
149
|
-
type: BooleanConstructor;
|
150
|
-
default: boolean;
|
151
|
-
};
|
152
|
-
gap: {
|
153
|
-
type: BooleanConstructor;
|
154
|
-
};
|
155
|
-
autoPointer: {
|
156
|
-
type: BooleanConstructor;
|
157
|
-
};
|
158
|
-
}>> & Readonly<{}>, {
|
159
|
-
$vtjEl: ComputedRef<any>;
|
160
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
161
|
-
padding: boolean;
|
162
|
-
tag: string;
|
163
|
-
wrap: ContainerWrap;
|
164
|
-
fit: boolean;
|
165
|
-
flex: boolean;
|
166
|
-
inline: boolean;
|
167
|
-
direction: ContainerDirection;
|
168
|
-
justify: ContainerJustifyContent;
|
169
|
-
align: ContainerAlignItems;
|
170
|
-
alignContent: ContainerAlignContent;
|
171
|
-
grow: boolean;
|
172
|
-
shrink: boolean;
|
173
|
-
alignSelf: "auto" | ContainerAlignItems;
|
174
|
-
gap: boolean;
|
175
|
-
autoPointer: boolean;
|
176
|
-
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
177
|
-
beforeCreate?: (() => void) | (() => void)[];
|
178
|
-
created?: (() => void) | (() => void)[];
|
179
|
-
beforeMount?: (() => void) | (() => void)[];
|
180
|
-
mounted?: (() => void) | (() => void)[];
|
181
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
182
|
-
updated?: (() => void) | (() => void)[];
|
183
|
-
activated?: (() => void) | (() => void)[];
|
184
|
-
deactivated?: (() => void) | (() => void)[];
|
185
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
186
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
187
|
-
destroyed?: (() => void) | (() => void)[];
|
188
|
-
unmounted?: (() => void) | (() => void)[];
|
189
|
-
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
190
|
-
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
191
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
192
|
-
};
|
193
|
-
$forceUpdate: () => void;
|
194
|
-
$nextTick: nextTick;
|
195
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
196
|
-
} & Readonly<{
|
197
|
-
padding: boolean;
|
198
|
-
tag: string;
|
199
|
-
wrap: ContainerWrap;
|
200
|
-
fit: boolean;
|
201
|
-
flex: boolean;
|
202
|
-
inline: boolean;
|
203
|
-
direction: ContainerDirection;
|
204
|
-
justify: ContainerJustifyContent;
|
205
|
-
align: ContainerAlignItems;
|
206
|
-
alignContent: ContainerAlignContent;
|
207
|
-
grow: boolean;
|
208
|
-
shrink: boolean;
|
209
|
-
alignSelf: "auto" | ContainerAlignItems;
|
210
|
-
gap: boolean;
|
211
|
-
autoPointer: boolean;
|
212
|
-
}> & Omit<Readonly< ExtractPropTypes<{
|
213
|
-
tag: {
|
214
|
-
type: StringConstructor;
|
215
|
-
default: string;
|
216
|
-
};
|
217
|
-
fit: {
|
218
|
-
type: BooleanConstructor;
|
219
|
-
default: boolean;
|
220
|
-
};
|
221
|
-
width: {
|
222
|
-
type: (StringConstructor | NumberConstructor)[];
|
223
|
-
};
|
224
|
-
height: {
|
225
|
-
type: (StringConstructor | NumberConstructor)[];
|
226
|
-
};
|
227
|
-
flex: {
|
228
|
-
type: BooleanConstructor;
|
229
|
-
default: boolean;
|
230
|
-
};
|
231
|
-
inline: {
|
232
|
-
type: BooleanConstructor;
|
233
|
-
};
|
234
|
-
direction: {
|
235
|
-
type: PropType<ContainerDirection>;
|
236
|
-
default: string;
|
237
|
-
};
|
238
|
-
wrap: {
|
239
|
-
type: PropType<ContainerWrap>;
|
240
|
-
default: string;
|
50
|
+
title: {
|
51
|
+
type: StringConstructor;
|
52
|
+
default: string;
|
53
|
+
};
|
54
|
+
menus: {
|
55
|
+
type: PropType< MenuDataItem[] | (() => Promise< MenuDataItem[]> | MenuDataItem[])>;
|
56
|
+
default(): never[];
|
57
|
+
};
|
58
|
+
favorites: {
|
59
|
+
type: PropType< MenuDataItem[] | (() => Promise< MenuDataItem[]> | MenuDataItem[])>;
|
60
|
+
default(): never[];
|
61
|
+
};
|
62
|
+
menuAdapter: {
|
63
|
+
type: PropType<(menu: MenuDataItem) => MenuDataItem>;
|
64
|
+
};
|
65
|
+
home: {
|
66
|
+
type: PropType<string | MaskTab>;
|
67
|
+
default: string;
|
68
|
+
};
|
69
|
+
tabs: {
|
70
|
+
type: NumberConstructor;
|
71
|
+
default: number;
|
72
|
+
};
|
73
|
+
actions: {
|
74
|
+
type: PropType<ActionBarItems>;
|
75
|
+
};
|
76
|
+
avatar: {
|
77
|
+
type: StringConstructor;
|
78
|
+
};
|
79
|
+
theme: {
|
80
|
+
type: BooleanConstructor;
|
81
|
+
};
|
82
|
+
disabled: {
|
83
|
+
type: BooleanConstructor;
|
84
|
+
};
|
85
|
+
addFavorite: {
|
86
|
+
type: PropType<(menu: MenuDataItem) => void>;
|
87
|
+
};
|
88
|
+
removeFavorite: {
|
89
|
+
type: PropType<(menu: MenuDataItem) => void>;
|
90
|
+
};
|
91
|
+
userCardWidth: {
|
92
|
+
type: NumberConstructor;
|
93
|
+
default: number;
|
94
|
+
};
|
95
|
+
pure: {
|
96
|
+
type: BooleanConstructor;
|
97
|
+
};
|
98
|
+
}>, {
|
99
|
+
XContainer: typeof XContainer;
|
100
|
+
Sidebar: typeof Sidebar;
|
101
|
+
SwitchBar: typeof SwitchBar;
|
102
|
+
Brand: typeof Brand;
|
103
|
+
Menu: typeof Menu;
|
104
|
+
Tabs: typeof Tabs;
|
105
|
+
Toolbar: typeof Toolbar;
|
106
|
+
Avatar: typeof Avatar;
|
107
|
+
Content: typeof Content;
|
108
|
+
home: typeof home;
|
109
|
+
collapsed: typeof collapsed;
|
110
|
+
keyword: typeof keyword;
|
111
|
+
favorite: typeof favorite;
|
112
|
+
menus: typeof menus;
|
113
|
+
favorites: typeof favorites;
|
114
|
+
flatMenus: typeof flatMenus;
|
115
|
+
active: typeof active;
|
116
|
+
select: typeof select;
|
117
|
+
toggleFavorite: typeof toggleFavorite;
|
118
|
+
tabRef: typeof tabRef;
|
119
|
+
showTabs: typeof showTabs;
|
120
|
+
currentTab: typeof currentTab;
|
121
|
+
changeTab: typeof changeTab;
|
122
|
+
dropdownTabs: typeof dropdownTabs;
|
123
|
+
moveToShow: typeof moveToShow;
|
124
|
+
createView: typeof createView;
|
125
|
+
openDialog: typeof openDialog;
|
126
|
+
refresh: typeof refresh;
|
127
|
+
exclude: typeof exclude;
|
128
|
+
onRemoveTab: typeof onRemoveTab;
|
129
|
+
onRemoveAllTabs: typeof onRemoveAllTabs;
|
130
|
+
onRemoveOtherTabs: typeof onRemoveOtherTabs;
|
131
|
+
onActionClick: typeof onActionClick;
|
132
|
+
onActionCommand: typeof onActionCommand;
|
133
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
134
|
+
select: (menu: MenuDataItem) => any;
|
135
|
+
actionClick: (action: Readonly<Partial< ExtractPropTypes<{
|
136
|
+
name: {
|
137
|
+
type: StringConstructor;
|
138
|
+
};
|
139
|
+
label: {
|
140
|
+
type: StringConstructor;
|
141
|
+
};
|
142
|
+
value: {
|
143
|
+
type: PropType<unknown>;
|
144
|
+
};
|
145
|
+
icon: {
|
146
|
+
type: PropType<IconParam>;
|
147
|
+
};
|
148
|
+
mode: {
|
149
|
+
type: PropType<ActionMode>;
|
150
|
+
default: string;
|
151
|
+
};
|
152
|
+
menus: {
|
153
|
+
type: PropType<ActionMenuItem[]>;
|
154
|
+
};
|
155
|
+
tooltip: {
|
156
|
+
type: PropType<string | Partial< ElTooltipProps>>;
|
157
|
+
};
|
158
|
+
badge: {
|
159
|
+
type: PropType<string | number | Partial< BadgeProps>>;
|
160
|
+
};
|
161
|
+
dropdown: {
|
162
|
+
type: PropType<Partial< ExtractPropTypes<{
|
163
|
+
readonly trigger: EpPropFinalized<(new (...args: any[]) => "click" | "contextmenu" | "focus" | "hover" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => "click" | "contextmenu" | "focus" | "hover" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
|
164
|
+
readonly triggerKeys: EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => string[], boolean>;
|
165
|
+
readonly effect: {
|
166
|
+
readonly default: "light";
|
167
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>>;
|
168
|
+
readonly required: false;
|
169
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
170
|
+
readonly __epPropKey: true;
|
241
171
|
};
|
242
|
-
|
243
|
-
type: PropType<
|
244
|
-
|
172
|
+
readonly type: {
|
173
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger") | (() => EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown>) | ((new (...args: any[]) => "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger") | (() => EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown>))[], unknown, unknown>>;
|
174
|
+
readonly required: false;
|
175
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
176
|
+
__epPropKey: true;
|
245
177
|
};
|
246
|
-
|
247
|
-
|
248
|
-
|
178
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | ((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
179
|
+
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
|
180
|
+
readonly id: StringConstructor;
|
181
|
+
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
182
|
+
readonly splitButton: BooleanConstructor;
|
183
|
+
readonly hideOnClick: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
184
|
+
readonly loop: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
185
|
+
readonly showTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
186
|
+
readonly hideTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
187
|
+
readonly tabindex: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
188
|
+
readonly maxHeight: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
|
189
|
+
readonly popperClass: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
190
|
+
readonly disabled: BooleanConstructor;
|
191
|
+
readonly role: EpPropFinalized<StringConstructor, unknown, unknown, "menu", boolean>;
|
192
|
+
readonly buttonProps: {
|
193
|
+
readonly type: PropType<ButtonProps>;
|
194
|
+
readonly required: false;
|
195
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
196
|
+
__epPropKey: true;
|
249
197
|
};
|
250
|
-
|
251
|
-
|
252
|
-
|
198
|
+
readonly teleported: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
199
|
+
readonly persistent: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
200
|
+
}>>>;
|
201
|
+
};
|
202
|
+
button: {
|
203
|
+
type: PropType<Partial< ButtonProps>>;
|
204
|
+
};
|
205
|
+
disabled: {
|
206
|
+
type: PropType<boolean | (() => boolean)>;
|
207
|
+
};
|
208
|
+
size: {
|
209
|
+
type: PropType<BaseSize>;
|
210
|
+
default: string;
|
211
|
+
};
|
212
|
+
type: {
|
213
|
+
type: PropType<BaseType>;
|
214
|
+
};
|
215
|
+
background: {
|
216
|
+
type: PropType<"always" | "hover" | "none">;
|
217
|
+
default: string;
|
218
|
+
};
|
219
|
+
circle: {
|
220
|
+
type: BooleanConstructor;
|
221
|
+
};
|
222
|
+
draggable: {
|
223
|
+
type: BooleanConstructor;
|
224
|
+
};
|
225
|
+
}>>>) => any;
|
226
|
+
actionCommand: (action: Readonly<Partial< ExtractPropTypes<{
|
227
|
+
name: {
|
228
|
+
type: StringConstructor;
|
229
|
+
};
|
230
|
+
label: {
|
231
|
+
type: StringConstructor;
|
232
|
+
};
|
233
|
+
value: {
|
234
|
+
type: PropType<unknown>;
|
235
|
+
};
|
236
|
+
icon: {
|
237
|
+
type: PropType<IconParam>;
|
238
|
+
};
|
239
|
+
mode: {
|
240
|
+
type: PropType<ActionMode>;
|
241
|
+
default: string;
|
242
|
+
};
|
243
|
+
menus: {
|
244
|
+
type: PropType<ActionMenuItem[]>;
|
245
|
+
};
|
246
|
+
tooltip: {
|
247
|
+
type: PropType<string | Partial< ElTooltipProps>>;
|
248
|
+
};
|
249
|
+
badge: {
|
250
|
+
type: PropType<string | number | Partial< BadgeProps>>;
|
251
|
+
};
|
252
|
+
dropdown: {
|
253
|
+
type: PropType<Partial< ExtractPropTypes<{
|
254
|
+
readonly trigger: EpPropFinalized<(new (...args: any[]) => "click" | "contextmenu" | "focus" | "hover" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => "click" | "contextmenu" | "focus" | "hover" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
|
255
|
+
readonly triggerKeys: EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => string[], boolean>;
|
256
|
+
readonly effect: {
|
257
|
+
readonly default: "light";
|
258
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>>;
|
259
|
+
readonly required: false;
|
260
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
261
|
+
readonly __epPropKey: true;
|
253
262
|
};
|
254
|
-
|
255
|
-
type:
|
256
|
-
|
263
|
+
readonly type: {
|
264
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger") | (() => EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown>) | ((new (...args: any[]) => "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger") | (() => EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown>))[], unknown, unknown>>;
|
265
|
+
readonly required: false;
|
266
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
267
|
+
__epPropKey: true;
|
257
268
|
};
|
258
|
-
|
259
|
-
|
260
|
-
|
269
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | ((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
270
|
+
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
|
271
|
+
readonly id: StringConstructor;
|
272
|
+
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
273
|
+
readonly splitButton: BooleanConstructor;
|
274
|
+
readonly hideOnClick: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
275
|
+
readonly loop: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
276
|
+
readonly showTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
277
|
+
readonly hideTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
278
|
+
readonly tabindex: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
279
|
+
readonly maxHeight: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
|
280
|
+
readonly popperClass: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
281
|
+
readonly disabled: BooleanConstructor;
|
282
|
+
readonly role: EpPropFinalized<StringConstructor, unknown, unknown, "menu", boolean>;
|
283
|
+
readonly buttonProps: {
|
284
|
+
readonly type: PropType<ButtonProps>;
|
285
|
+
readonly required: false;
|
286
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
287
|
+
__epPropKey: true;
|
261
288
|
};
|
262
|
-
|
263
|
-
|
264
|
-
|
289
|
+
readonly teleported: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
290
|
+
readonly persistent: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
291
|
+
}>>>;
|
292
|
+
};
|
293
|
+
button: {
|
294
|
+
type: PropType<Partial< ButtonProps>>;
|
295
|
+
};
|
296
|
+
disabled: {
|
297
|
+
type: PropType<boolean | (() => boolean)>;
|
298
|
+
};
|
299
|
+
size: {
|
300
|
+
type: PropType<BaseSize>;
|
301
|
+
default: string;
|
302
|
+
};
|
303
|
+
type: {
|
304
|
+
type: PropType<BaseType>;
|
305
|
+
};
|
306
|
+
background: {
|
307
|
+
type: PropType<"always" | "hover" | "none">;
|
308
|
+
default: string;
|
309
|
+
};
|
310
|
+
circle: {
|
311
|
+
type: BooleanConstructor;
|
312
|
+
};
|
313
|
+
draggable: {
|
314
|
+
type: BooleanConstructor;
|
315
|
+
};
|
316
|
+
}>>>, item: ActionMenuItem) => any;
|
317
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
318
|
+
logo: {
|
319
|
+
type: StringConstructor;
|
320
|
+
default: string;
|
321
|
+
};
|
322
|
+
title: {
|
323
|
+
type: StringConstructor;
|
324
|
+
default: string;
|
325
|
+
};
|
326
|
+
menus: {
|
327
|
+
type: PropType< MenuDataItem[] | (() => Promise< MenuDataItem[]> | MenuDataItem[])>;
|
328
|
+
default(): never[];
|
329
|
+
};
|
330
|
+
favorites: {
|
331
|
+
type: PropType< MenuDataItem[] | (() => Promise< MenuDataItem[]> | MenuDataItem[])>;
|
332
|
+
default(): never[];
|
333
|
+
};
|
334
|
+
menuAdapter: {
|
335
|
+
type: PropType<(menu: MenuDataItem) => MenuDataItem>;
|
336
|
+
};
|
337
|
+
home: {
|
338
|
+
type: PropType<string | MaskTab>;
|
339
|
+
default: string;
|
340
|
+
};
|
341
|
+
tabs: {
|
342
|
+
type: NumberConstructor;
|
343
|
+
default: number;
|
344
|
+
};
|
345
|
+
actions: {
|
346
|
+
type: PropType<ActionBarItems>;
|
347
|
+
};
|
348
|
+
avatar: {
|
349
|
+
type: StringConstructor;
|
350
|
+
};
|
351
|
+
theme: {
|
352
|
+
type: BooleanConstructor;
|
353
|
+
};
|
354
|
+
disabled: {
|
355
|
+
type: BooleanConstructor;
|
356
|
+
};
|
357
|
+
addFavorite: {
|
358
|
+
type: PropType<(menu: MenuDataItem) => void>;
|
359
|
+
};
|
360
|
+
removeFavorite: {
|
361
|
+
type: PropType<(menu: MenuDataItem) => void>;
|
362
|
+
};
|
363
|
+
userCardWidth: {
|
364
|
+
type: NumberConstructor;
|
365
|
+
default: number;
|
366
|
+
};
|
367
|
+
pure: {
|
368
|
+
type: BooleanConstructor;
|
369
|
+
};
|
370
|
+
}>> & Readonly<{
|
371
|
+
onSelect?: ((menu: MenuDataItem) => any) | undefined;
|
372
|
+
onActionClick?: ((action: Readonly<Partial< ExtractPropTypes<{
|
373
|
+
name: {
|
374
|
+
type: StringConstructor;
|
375
|
+
};
|
376
|
+
label: {
|
377
|
+
type: StringConstructor;
|
378
|
+
};
|
379
|
+
value: {
|
380
|
+
type: PropType<unknown>;
|
381
|
+
};
|
382
|
+
icon: {
|
383
|
+
type: PropType<IconParam>;
|
384
|
+
};
|
385
|
+
mode: {
|
386
|
+
type: PropType<ActionMode>;
|
387
|
+
default: string;
|
388
|
+
};
|
389
|
+
menus: {
|
390
|
+
type: PropType<ActionMenuItem[]>;
|
391
|
+
};
|
392
|
+
tooltip: {
|
393
|
+
type: PropType<string | Partial< ElTooltipProps>>;
|
394
|
+
};
|
395
|
+
badge: {
|
396
|
+
type: PropType<string | number | Partial< BadgeProps>>;
|
397
|
+
};
|
398
|
+
dropdown: {
|
399
|
+
type: PropType<Partial< ExtractPropTypes<{
|
400
|
+
readonly trigger: EpPropFinalized<(new (...args: any[]) => "click" | "contextmenu" | "focus" | "hover" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => "click" | "contextmenu" | "focus" | "hover" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
|
401
|
+
readonly triggerKeys: EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => string[], boolean>;
|
402
|
+
readonly effect: {
|
403
|
+
readonly default: "light";
|
404
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>>;
|
405
|
+
readonly required: false;
|
406
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
407
|
+
readonly __epPropKey: true;
|
265
408
|
};
|
266
|
-
|
267
|
-
type: PropType<"
|
409
|
+
readonly type: {
|
410
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger") | (() => EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown>) | ((new (...args: any[]) => "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger") | (() => EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown>))[], unknown, unknown>>;
|
411
|
+
readonly required: false;
|
412
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
413
|
+
__epPropKey: true;
|
268
414
|
};
|
269
|
-
|
270
|
-
|
271
|
-
|
415
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | ((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
416
|
+
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
|
417
|
+
readonly id: StringConstructor;
|
418
|
+
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
419
|
+
readonly splitButton: BooleanConstructor;
|
420
|
+
readonly hideOnClick: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
421
|
+
readonly loop: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
422
|
+
readonly showTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
423
|
+
readonly hideTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
424
|
+
readonly tabindex: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
425
|
+
readonly maxHeight: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
|
426
|
+
readonly popperClass: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
427
|
+
readonly disabled: BooleanConstructor;
|
428
|
+
readonly role: EpPropFinalized<StringConstructor, unknown, unknown, "menu", boolean>;
|
429
|
+
readonly buttonProps: {
|
430
|
+
readonly type: PropType<ButtonProps>;
|
431
|
+
readonly required: false;
|
432
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
433
|
+
__epPropKey: true;
|
272
434
|
};
|
273
|
-
|
274
|
-
|
435
|
+
readonly teleported: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
436
|
+
readonly persistent: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
437
|
+
}>>>;
|
438
|
+
};
|
439
|
+
button: {
|
440
|
+
type: PropType<Partial< ButtonProps>>;
|
441
|
+
};
|
442
|
+
disabled: {
|
443
|
+
type: PropType<boolean | (() => boolean)>;
|
444
|
+
};
|
445
|
+
size: {
|
446
|
+
type: PropType<BaseSize>;
|
447
|
+
default: string;
|
448
|
+
};
|
449
|
+
type: {
|
450
|
+
type: PropType<BaseType>;
|
451
|
+
};
|
452
|
+
background: {
|
453
|
+
type: PropType<"always" | "hover" | "none">;
|
454
|
+
default: string;
|
455
|
+
};
|
456
|
+
circle: {
|
457
|
+
type: BooleanConstructor;
|
458
|
+
};
|
459
|
+
draggable: {
|
460
|
+
type: BooleanConstructor;
|
461
|
+
};
|
462
|
+
}>>>) => any) | undefined;
|
463
|
+
onActionCommand?: ((action: Readonly<Partial< ExtractPropTypes<{
|
464
|
+
name: {
|
465
|
+
type: StringConstructor;
|
466
|
+
};
|
467
|
+
label: {
|
468
|
+
type: StringConstructor;
|
469
|
+
};
|
470
|
+
value: {
|
471
|
+
type: PropType<unknown>;
|
472
|
+
};
|
473
|
+
icon: {
|
474
|
+
type: PropType<IconParam>;
|
475
|
+
};
|
476
|
+
mode: {
|
477
|
+
type: PropType<ActionMode>;
|
478
|
+
default: string;
|
479
|
+
};
|
480
|
+
menus: {
|
481
|
+
type: PropType<ActionMenuItem[]>;
|
482
|
+
};
|
483
|
+
tooltip: {
|
484
|
+
type: PropType<string | Partial< ElTooltipProps>>;
|
485
|
+
};
|
486
|
+
badge: {
|
487
|
+
type: PropType<string | number | Partial< BadgeProps>>;
|
488
|
+
};
|
489
|
+
dropdown: {
|
490
|
+
type: PropType<Partial< ExtractPropTypes<{
|
491
|
+
readonly trigger: EpPropFinalized<(new (...args: any[]) => "click" | "contextmenu" | "focus" | "hover" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => "click" | "contextmenu" | "focus" | "hover" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
|
492
|
+
readonly triggerKeys: EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => string[], boolean>;
|
493
|
+
readonly effect: {
|
494
|
+
readonly default: "light";
|
495
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>>;
|
496
|
+
readonly required: false;
|
497
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
498
|
+
readonly __epPropKey: true;
|
275
499
|
};
|
276
|
-
|
277
|
-
type:
|
500
|
+
readonly type: {
|
501
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger") | (() => EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown>) | ((new (...args: any[]) => "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger") | (() => EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown>))[], unknown, unknown>>;
|
502
|
+
readonly required: false;
|
503
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
504
|
+
__epPropKey: true;
|
278
505
|
};
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
506
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | ((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
507
|
+
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
|
508
|
+
readonly id: StringConstructor;
|
509
|
+
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
510
|
+
readonly splitButton: BooleanConstructor;
|
511
|
+
readonly hideOnClick: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
512
|
+
readonly loop: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
513
|
+
readonly showTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
514
|
+
readonly hideTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
515
|
+
readonly tabindex: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
516
|
+
readonly maxHeight: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
|
517
|
+
readonly popperClass: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
518
|
+
readonly disabled: BooleanConstructor;
|
519
|
+
readonly role: EpPropFinalized<StringConstructor, unknown, unknown, "menu", boolean>;
|
520
|
+
readonly buttonProps: {
|
521
|
+
readonly type: PropType<ButtonProps>;
|
522
|
+
readonly required: false;
|
523
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
524
|
+
__epPropKey: true;
|
284
525
|
};
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
type
|
526
|
+
readonly teleported: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
527
|
+
readonly persistent: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
528
|
+
}>>>;
|
529
|
+
};
|
530
|
+
button: {
|
531
|
+
type: PropType<Partial< ButtonProps>>;
|
532
|
+
};
|
533
|
+
disabled: {
|
534
|
+
type: PropType<boolean | (() => boolean)>;
|
535
|
+
};
|
536
|
+
size: {
|
537
|
+
type: PropType<BaseSize>;
|
538
|
+
default: string;
|
539
|
+
};
|
540
|
+
type: {
|
541
|
+
type: PropType<BaseType>;
|
542
|
+
};
|
543
|
+
background: {
|
544
|
+
type: PropType<"always" | "hover" | "none">;
|
545
|
+
default: string;
|
546
|
+
};
|
547
|
+
circle: {
|
548
|
+
type: BooleanConstructor;
|
549
|
+
};
|
550
|
+
draggable: {
|
551
|
+
type: BooleanConstructor;
|
552
|
+
};
|
553
|
+
}>>>, item: ActionMenuItem) => any) | undefined;
|
554
|
+
}>, {
|
555
|
+
disabled: boolean;
|
556
|
+
title: string;
|
557
|
+
pure: boolean;
|
558
|
+
menus: MenuDataItem[] | (() => Promise< MenuDataItem[]> | MenuDataItem[]);
|
559
|
+
logo: string;
|
560
|
+
favorites: MenuDataItem[] | (() => Promise< MenuDataItem[]> | MenuDataItem[]);
|
561
|
+
home: string | MaskTab;
|
562
|
+
tabs: number;
|
563
|
+
theme: boolean;
|
564
|
+
userCardWidth: number;
|
565
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
304
566
|
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
305
567
|
logo: {
|
306
568
|
type: StringConstructor;
|
@@ -786,288 +1048,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
786
1048
|
tabs: number;
|
787
1049
|
theme: boolean;
|
788
1050
|
userCardWidth: number;
|
789
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
790
|
-
|
791
|
-
onDialog?: ((tab: MaskTab) => any) | undefined;
|
792
|
-
onClick?: ((tab: MaskTab) => any) | undefined;
|
793
|
-
onRemove?: ((tab: MaskTab) => any) | undefined;
|
794
|
-
onRefresh?: ((tab: MaskTab) => any) | undefined;
|
795
|
-
onToggleFavorite?: ((item: MenuDataItem) => any) | undefined;
|
796
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
797
|
-
dialog: (tab: MaskTab) => any;
|
798
|
-
click: (tab: MaskTab) => any;
|
799
|
-
remove: (tab: MaskTab) => any;
|
800
|
-
refresh: (tab: MaskTab) => any;
|
801
|
-
toggleFavorite: (item: MenuDataItem) => any;
|
802
|
-
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
803
|
-
tabsRef: ({
|
804
|
-
$: ComponentInternalInstance;
|
805
|
-
$data: {};
|
806
|
-
$props: Partial<{
|
807
|
-
padding: boolean;
|
808
|
-
tag: string;
|
809
|
-
wrap: ContainerWrap;
|
810
|
-
fit: boolean;
|
811
|
-
flex: boolean;
|
812
|
-
inline: boolean;
|
813
|
-
direction: ContainerDirection;
|
814
|
-
justify: ContainerJustifyContent;
|
815
|
-
align: ContainerAlignItems;
|
816
|
-
alignContent: ContainerAlignContent;
|
817
|
-
grow: boolean;
|
818
|
-
shrink: boolean;
|
819
|
-
alignSelf: "auto" | ContainerAlignItems;
|
820
|
-
gap: boolean;
|
821
|
-
autoPointer: boolean;
|
822
|
-
}> & Omit<{
|
823
|
-
readonly padding: boolean;
|
824
|
-
readonly tag: string;
|
825
|
-
readonly wrap: ContainerWrap;
|
826
|
-
readonly fit: boolean;
|
827
|
-
readonly flex: boolean;
|
828
|
-
readonly inline: boolean;
|
829
|
-
readonly direction: ContainerDirection;
|
830
|
-
readonly justify: ContainerJustifyContent;
|
831
|
-
readonly align: ContainerAlignItems;
|
832
|
-
readonly alignContent: ContainerAlignContent;
|
833
|
-
readonly grow: boolean;
|
834
|
-
readonly shrink: boolean;
|
835
|
-
readonly alignSelf: "auto" | ContainerAlignItems;
|
836
|
-
readonly gap: boolean;
|
837
|
-
readonly autoPointer: boolean;
|
838
|
-
readonly width?: string | number | undefined;
|
839
|
-
readonly height?: string | number | undefined;
|
840
|
-
readonly overflow?: "hidden" | "auto" | "visible" | undefined;
|
841
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "padding" | "tag" | "wrap" | "fit" | "flex" | "inline" | "direction" | "justify" | "align" | "alignContent" | "grow" | "shrink" | "alignSelf" | "gap" | "autoPointer">;
|
842
|
-
$attrs: {
|
843
|
-
[x: string]: unknown;
|
844
|
-
};
|
845
|
-
$refs: {
|
846
|
-
[x: string]: unknown;
|
847
|
-
} & {
|
848
|
-
elRef: unknown;
|
849
|
-
};
|
850
|
-
$slots: Readonly<{
|
851
|
-
[name: string]: Slot<any> | undefined;
|
852
|
-
}>;
|
853
|
-
$root: ComponentPublicInstance | null;
|
854
|
-
$parent: ComponentPublicInstance | null;
|
855
|
-
$host: Element | null;
|
856
|
-
$emit: (event: string, ...args: any[]) => void;
|
857
|
-
$el: any;
|
858
|
-
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
859
|
-
tag: {
|
860
|
-
type: StringConstructor;
|
861
|
-
default: string;
|
862
|
-
};
|
863
|
-
fit: {
|
864
|
-
type: BooleanConstructor;
|
865
|
-
default: boolean;
|
866
|
-
};
|
867
|
-
width: {
|
868
|
-
type: (StringConstructor | NumberConstructor)[];
|
869
|
-
};
|
870
|
-
height: {
|
871
|
-
type: (StringConstructor | NumberConstructor)[];
|
872
|
-
};
|
873
|
-
flex: {
|
874
|
-
type: BooleanConstructor;
|
875
|
-
default: boolean;
|
876
|
-
};
|
877
|
-
inline: {
|
878
|
-
type: BooleanConstructor;
|
879
|
-
};
|
880
|
-
direction: {
|
881
|
-
type: PropType<ContainerDirection>;
|
882
|
-
default: string;
|
883
|
-
};
|
884
|
-
wrap: {
|
885
|
-
type: PropType<ContainerWrap>;
|
886
|
-
default: string;
|
887
|
-
};
|
888
|
-
justify: {
|
889
|
-
type: PropType<ContainerJustifyContent>;
|
890
|
-
default: string;
|
891
|
-
};
|
892
|
-
align: {
|
893
|
-
type: PropType<ContainerAlignItems>;
|
894
|
-
default: string;
|
895
|
-
};
|
896
|
-
alignContent: {
|
897
|
-
type: PropType<ContainerAlignContent>;
|
898
|
-
default: string;
|
899
|
-
};
|
900
|
-
grow: {
|
901
|
-
type: BooleanConstructor;
|
902
|
-
default: boolean;
|
903
|
-
};
|
904
|
-
shrink: {
|
905
|
-
type: BooleanConstructor;
|
906
|
-
default: boolean;
|
907
|
-
};
|
908
|
-
alignSelf: {
|
909
|
-
type: PropType<"auto" | ContainerAlignItems>;
|
910
|
-
default: string;
|
911
|
-
};
|
912
|
-
overflow: {
|
913
|
-
type: PropType<"auto" | "hidden" | "visible">;
|
914
|
-
};
|
915
|
-
padding: {
|
916
|
-
type: BooleanConstructor;
|
917
|
-
default: boolean;
|
918
|
-
};
|
919
|
-
gap: {
|
920
|
-
type: BooleanConstructor;
|
921
|
-
};
|
922
|
-
autoPointer: {
|
923
|
-
type: BooleanConstructor;
|
924
|
-
};
|
925
|
-
}>> & Readonly<{}>, {
|
926
|
-
$vtjEl: ComputedRef<any>;
|
927
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
928
|
-
padding: boolean;
|
929
|
-
tag: string;
|
930
|
-
wrap: ContainerWrap;
|
931
|
-
fit: boolean;
|
932
|
-
flex: boolean;
|
933
|
-
inline: boolean;
|
934
|
-
direction: ContainerDirection;
|
935
|
-
justify: ContainerJustifyContent;
|
936
|
-
align: ContainerAlignItems;
|
937
|
-
alignContent: ContainerAlignContent;
|
938
|
-
grow: boolean;
|
939
|
-
shrink: boolean;
|
940
|
-
alignSelf: "auto" | ContainerAlignItems;
|
941
|
-
gap: boolean;
|
942
|
-
autoPointer: boolean;
|
943
|
-
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
944
|
-
beforeCreate?: (() => void) | (() => void)[];
|
945
|
-
created?: (() => void) | (() => void)[];
|
946
|
-
beforeMount?: (() => void) | (() => void)[];
|
947
|
-
mounted?: (() => void) | (() => void)[];
|
948
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
949
|
-
updated?: (() => void) | (() => void)[];
|
950
|
-
activated?: (() => void) | (() => void)[];
|
951
|
-
deactivated?: (() => void) | (() => void)[];
|
952
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
953
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
954
|
-
destroyed?: (() => void) | (() => void)[];
|
955
|
-
unmounted?: (() => void) | (() => void)[];
|
956
|
-
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
957
|
-
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
958
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
959
|
-
};
|
960
|
-
$forceUpdate: () => void;
|
961
|
-
$nextTick: nextTick;
|
962
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
963
|
-
} & Readonly<{
|
964
|
-
padding: boolean;
|
965
|
-
tag: string;
|
966
|
-
wrap: ContainerWrap;
|
967
|
-
fit: boolean;
|
968
|
-
flex: boolean;
|
969
|
-
inline: boolean;
|
970
|
-
direction: ContainerDirection;
|
971
|
-
justify: ContainerJustifyContent;
|
972
|
-
align: ContainerAlignItems;
|
973
|
-
alignContent: ContainerAlignContent;
|
974
|
-
grow: boolean;
|
975
|
-
shrink: boolean;
|
976
|
-
alignSelf: "auto" | ContainerAlignItems;
|
977
|
-
gap: boolean;
|
978
|
-
autoPointer: boolean;
|
979
|
-
}> & Omit<Readonly< ExtractPropTypes<{
|
980
|
-
tag: {
|
981
|
-
type: StringConstructor;
|
982
|
-
default: string;
|
983
|
-
};
|
984
|
-
fit: {
|
985
|
-
type: BooleanConstructor;
|
986
|
-
default: boolean;
|
987
|
-
};
|
988
|
-
width: {
|
989
|
-
type: (StringConstructor | NumberConstructor)[];
|
990
|
-
};
|
991
|
-
height: {
|
992
|
-
type: (StringConstructor | NumberConstructor)[];
|
993
|
-
};
|
994
|
-
flex: {
|
995
|
-
type: BooleanConstructor;
|
996
|
-
default: boolean;
|
997
|
-
};
|
998
|
-
inline: {
|
999
|
-
type: BooleanConstructor;
|
1000
|
-
};
|
1001
|
-
direction: {
|
1002
|
-
type: PropType<ContainerDirection>;
|
1003
|
-
default: string;
|
1004
|
-
};
|
1005
|
-
wrap: {
|
1006
|
-
type: PropType<ContainerWrap>;
|
1007
|
-
default: string;
|
1008
|
-
};
|
1009
|
-
justify: {
|
1010
|
-
type: PropType<ContainerJustifyContent>;
|
1011
|
-
default: string;
|
1012
|
-
};
|
1013
|
-
align: {
|
1014
|
-
type: PropType<ContainerAlignItems>;
|
1015
|
-
default: string;
|
1016
|
-
};
|
1017
|
-
alignContent: {
|
1018
|
-
type: PropType<ContainerAlignContent>;
|
1019
|
-
default: string;
|
1020
|
-
};
|
1021
|
-
grow: {
|
1022
|
-
type: BooleanConstructor;
|
1023
|
-
default: boolean;
|
1024
|
-
};
|
1025
|
-
shrink: {
|
1026
|
-
type: BooleanConstructor;
|
1027
|
-
default: boolean;
|
1028
|
-
};
|
1029
|
-
alignSelf: {
|
1030
|
-
type: PropType<"auto" | ContainerAlignItems>;
|
1031
|
-
default: string;
|
1032
|
-
};
|
1033
|
-
overflow: {
|
1034
|
-
type: PropType<"auto" | "hidden" | "visible">;
|
1035
|
-
};
|
1036
|
-
padding: {
|
1037
|
-
type: BooleanConstructor;
|
1038
|
-
default: boolean;
|
1039
|
-
};
|
1040
|
-
gap: {
|
1041
|
-
type: BooleanConstructor;
|
1042
|
-
};
|
1043
|
-
autoPointer: {
|
1044
|
-
type: BooleanConstructor;
|
1045
|
-
};
|
1046
|
-
}>> & Readonly<{}>, ("padding" | "tag" | "wrap" | "fit" | "flex" | "inline" | "direction" | "justify" | "align" | "alignContent" | "grow" | "shrink" | "alignSelf" | "gap" | "autoPointer") | "$vtjEl"> & ShallowUnwrapRef<{
|
1047
|
-
$vtjEl: ComputedRef<any>;
|
1048
|
-
}> & {} & ComponentCustomProperties & {} & {
|
1049
|
-
$slots: {
|
1050
|
-
default?(_: {}): any;
|
1051
|
-
};
|
1052
|
-
}) | null;
|
1053
|
-
}, any, ComponentProvideOptions, {
|
1054
|
-
P: {};
|
1055
|
-
B: {};
|
1056
|
-
D: {};
|
1057
|
-
C: {};
|
1058
|
-
M: {};
|
1059
|
-
Defaults: {};
|
1060
|
-
}, Readonly< Props> & Readonly<{
|
1061
|
-
onDialog?: ((tab: MaskTab) => any) | undefined;
|
1062
|
-
onClick?: ((tab: MaskTab) => any) | undefined;
|
1063
|
-
onRemove?: ((tab: MaskTab) => any) | undefined;
|
1064
|
-
onRefresh?: ((tab: MaskTab) => any) | undefined;
|
1065
|
-
onToggleFavorite?: ((item: MenuDataItem) => any) | undefined;
|
1066
|
-
}>, {}, {}, {}, {}, {}> | null;
|
1067
|
-
}, any>;
|
1068
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
1051
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
1052
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
1069
1053
|
export default _default;
|
1070
|
-
type
|
1054
|
+
type __VLS_WithSlots<T, S> = T & {
|
1071
1055
|
new (): {
|
1072
1056
|
$slots: S;
|
1073
1057
|
};
|