@vtj/ui 0.10.6 → 0.10.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/index.mjs +9 -8
  2. package/dist/index.umd.js +3 -3
  3. package/package.json +5 -5
  4. package/types/components/action/Action.d.ts +10 -3
  5. package/types/components/attachment/Attachment.d.ts +805 -274
  6. package/types/components/container/Container.d.ts +15 -178
  7. package/types/components/data-item/DataItem.d.ts +18 -517
  8. package/types/components/dialog/Dialog.d.ts +1203 -432
  9. package/types/components/dialog-form/DialogForm.d.ts +3049 -104
  10. package/types/components/dialog-grid/DialogGrid.d.ts +4907 -69
  11. package/types/components/field/Field.d.ts +353 -222
  12. package/types/components/field/editors/SelectEditor.d.ts +12 -21
  13. package/types/components/form/Form.d.ts +389 -116
  14. package/types/components/grid/Grid.d.ts +57 -787
  15. package/types/components/grid/renderers/components/DateEdit.d.ts +255 -2
  16. package/types/components/grid/renderers/components/DateFilter.d.ts +1 -1
  17. package/types/components/grid/renderers/components/GridEdit.d.ts +410 -2
  18. package/types/components/grid/renderers/components/InputFilter.d.ts +1 -1
  19. package/types/components/grid/renderers/components/NumberFilter.d.ts +1 -1
  20. package/types/components/grid/renderers/components/PickerEdit.d.ts +1926 -2
  21. package/types/components/grid/renderers/components/SelectFilter.d.ts +1 -1
  22. package/types/components/grid-editor/GridEditor.d.ts +375 -2
  23. package/types/components/header/Header.d.ts +14 -76
  24. package/types/components/icon/Icon.d.ts +74 -0
  25. package/types/components/import-button/ImportButton.d.ts +10 -47
  26. package/types/components/list/List.d.ts +30 -155
  27. package/types/components/mask/Mask.d.ts +562 -546
  28. package/types/components/mask/components/Avatar.d.ts +11 -16
  29. package/types/components/mask/components/Brand.d.ts +12 -17
  30. package/types/components/mask/components/Content.d.ts +12 -13
  31. package/types/components/mask/components/Sidebar.d.ts +12 -15
  32. package/types/components/mask/components/Tabs.d.ts +255 -2
  33. package/types/components/mask/components/ThemeSwitch.d.ts +1 -1
  34. package/types/components/mask/components/Toolbar.d.ts +13 -55
  35. package/types/components/panel/Panel.d.ts +521 -124
  36. package/types/components/picker/Dialog.d.ts +1291 -2
  37. package/types/components/picker/Picker.d.ts +1730 -2
  38. package/types/components/qr-code/QrCode.d.ts +13 -35
  39. package/types/components/query-form/QueryForm.d.ts +1105 -418
  40. package/types/components/startup/Startup.d.ts +1 -1
  41. package/types/components/tabs/Tabs.d.ts +53 -297
  42. package/types/components/test/Test.d.ts +41 -268
  43. package/types/utils/auto-update.d.ts +1 -1
  44. package/types/version.d.ts +2 -2
@@ -1,28 +1,23 @@
1
- import { ElAvatar, ElPopover } from 'element-plus';
2
- import { UserFilled } from '@vtj/icons';
3
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
2
  export interface Props {
5
3
  avatar?: string;
6
4
  width?: number;
7
5
  }
8
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
9
- declare var __VLS_10: {};
10
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
11
- default?: (props: typeof __VLS_10) => any;
12
- }>;
13
- declare const __VLS_self: DefineComponent<Props, {
14
- ElAvatar: typeof ElAvatar;
15
- ElPopover: typeof ElPopover;
16
- UserFilled: typeof UserFilled;
17
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
18
- width: number;
19
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: any;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
15
  declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
21
16
  width: number;
22
17
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
23
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
18
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
24
19
  export default _default;
25
- type __VLS_WithSlots<T, S> = T & {
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
26
21
  new (): {
27
22
  $slots: S;
28
23
  };
@@ -1,4 +1,3 @@
1
- import { XContainer } from '../../';
2
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
2
  export interface Props {
4
3
  collapsed?: boolean;
@@ -6,26 +5,22 @@ export interface Props {
6
5
  title?: string;
7
6
  url?: string;
8
7
  }
9
- declare const onClick: () => void;
10
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
11
- declare var __VLS_14: {}, __VLS_20: {};
12
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
13
- logo?: (props: typeof __VLS_14) => any;
14
- } & {
15
- title?: (props: typeof __VLS_20) => any;
16
- }>;
17
- declare const __VLS_self: DefineComponent<Props, {
18
- XContainer: typeof XContainer;
19
- onClick: typeof onClick;
20
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
21
- collapsed: boolean;
22
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: {
11
+ logo?(_: {}): any;
12
+ title?(_: {}): any;
13
+ };
14
+ refs: {};
15
+ rootEl: any;
16
+ };
17
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
23
18
  declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
24
19
  collapsed: boolean;
25
20
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
26
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
21
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
22
  export default _default;
28
- type __VLS_WithSlots<T, S> = T & {
23
+ type __VLS_WithTemplateSlots<T, S> = T & {
29
24
  new (): {
30
25
  $slots: S;
31
26
  };
@@ -1,24 +1,23 @@
1
- import { RouterView, RouteLocationNormalizedLoaded } from 'vue-router';
2
- import { XContainer } from '../../';
1
+ import { RouteLocationNormalizedLoaded } from 'vue-router';
3
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
3
  export interface Props {
5
4
  createView: (module: any, route: RouteLocationNormalizedLoaded) => any;
6
5
  exclude: string[];
7
6
  pure: boolean;
8
7
  }
9
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
10
- declare var __VLS_6: {};
11
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
12
- default?: (props: typeof __VLS_6) => any;
13
- }>;
14
- declare const __VLS_self: DefineComponent<Props, {
15
- RouterView: typeof RouterView;
16
- XContainer: typeof XContainer;
17
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: {
11
+ default?(_: {}): any;
12
+ };
13
+ refs: {};
14
+ rootEl: any;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
17
  declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
19
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
18
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
20
19
  export default _default;
21
- type __VLS_WithSlots<T, S> = T & {
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
22
21
  new (): {
23
22
  $slots: S;
24
23
  };
@@ -1,24 +1,21 @@
1
- import { XContainer } from '../../';
2
- import { vResizable } from '../../../directives';
3
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
2
  export interface Props {
5
3
  collapsed?: boolean;
6
4
  }
7
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
8
- declare var __VLS_6: {}, __VLS_12: {};
9
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
10
- brand?: (props: typeof __VLS_6) => any;
11
- } & {
12
- default?: (props: typeof __VLS_12) => any;
13
- }>;
14
- declare const __VLS_self: DefineComponent<Props, {
15
- XContainer: typeof XContainer;
16
- vResizable: typeof vResizable;
17
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
5
+ declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
7
+ slots: {
8
+ brand?(_: {}): any;
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: any;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
15
  declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
19
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
20
17
  export default _default;
21
- type __VLS_WithSlots<T, S> = T & {
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
22
19
  new (): {
23
20
  $slots: S;
24
21
  };
@@ -1,6 +1,8 @@
1
1
  import { MenuDataItem } from '../../';
2
2
  import { MaskTab } from '../types';
3
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, ComputedRef, GlobalComponents, GlobalDirectives, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
4
+ import { ContainerWrap, ContainerDirection, ContainerJustifyContent, ContainerAlignItems, ContainerAlignContent } from '../../container';
5
+ import { OnCleanup } from '@vue/reactivity';
4
6
  export interface Props {
5
7
  tabs: MaskTab[];
6
8
  home: MaskTab;
@@ -20,5 +22,256 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
20
22
  onRemove?: ((tab: MaskTab) => any) | undefined;
21
23
  onRefresh?: ((tab: MaskTab) => any) | undefined;
22
24
  onToggleFavorite?: ((item: MenuDataItem) => any) | undefined;
23
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
25
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
26
+ tabsRef: ({
27
+ $: ComponentInternalInstance;
28
+ $data: {};
29
+ $props: Partial<{
30
+ padding: boolean;
31
+ tag: string;
32
+ wrap: ContainerWrap;
33
+ fit: boolean;
34
+ flex: boolean;
35
+ inline: boolean;
36
+ direction: ContainerDirection;
37
+ justify: ContainerJustifyContent;
38
+ align: ContainerAlignItems;
39
+ alignContent: ContainerAlignContent;
40
+ grow: boolean;
41
+ shrink: boolean;
42
+ alignSelf: "auto" | ContainerAlignItems;
43
+ gap: boolean;
44
+ autoPointer: boolean;
45
+ }> & Omit<{
46
+ readonly padding: boolean;
47
+ readonly tag: string;
48
+ readonly wrap: ContainerWrap;
49
+ readonly fit: boolean;
50
+ readonly flex: boolean;
51
+ readonly inline: boolean;
52
+ readonly direction: ContainerDirection;
53
+ readonly justify: ContainerJustifyContent;
54
+ readonly align: ContainerAlignItems;
55
+ readonly alignContent: ContainerAlignContent;
56
+ readonly grow: boolean;
57
+ readonly shrink: boolean;
58
+ readonly alignSelf: "auto" | ContainerAlignItems;
59
+ readonly gap: boolean;
60
+ readonly autoPointer: boolean;
61
+ readonly width?: string | number | undefined;
62
+ readonly height?: string | number | undefined;
63
+ readonly overflow?: "hidden" | "auto" | "visible" | undefined;
64
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "padding" | "tag" | "wrap" | "fit" | "flex" | "inline" | "direction" | "justify" | "align" | "alignContent" | "grow" | "shrink" | "alignSelf" | "gap" | "autoPointer">;
65
+ $attrs: {
66
+ [x: string]: unknown;
67
+ };
68
+ $refs: {
69
+ [x: string]: unknown;
70
+ } & {
71
+ elRef: unknown;
72
+ };
73
+ $slots: Readonly<{
74
+ [name: string]: Slot<any> | undefined;
75
+ }>;
76
+ $root: ComponentPublicInstance | null;
77
+ $parent: ComponentPublicInstance | null;
78
+ $host: Element | null;
79
+ $emit: (event: string, ...args: any[]) => void;
80
+ $el: any;
81
+ $options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
82
+ tag: {
83
+ type: StringConstructor;
84
+ default: string;
85
+ };
86
+ fit: {
87
+ type: BooleanConstructor;
88
+ default: boolean;
89
+ };
90
+ width: {
91
+ type: (StringConstructor | NumberConstructor)[];
92
+ };
93
+ height: {
94
+ type: (StringConstructor | NumberConstructor)[];
95
+ };
96
+ flex: {
97
+ type: BooleanConstructor;
98
+ default: boolean;
99
+ };
100
+ inline: {
101
+ type: BooleanConstructor;
102
+ };
103
+ direction: {
104
+ type: PropType<ContainerDirection>;
105
+ default: string;
106
+ };
107
+ wrap: {
108
+ type: PropType<ContainerWrap>;
109
+ default: string;
110
+ };
111
+ justify: {
112
+ type: PropType<ContainerJustifyContent>;
113
+ default: string;
114
+ };
115
+ align: {
116
+ type: PropType<ContainerAlignItems>;
117
+ default: string;
118
+ };
119
+ alignContent: {
120
+ type: PropType<ContainerAlignContent>;
121
+ default: string;
122
+ };
123
+ grow: {
124
+ type: BooleanConstructor;
125
+ default: boolean;
126
+ };
127
+ shrink: {
128
+ type: BooleanConstructor;
129
+ default: boolean;
130
+ };
131
+ alignSelf: {
132
+ type: PropType<"auto" | ContainerAlignItems>;
133
+ default: string;
134
+ };
135
+ overflow: {
136
+ type: PropType<"auto" | "hidden" | "visible">;
137
+ };
138
+ padding: {
139
+ type: BooleanConstructor;
140
+ default: boolean;
141
+ };
142
+ gap: {
143
+ type: BooleanConstructor;
144
+ };
145
+ autoPointer: {
146
+ type: BooleanConstructor;
147
+ };
148
+ }>> & Readonly<{}>, {
149
+ $vtjEl: ComputedRef<any>;
150
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
151
+ padding: boolean;
152
+ tag: string;
153
+ wrap: ContainerWrap;
154
+ fit: boolean;
155
+ flex: boolean;
156
+ inline: boolean;
157
+ direction: ContainerDirection;
158
+ justify: ContainerJustifyContent;
159
+ align: ContainerAlignItems;
160
+ alignContent: ContainerAlignContent;
161
+ grow: boolean;
162
+ shrink: boolean;
163
+ alignSelf: "auto" | ContainerAlignItems;
164
+ gap: boolean;
165
+ autoPointer: boolean;
166
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
167
+ beforeCreate?: (() => void) | (() => void)[];
168
+ created?: (() => void) | (() => void)[];
169
+ beforeMount?: (() => void) | (() => void)[];
170
+ mounted?: (() => void) | (() => void)[];
171
+ beforeUpdate?: (() => void) | (() => void)[];
172
+ updated?: (() => void) | (() => void)[];
173
+ activated?: (() => void) | (() => void)[];
174
+ deactivated?: (() => void) | (() => void)[];
175
+ beforeDestroy?: (() => void) | (() => void)[];
176
+ beforeUnmount?: (() => void) | (() => void)[];
177
+ destroyed?: (() => void) | (() => void)[];
178
+ unmounted?: (() => void) | (() => void)[];
179
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
180
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
181
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
182
+ };
183
+ $forceUpdate: () => void;
184
+ $nextTick: nextTick;
185
+ $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;
186
+ } & Readonly<{
187
+ padding: boolean;
188
+ tag: string;
189
+ wrap: ContainerWrap;
190
+ fit: boolean;
191
+ flex: boolean;
192
+ inline: boolean;
193
+ direction: ContainerDirection;
194
+ justify: ContainerJustifyContent;
195
+ align: ContainerAlignItems;
196
+ alignContent: ContainerAlignContent;
197
+ grow: boolean;
198
+ shrink: boolean;
199
+ alignSelf: "auto" | ContainerAlignItems;
200
+ gap: boolean;
201
+ autoPointer: boolean;
202
+ }> & Omit<Readonly< ExtractPropTypes<{
203
+ tag: {
204
+ type: StringConstructor;
205
+ default: string;
206
+ };
207
+ fit: {
208
+ type: BooleanConstructor;
209
+ default: boolean;
210
+ };
211
+ width: {
212
+ type: (StringConstructor | NumberConstructor)[];
213
+ };
214
+ height: {
215
+ type: (StringConstructor | NumberConstructor)[];
216
+ };
217
+ flex: {
218
+ type: BooleanConstructor;
219
+ default: boolean;
220
+ };
221
+ inline: {
222
+ type: BooleanConstructor;
223
+ };
224
+ direction: {
225
+ type: PropType<ContainerDirection>;
226
+ default: string;
227
+ };
228
+ wrap: {
229
+ type: PropType<ContainerWrap>;
230
+ default: string;
231
+ };
232
+ justify: {
233
+ type: PropType<ContainerJustifyContent>;
234
+ default: string;
235
+ };
236
+ align: {
237
+ type: PropType<ContainerAlignItems>;
238
+ default: string;
239
+ };
240
+ alignContent: {
241
+ type: PropType<ContainerAlignContent>;
242
+ default: string;
243
+ };
244
+ grow: {
245
+ type: BooleanConstructor;
246
+ default: boolean;
247
+ };
248
+ shrink: {
249
+ type: BooleanConstructor;
250
+ default: boolean;
251
+ };
252
+ alignSelf: {
253
+ type: PropType<"auto" | ContainerAlignItems>;
254
+ default: string;
255
+ };
256
+ overflow: {
257
+ type: PropType<"auto" | "hidden" | "visible">;
258
+ };
259
+ padding: {
260
+ type: BooleanConstructor;
261
+ default: boolean;
262
+ };
263
+ gap: {
264
+ type: BooleanConstructor;
265
+ };
266
+ autoPointer: {
267
+ type: BooleanConstructor;
268
+ };
269
+ }>> & Readonly<{}>, ("padding" | "tag" | "wrap" | "fit" | "flex" | "inline" | "direction" | "justify" | "align" | "alignContent" | "grow" | "shrink" | "alignSelf" | "gap" | "autoPointer") | "$vtjEl"> & ShallowUnwrapRef<{
270
+ $vtjEl: ComputedRef<any>;
271
+ }> & {} & ComponentCustomProperties & {} & {
272
+ $slots: {
273
+ default?(_: {}): any;
274
+ };
275
+ }) | null;
276
+ }, any>;
24
277
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
3
3
  export default _default;
@@ -1,62 +1,20 @@
1
- import { XContainer, XAction, ActionMenuItem, XIcon, XActionBar, ActionBarItems, ActionProps } from '../../';
2
- import { MoreFilled, Close } from '@vtj/icons';
3
- import { ElDivider } from 'element-plus';
4
- import { default as ThemeSwitch } from './ThemeSwitch';
1
+ import { ActionBarItems } from '../../';
5
2
  import { MaskTab } from '../types';
6
- import { ComputedRef, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
7
4
  export interface Props {
8
5
  tabs: MaskTab[];
9
6
  actions?: ActionBarItems;
10
7
  theme?: boolean;
11
8
  }
12
- declare const tabs: ComputedRef<({
13
- divided: boolean;
14
- label: string | undefined;
15
- command: MaskTab;
16
- } | {
17
- label: string;
18
- command: string;
19
- })[]>;
20
- declare const onCloseItem: (item: ActionMenuItem) => void;
21
- declare const onTabCommand: (item: ActionMenuItem) => void;
22
- declare const onActionClick: (action: ActionProps) => void;
23
- declare const onActionCommand: (action: ActionProps, item: ActionMenuItem) => void;
24
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
25
- declare var __VLS_46: {};
26
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
27
- default?: (props: typeof __VLS_46) => any;
28
- }>;
29
- declare const __VLS_self: DefineComponent<Props, {
30
- XContainer: typeof XContainer;
31
- XAction: typeof XAction;
32
- XIcon: typeof XIcon;
33
- XActionBar: typeof XActionBar;
34
- MoreFilled: typeof MoreFilled;
35
- Close: typeof Close;
36
- ElDivider: typeof ElDivider;
37
- ThemeSwitch: typeof ThemeSwitch;
38
- tabs: typeof tabs;
39
- onCloseItem: typeof onCloseItem;
40
- onTabCommand: typeof onTabCommand;
41
- onActionClick: typeof onActionClick;
42
- onActionCommand: typeof onActionCommand;
43
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
44
- actionClick: (...args: any[]) => void;
45
- actionCommand: (...args: any[]) => void;
46
- closeOtherTabs: (...args: any[]) => void;
47
- closeAllTabs: (...args: any[]) => void;
48
- closeTab: (...args: any[]) => void;
49
- clickTab: (...args: any[]) => void;
50
- }, string, PublicProps, Readonly<Props> & Readonly<{
51
- onActionClick?: ((...args: any[]) => any) | undefined;
52
- onActionCommand?: ((...args: any[]) => any) | undefined;
53
- onCloseOtherTabs?: ((...args: any[]) => any) | undefined;
54
- onCloseAllTabs?: ((...args: any[]) => any) | undefined;
55
- onCloseTab?: ((...args: any[]) => any) | undefined;
56
- onClickTab?: ((...args: any[]) => any) | undefined;
57
- }>, {
58
- tabs: MaskTab[];
59
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
9
+ declare function __VLS_template(): {
10
+ attrs: Partial<{}>;
11
+ slots: {
12
+ default?(_: {}): any;
13
+ };
14
+ refs: {};
15
+ rootEl: any;
16
+ };
17
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
60
18
  declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
61
19
  actionClick: (...args: any[]) => void;
62
20
  actionCommand: (...args: any[]) => void;
@@ -74,9 +32,9 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
74
32
  }>, {
75
33
  tabs: MaskTab[];
76
34
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
77
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
35
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
78
36
  export default _default;
79
- type __VLS_WithSlots<T, S> = T & {
37
+ type __VLS_WithTemplateSlots<T, S> = T & {
80
38
  new (): {
81
39
  $slots: S;
82
40
  };