@vtj/ui 0.6.21 → 0.6.23
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/cdn/index.js +1 -1
- package/cdn/style.css +1 -1
- package/lib/index.js +1667 -1270
- package/lib/style.css +1 -1
- package/package.json +8 -7
- package/types/components/action/Action.d.ts +1 -1
- package/types/components/action/Trigger.d.ts +1 -1
- package/types/components/action-bar/ActionBar.d.ts +1 -1
- package/types/components/chart/Chart.d.ts +35 -0
- package/types/components/chart/index.d.ts +3 -0
- package/types/components/chart/types.d.ts +17 -0
- package/types/components/chart/useChart.d.ts +7 -0
- package/types/components/container/Container.d.ts +8 -1
- package/types/components/container/types.d.ts +3 -0
- package/types/components/data-item/DataItem.d.ts +451 -0
- package/types/components/data-item/index.d.ts +3 -0
- package/types/components/data-item/types.d.ts +49 -0
- package/types/components/dialog-form/DialogForm.d.ts +91 -0
- package/types/components/dialog-form/index.d.ts +3 -0
- package/types/components/dialog-form/types.d.ts +46 -0
- package/types/components/field/Field.d.ts +1 -0
- package/types/components/field/editors/CheckboxEditor.d.ts +22 -20
- package/types/components/field/editors/RadioEditor.d.ts +22 -20
- package/types/components/field/editors/SelectEditor.d.ts +20 -12
- package/types/components/form/Form.d.ts +1 -0
- package/types/components/icon/Icon.d.ts +18 -0
- package/types/components/icon/types.d.ts +9 -0
- package/types/components/index.d.ts +4 -0
- package/types/components/mask/components/Avatar.d.ts +11 -10
- package/types/components/mask/components/Brand.d.ts +20 -30
- package/types/components/mask/components/Content.d.ts +11 -20
- package/types/components/mask/components/Menu.d.ts +21 -49
- package/types/components/mask/components/Sidebar.d.ts +11 -10
- package/types/components/mask/components/SwitchBar.d.ts +23 -27
- package/types/components/mask/components/Tabs.d.ts +12 -41
- package/types/components/mask/components/Toolbar.d.ts +21 -27
- package/types/components/menu/Menu.d.ts +24 -27
- package/types/components/menu/MenuItem.d.ts +10 -24
- package/types/components/panel/Panel.d.ts +13 -1
- package/types/components/panel/types.d.ts +6 -0
- package/types/components/simple-mask/SimpleMask.d.ts +26 -30
- package/types/components/startup/Startup.d.ts +22 -26
- package/types/components/tabs/Tabs.d.ts +52 -0
- package/types/components/tabs/index.d.ts +3 -0
- package/types/components/tabs/types.d.ts +24 -0
- package/types/list.d.ts +2 -2
- package/types/version.d.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefineComponent,
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import { ActionBarItems } from '../../';
|
|
3
3
|
import { MaskTab } from '../types';
|
|
4
4
|
export interface Props {
|
|
@@ -6,38 +6,18 @@ export interface Props {
|
|
|
6
6
|
actions?: ActionBarItems;
|
|
7
7
|
theme?: boolean;
|
|
8
8
|
}
|
|
9
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
tabs: {
|
|
14
|
-
type: PropType<MaskTab[]>;
|
|
15
|
-
required: true;
|
|
16
|
-
default: () => never[];
|
|
17
|
-
};
|
|
18
|
-
theme: {
|
|
19
|
-
type: PropType<boolean>;
|
|
20
|
-
};
|
|
21
|
-
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
9
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
10
|
+
tabs: () => never[];
|
|
11
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
22
12
|
actionClick: (...args: any[]) => void;
|
|
23
13
|
actionCommand: (...args: any[]) => void;
|
|
24
14
|
closeOtherTabs: (...args: any[]) => void;
|
|
25
15
|
closeAllTabs: (...args: any[]) => void;
|
|
26
16
|
closeTab: (...args: any[]) => void;
|
|
27
17
|
clickTab: (...args: any[]) => void;
|
|
28
|
-
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
};
|
|
32
|
-
tabs: {
|
|
33
|
-
type: PropType<MaskTab[]>;
|
|
34
|
-
required: true;
|
|
35
|
-
default: () => never[];
|
|
36
|
-
};
|
|
37
|
-
theme: {
|
|
38
|
-
type: PropType<boolean>;
|
|
39
|
-
};
|
|
40
|
-
}>> & {
|
|
18
|
+
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
19
|
+
tabs: () => never[];
|
|
20
|
+
}>>> & {
|
|
41
21
|
onActionClick?: ((...args: any[]) => any) | undefined;
|
|
42
22
|
onActionCommand?: ((...args: any[]) => any) | undefined;
|
|
43
23
|
onCloseOtherTabs?: ((...args: any[]) => any) | undefined;
|
|
@@ -50,6 +30,20 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
50
30
|
default?(_: {}): any;
|
|
51
31
|
}>;
|
|
52
32
|
export default _default;
|
|
33
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
34
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
35
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
36
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
37
|
+
} : {
|
|
38
|
+
type: PropType<T[K]>;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
type __VLS_WithDefaults<P, D> = {
|
|
43
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
44
|
+
default: D[K];
|
|
45
|
+
}> : P[K];
|
|
46
|
+
};
|
|
53
47
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
54
48
|
new (): {
|
|
55
49
|
$slots: S;
|
|
@@ -1,33 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
default: () => never[];
|
|
8
|
-
};
|
|
9
|
-
subMenu: {
|
|
10
|
-
type: PropType<Partial<SubMenuProps>>;
|
|
11
|
-
};
|
|
12
|
-
defaultIcon: {
|
|
13
|
-
type: PropType<DefineComponent<any, any, any, any>>;
|
|
14
|
-
};
|
|
15
|
-
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { MenuProps, MenuDataItem } from './types';
|
|
3
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MenuProps>, {
|
|
4
|
+
data: () => never[];
|
|
5
|
+
subMenuProps: () => {};
|
|
6
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
16
7
|
select: (item: MenuDataItem) => void;
|
|
17
|
-
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
18
|
-
data:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
22
|
-
subMenu: {
|
|
23
|
-
type: PropType<Partial<SubMenuProps>>;
|
|
24
|
-
};
|
|
25
|
-
defaultIcon: {
|
|
26
|
-
type: PropType<DefineComponent<any, any, any, any>>;
|
|
27
|
-
};
|
|
28
|
-
}>> & {
|
|
8
|
+
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MenuProps>, {
|
|
9
|
+
data: () => never[];
|
|
10
|
+
subMenuProps: () => {};
|
|
11
|
+
}>>> & {
|
|
29
12
|
onSelect?: ((item: MenuDataItem) => any) | undefined;
|
|
30
13
|
}, {
|
|
31
14
|
data: MenuDataItem[];
|
|
32
15
|
}, {}>;
|
|
33
16
|
export default _default;
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
type __VLS_WithDefaults<P, D> = {
|
|
27
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
28
|
+
default: D[K];
|
|
29
|
+
}> : P[K];
|
|
30
|
+
};
|
|
@@ -1,32 +1,18 @@
|
|
|
1
|
-
import { SubMenuProps } from 'element-plus';
|
|
2
1
|
import { MenuDataItem, SubMenuProps } from './types';
|
|
3
|
-
import {
|
|
2
|
+
import { ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, DefineComponent } from 'vue';
|
|
4
3
|
export interface Props {
|
|
5
4
|
item: MenuDataItem;
|
|
6
5
|
subMenu?: SubMenuProps;
|
|
7
6
|
defaultIcon?: DefineComponent<any, any, any, any>;
|
|
8
7
|
}
|
|
9
|
-
declare const _default: DefineComponent<{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
defaultIcon: {
|
|
18
|
-
type: PropType<DefineComponent<any, any, any, any>>;
|
|
19
|
-
};
|
|
20
|
-
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
21
|
-
item: {
|
|
22
|
-
type: PropType<MenuDataItem>;
|
|
8
|
+
declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
12
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
+
} : {
|
|
15
|
+
type: PropType<T[K]>;
|
|
23
16
|
required: true;
|
|
24
17
|
};
|
|
25
|
-
|
|
26
|
-
type: PropType<Partial<SubMenuProps>>;
|
|
27
|
-
};
|
|
28
|
-
defaultIcon: {
|
|
29
|
-
type: PropType<DefineComponent<any, any, any, any>>;
|
|
30
|
-
};
|
|
31
|
-
}>>, {}, {}>;
|
|
32
|
-
export default _default;
|
|
18
|
+
};
|
|
@@ -123,6 +123,9 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
123
123
|
type: BooleanConstructor;
|
|
124
124
|
default: boolean;
|
|
125
125
|
};
|
|
126
|
+
gap: {
|
|
127
|
+
type: BooleanConstructor;
|
|
128
|
+
};
|
|
126
129
|
}>>>>;
|
|
127
130
|
};
|
|
128
131
|
footer: {
|
|
@@ -187,6 +190,9 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
187
190
|
type: BooleanConstructor;
|
|
188
191
|
default: boolean;
|
|
189
192
|
};
|
|
193
|
+
gap: {
|
|
194
|
+
type: BooleanConstructor;
|
|
195
|
+
};
|
|
190
196
|
}>>>>;
|
|
191
197
|
};
|
|
192
198
|
}, {
|
|
@@ -313,6 +319,9 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
313
319
|
type: BooleanConstructor;
|
|
314
320
|
default: boolean;
|
|
315
321
|
};
|
|
322
|
+
gap: {
|
|
323
|
+
type: BooleanConstructor;
|
|
324
|
+
};
|
|
316
325
|
}>>>>;
|
|
317
326
|
};
|
|
318
327
|
footer: {
|
|
@@ -377,12 +386,15 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
377
386
|
type: BooleanConstructor;
|
|
378
387
|
default: boolean;
|
|
379
388
|
};
|
|
389
|
+
gap: {
|
|
390
|
+
type: BooleanConstructor;
|
|
391
|
+
};
|
|
380
392
|
}>>>>;
|
|
381
393
|
};
|
|
382
394
|
}>>, {
|
|
395
|
+
radius: boolean;
|
|
383
396
|
fit: boolean;
|
|
384
397
|
border: boolean;
|
|
385
|
-
radius: boolean;
|
|
386
398
|
card: boolean;
|
|
387
399
|
bodyPadding: boolean;
|
|
388
400
|
footerPadding: boolean;
|
|
@@ -153,6 +153,9 @@ export declare const panelProps: {
|
|
|
153
153
|
type: BooleanConstructor;
|
|
154
154
|
default: boolean;
|
|
155
155
|
};
|
|
156
|
+
gap: {
|
|
157
|
+
type: BooleanConstructor;
|
|
158
|
+
};
|
|
156
159
|
}>>>>;
|
|
157
160
|
};
|
|
158
161
|
footer: {
|
|
@@ -217,6 +220,9 @@ export declare const panelProps: {
|
|
|
217
220
|
type: BooleanConstructor;
|
|
218
221
|
default: boolean;
|
|
219
222
|
};
|
|
223
|
+
gap: {
|
|
224
|
+
type: BooleanConstructor;
|
|
225
|
+
};
|
|
220
226
|
}>>>>;
|
|
221
227
|
};
|
|
222
228
|
};
|
|
@@ -1,37 +1,19 @@
|
|
|
1
1
|
import { MaskProject } from '../shared';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
import { BaseMaskProps } from '../';
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BaseMaskProps>, {
|
|
5
|
+
project: () => {
|
|
6
|
+
name: string;
|
|
7
|
+
home: string;
|
|
7
8
|
};
|
|
8
|
-
|
|
9
|
-
type: PropType<boolean>;
|
|
10
|
-
};
|
|
11
|
-
project: {
|
|
12
|
-
type: PropType<MaskProject>;
|
|
13
|
-
default: () => {
|
|
14
|
-
name: string;
|
|
15
|
-
home: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
}, {
|
|
9
|
+
}>, {
|
|
19
10
|
goHome: () => void;
|
|
20
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
preview: {
|
|
25
|
-
type: PropType<boolean>;
|
|
26
|
-
};
|
|
27
|
-
project: {
|
|
28
|
-
type: PropType<MaskProject>;
|
|
29
|
-
default: () => {
|
|
30
|
-
name: string;
|
|
31
|
-
home: string;
|
|
32
|
-
};
|
|
11
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BaseMaskProps>, {
|
|
12
|
+
project: () => {
|
|
13
|
+
name: string;
|
|
14
|
+
home: string;
|
|
33
15
|
};
|
|
34
|
-
}
|
|
16
|
+
}>>>, {
|
|
35
17
|
project: MaskProject;
|
|
36
18
|
}, {}>, {
|
|
37
19
|
logo?(_: {}): any;
|
|
@@ -40,6 +22,20 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
|
40
22
|
footer?(_: {}): any;
|
|
41
23
|
}>;
|
|
42
24
|
export default _default;
|
|
25
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
26
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
27
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
28
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
29
|
+
} : {
|
|
30
|
+
type: PropType<T[K]>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
type __VLS_WithDefaults<P, D> = {
|
|
35
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
36
|
+
default: D[K];
|
|
37
|
+
}> : P[K];
|
|
38
|
+
};
|
|
43
39
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
44
40
|
new (): {
|
|
45
41
|
$slots: S;
|
|
@@ -1,40 +1,36 @@
|
|
|
1
|
-
import { DefineComponent,
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
export interface StartupProps {
|
|
3
3
|
text?: string;
|
|
4
4
|
link?: string;
|
|
5
5
|
example?: (link?: string) => void;
|
|
6
6
|
}
|
|
7
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
8
|
-
text:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
link:
|
|
13
|
-
|
|
14
|
-
default: string;
|
|
15
|
-
};
|
|
16
|
-
example: {
|
|
17
|
-
type: PropType<(link?: string | undefined) => void>;
|
|
18
|
-
};
|
|
19
|
-
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
20
|
-
text: {
|
|
21
|
-
type: PropType<string>;
|
|
22
|
-
default: string;
|
|
23
|
-
};
|
|
24
|
-
link: {
|
|
25
|
-
type: PropType<string>;
|
|
26
|
-
default: string;
|
|
27
|
-
};
|
|
28
|
-
example: {
|
|
29
|
-
type: PropType<(link?: string | undefined) => void>;
|
|
30
|
-
};
|
|
31
|
-
}>>, {
|
|
7
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<StartupProps>, {
|
|
8
|
+
text: string;
|
|
9
|
+
link: string;
|
|
10
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<StartupProps>, {
|
|
11
|
+
text: string;
|
|
12
|
+
link: string;
|
|
13
|
+
}>>>, {
|
|
32
14
|
text: string;
|
|
33
15
|
link: string;
|
|
34
16
|
}, {}>, {
|
|
35
17
|
default?(_: {}): any;
|
|
36
18
|
}>;
|
|
37
19
|
export default _default;
|
|
20
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
21
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
22
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
23
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
24
|
+
} : {
|
|
25
|
+
type: PropType<T[K]>;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
type __VLS_WithDefaults<P, D> = {
|
|
30
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
31
|
+
default: D[K];
|
|
32
|
+
}> : P[K];
|
|
33
|
+
};
|
|
38
34
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
39
35
|
new (): {
|
|
40
36
|
$slots: S;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { IconParam } from '..';
|
|
2
|
+
import { DefineComponent, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
3
|
+
import { TabsItem } from './types';
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
5
|
+
items: {
|
|
6
|
+
type: PropType<TabsItem[]>;
|
|
7
|
+
default(): never[];
|
|
8
|
+
};
|
|
9
|
+
border: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
};
|
|
12
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
13
|
+
items: {
|
|
14
|
+
type: PropType<TabsItem[]>;
|
|
15
|
+
default(): never[];
|
|
16
|
+
};
|
|
17
|
+
border: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
};
|
|
20
|
+
}>>, {
|
|
21
|
+
items: TabsItem[];
|
|
22
|
+
border: boolean;
|
|
23
|
+
}, {}>, {
|
|
24
|
+
label?(_: {
|
|
25
|
+
label: string;
|
|
26
|
+
name: string | number;
|
|
27
|
+
icon?: IconParam | undefined;
|
|
28
|
+
value?: string | number | undefined;
|
|
29
|
+
disabled?: boolean | undefined;
|
|
30
|
+
closable?: boolean | undefined;
|
|
31
|
+
lazy?: boolean | undefined;
|
|
32
|
+
component?: any;
|
|
33
|
+
props?: Record<string, any> | undefined;
|
|
34
|
+
}): any;
|
|
35
|
+
default?(_: {
|
|
36
|
+
label: string;
|
|
37
|
+
name: string | number;
|
|
38
|
+
icon?: IconParam | undefined;
|
|
39
|
+
value?: string | number | undefined;
|
|
40
|
+
disabled?: boolean | undefined;
|
|
41
|
+
closable?: boolean | undefined;
|
|
42
|
+
lazy?: boolean | undefined;
|
|
43
|
+
component?: any;
|
|
44
|
+
props?: Record<string, any> | undefined;
|
|
45
|
+
}): any;
|
|
46
|
+
}>;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$slots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ComponentPropsType } from '../shared';
|
|
3
|
+
import { IconParam } from '../';
|
|
4
|
+
export interface TabsItem {
|
|
5
|
+
label: string;
|
|
6
|
+
name: string | number;
|
|
7
|
+
icon?: IconParam;
|
|
8
|
+
value?: string | number;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
closable?: boolean;
|
|
11
|
+
lazy?: boolean;
|
|
12
|
+
component?: any;
|
|
13
|
+
props?: Record<string, any>;
|
|
14
|
+
}
|
|
15
|
+
export declare const tabsProps: {
|
|
16
|
+
items: {
|
|
17
|
+
type: PropType<TabsItem[]>;
|
|
18
|
+
default(): never[];
|
|
19
|
+
};
|
|
20
|
+
border: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export type TabsProps = ComponentPropsType<typeof tabsProps>;
|
package/types/list.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default:
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<any, any, any, any>[];
|
|
3
3
|
export default _default;
|
package/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.6.
|
|
1
|
+
export declare const version = "0.6.23";
|