lew-ui 2.1.4 → 2.1.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/components/alert/__test__/alert.test.d.ts +1 -0
- package/dist/components/alert/index.d.ts +2 -0
- package/dist/components/alert/src/LewAlert.vue.d.ts +22 -0
- package/dist/components/alert/src/props.d.ts +16 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/avatar/src/LewAvatar.vue.d.ts +93 -0
- package/dist/components/avatar/src/props.d.ts +48 -0
- package/dist/components/backtop/index.d.ts +2 -0
- package/dist/components/backtop/src/LewBackTop.vue.d.ts +60 -0
- package/dist/components/backtop/src/props.d.ts +25 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/badge/src/LewBadge.vue.d.ts +34 -0
- package/dist/components/badge/src/props.d.ts +17 -0
- package/dist/components/breadcrumb/index.d.ts +2 -0
- package/dist/components/breadcrumb/src/LewBreadcrumb.vue.d.ts +27 -0
- package/dist/components/breadcrumb/src/props.d.ts +21 -0
- package/dist/components/button/__test__/button.test.d.ts +1 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/src/LewButton.vue.d.ts +126 -0
- package/dist/components/button/src/props.d.ts +58 -0
- package/dist/components/cascader/index.d.ts +2 -0
- package/dist/components/cascader/src/LewCascader.vue.d.ts +148 -0
- package/dist/components/cascader/src/props.d.ts +80 -0
- package/dist/components/checkbox/index.d.ts +3 -0
- package/dist/components/checkbox/src/LewCheckbox.vue.d.ts +110 -0
- package/dist/components/checkbox/src/LewCheckboxGroup.vue.d.ts +8 -0
- package/dist/components/checkbox/src/props.d.ts +116 -0
- package/dist/components/date-picker/index.d.ts +5 -0
- package/dist/components/date-picker/src/LewDate.vue.d.ts +12 -0
- package/dist/components/date-picker/src/LewDatePicker.vue.d.ts +71 -0
- package/dist/components/date-picker/src/LewDateRange.vue.d.ts +35 -0
- package/dist/components/date-picker/src/LewDateRangePicker.vue.d.ts +104 -0
- package/dist/components/date-picker/src/date.d.ts +9 -0
- package/dist/components/date-picker/src/props.d.ts +101 -0
- package/dist/components/drawer/index.d.ts +2 -0
- package/dist/components/drawer/src/LewDrawer.vue.d.ts +60 -0
- package/dist/components/drawer/src/props.d.ts +27 -0
- package/dist/components/dropdown/index.d.ts +2 -0
- package/dist/components/dropdown/src/LewDropdown.vue.d.ts +87 -0
- package/dist/components/dropdown/src/props.d.ts +39 -0
- package/dist/components/empty/index.d.ts +2 -0
- package/dist/components/empty/src/LewEmpty.vue.d.ts +51 -0
- package/dist/components/empty/src/props.d.ts +28 -0
- package/dist/components/flex/index.d.ts +2 -0
- package/dist/components/flex/src/LewFlex.vue.d.ts +95 -0
- package/dist/components/flex/src/props.d.ts +43 -0
- package/dist/components/form/index.d.ts +2 -0
- package/dist/components/form/src/LewForm.vue.d.ts +56 -0
- package/dist/components/form/src/props.d.ts +37 -0
- package/dist/components/icon/index.d.ts +3 -0
- package/dist/components/index.d.ts +37 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input/src/LewInput.vue.d.ts +275 -0
- package/dist/components/input/src/props.d.ts +134 -0
- package/dist/components/input-tag/index.d.ts +2 -0
- package/dist/components/input-tag/src/LewInputTag.vue.d.ts +12 -0
- package/dist/components/input-tag/src/props.d.ts +10 -0
- package/dist/components/magic-number/index.d.ts +2 -0
- package/dist/components/magic-number/src/LewMagicNumber.vue.d.ts +38 -0
- package/dist/components/magic-number/src/props.d.ts +20 -0
- package/dist/components/mark/index.d.ts +2 -0
- package/dist/components/mark/src/LewMark.vue.d.ts +58 -0
- package/dist/components/mark/src/props.d.ts +28 -0
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/components/menu/src/LewMenu.vue.d.ts +35 -0
- package/dist/components/menu/src/props.d.ts +26 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/src/LewModal.vue.d.ts +161 -0
- package/dist/components/modal/src/props.d.ts +65 -0
- package/dist/components/pagination/index.d.ts +2 -0
- package/dist/components/pagination/src/LewPagination.vue.d.ts +42 -0
- package/dist/components/pagination/src/props.d.ts +39 -0
- package/dist/components/popok/index.d.ts +2 -0
- package/dist/components/popok/src/LewPopok.vue.d.ts +146 -0
- package/dist/components/popok/src/props.d.ts +52 -0
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/popover/src/LewPopover.vue.d.ts +118 -0
- package/dist/components/popover/src/props.d.ts +47 -0
- package/dist/components/radio/index.d.ts +2 -0
- package/dist/components/radio/src/LewRadio.vue.d.ts +97 -0
- package/dist/components/radio/src/LewRadioGroup.vue.d.ts +90 -0
- package/dist/components/radio/src/props.d.ts +96 -0
- package/dist/components/result/index.d.ts +2 -0
- package/dist/components/result/src/LewResult.vue.d.ts +45 -0
- package/dist/components/result/src/props.d.ts +17 -0
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/src/LewSelect.vue.d.ts +186 -0
- package/dist/components/select/src/props.d.ts +90 -0
- package/dist/components/select-multiple/index.d.ts +2 -0
- package/dist/components/select-multiple/src/LewSelectMultiple.vue.d.ts +212 -0
- package/dist/components/select-multiple/src/props.d.ts +100 -0
- package/dist/components/steps/index.d.ts +2 -0
- package/dist/components/steps/src/props.d.ts +39 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/switch/src/LewSwitch.vue.d.ts +57 -0
- package/dist/components/switch/src/props.d.ts +34 -0
- package/dist/components/table/index.d.ts +2 -0
- package/dist/components/table/src/LewTable.vue.d.ts +88 -0
- package/dist/components/table/src/props.d.ts +43 -0
- package/dist/components/tabs/index.d.ts +2 -0
- package/dist/components/tabs/src/LewTabs.vue.d.ts +85 -0
- package/dist/components/tabs/src/props.d.ts +49 -0
- package/dist/components/tag/index.d.ts +2 -0
- package/dist/components/tag/src/LewTag.vue.d.ts +84 -0
- package/dist/components/tag/src/props.d.ts +39 -0
- package/dist/components/text-trim/index.d.ts +2 -0
- package/dist/components/text-trim/src/LewTextTrim.vue.d.ts +82 -0
- package/dist/components/text-trim/src/props.d.ts +40 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/src/LewTextarea.vue.d.ts +159 -0
- package/dist/components/textarea/src/props.d.ts +72 -0
- package/dist/components/title/index.d.ts +2 -0
- package/dist/components/title/src/LewTitle.vue.d.ts +45 -0
- package/dist/components/title/src/props.d.ts +23 -0
- package/dist/components/tree/index.d.ts +2 -0
- package/dist/components/tree/src/LewTree.vue.d.ts +189 -0
- package/dist/components/tree/src/props.d.ts +99 -0
- package/dist/components/tree/src/tree2list.d.ts +25 -0
- package/dist/components/tree-select/index.d.ts +2 -0
- package/dist/components/tree-select/src/LewTreeSelect.vue.d.ts +263 -0
- package/dist/components/tree-select/src/props.d.ts +136 -0
- package/dist/directives/backtop/index.d.ts +1 -0
- package/dist/directives/backtop/src/index.d.ts +6 -0
- package/dist/directives/dialog/index.d.ts +2 -0
- package/dist/directives/dialog/src/LewDialog.vue.d.ts +118 -0
- package/dist/directives/dialog/src/index.d.ts +20 -0
- package/dist/directives/dialog/src/props.d.ts +50 -0
- package/dist/directives/index.d.ts +6 -0
- package/dist/directives/loading/index.d.ts +1 -0
- package/dist/directives/loading/src/index.d.ts +6 -0
- package/dist/directives/message/index.d.ts +1 -0
- package/dist/directives/message/src/index.d.ts +3 -0
- package/dist/directives/notification/index.d.ts +2 -0
- package/dist/directives/notification/src/index.d.ts +17 -0
- package/dist/directives/tooltip/index.d.ts +1 -0
- package/dist/directives/tooltip/src/index.d.ts +6 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/src/useDOMCreate.d.ts +1 -0
- package/dist/hooks/src/useEventListener.d.ts +1 -0
- package/dist/hooks/src/useLewTo.d.ts +3 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.mjs +3154 -7012
- package/dist/index.umd.js +243 -251
- package/dist/style.css +1 -1
- package/dist/utils/index.d.ts +12 -0
- package/package.json +7 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AlertItem } from './props';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<{
|
|
4
|
+
list: {
|
|
5
|
+
type: globalThis.PropType<AlertItem[]>;
|
|
6
|
+
default: never[];
|
|
7
|
+
description: string;
|
|
8
|
+
};
|
|
9
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
close: (...args: any[]) => void;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
12
|
+
list: {
|
|
13
|
+
type: globalThis.PropType<AlertItem[]>;
|
|
14
|
+
default: never[];
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
}>> & {
|
|
18
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
list: AlertItem[];
|
|
21
|
+
}, {}>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
+
|
|
3
|
+
export type AlertItem = {
|
|
4
|
+
type: string;
|
|
5
|
+
title: string;
|
|
6
|
+
content?: string;
|
|
7
|
+
closeable?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const alertProps: {
|
|
10
|
+
list: {
|
|
11
|
+
type: PropType<AlertItem[]>;
|
|
12
|
+
default: never[];
|
|
13
|
+
description: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export type AlertProps = ExtractPropTypes<typeof alertProps>;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
round: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
status: {
|
|
8
|
+
type: globalThis.PropType<"online" | "processing" | "away" | "offline" | "busy">;
|
|
9
|
+
default: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
statusPosition: {
|
|
13
|
+
type: globalThis.PropType<"top" | "left" | "right" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "left-top" | "left-bottom" | "right-top" | "right-bottom">;
|
|
14
|
+
default: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
width: {
|
|
18
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
19
|
+
default: number;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
height: {
|
|
23
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
24
|
+
default: number;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
errorSrc: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
src: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
alt: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: string;
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
42
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
43
|
+
round: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
description: string;
|
|
47
|
+
};
|
|
48
|
+
status: {
|
|
49
|
+
type: globalThis.PropType<"online" | "processing" | "away" | "offline" | "busy">;
|
|
50
|
+
default: string;
|
|
51
|
+
description: string;
|
|
52
|
+
};
|
|
53
|
+
statusPosition: {
|
|
54
|
+
type: globalThis.PropType<"top" | "left" | "right" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "left-top" | "left-bottom" | "right-top" | "right-bottom">;
|
|
55
|
+
default: string;
|
|
56
|
+
description: string;
|
|
57
|
+
};
|
|
58
|
+
width: {
|
|
59
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
60
|
+
default: number;
|
|
61
|
+
description: string;
|
|
62
|
+
};
|
|
63
|
+
height: {
|
|
64
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
65
|
+
default: number;
|
|
66
|
+
description: string;
|
|
67
|
+
};
|
|
68
|
+
errorSrc: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
default: string;
|
|
71
|
+
description: string;
|
|
72
|
+
};
|
|
73
|
+
src: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: string;
|
|
76
|
+
description: string;
|
|
77
|
+
};
|
|
78
|
+
alt: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
default: string;
|
|
81
|
+
description: string;
|
|
82
|
+
};
|
|
83
|
+
}>>, {
|
|
84
|
+
round: boolean;
|
|
85
|
+
status: "online" | "processing" | "away" | "offline" | "busy";
|
|
86
|
+
statusPosition: "top" | "left" | "right" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "left-top" | "left-bottom" | "right-top" | "right-bottom";
|
|
87
|
+
width: string | number;
|
|
88
|
+
height: string | number;
|
|
89
|
+
errorSrc: string;
|
|
90
|
+
src: string;
|
|
91
|
+
alt: string;
|
|
92
|
+
}, {}>;
|
|
93
|
+
export default _default;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
|
|
3
|
+
type AvatarPosition = 'top' | 'left' | 'right' | 'bottom' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'left-top' | 'left-bottom' | 'right-top' | 'right-bottom';
|
|
4
|
+
type AvatarStatus = 'online' | 'processing' | 'away' | 'offline' | 'busy';
|
|
5
|
+
export declare const avatarProps: {
|
|
6
|
+
round: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
description: string;
|
|
10
|
+
};
|
|
11
|
+
status: {
|
|
12
|
+
type: PropType<AvatarStatus>;
|
|
13
|
+
default: string;
|
|
14
|
+
description: string;
|
|
15
|
+
};
|
|
16
|
+
statusPosition: {
|
|
17
|
+
type: PropType<AvatarPosition>;
|
|
18
|
+
default: string;
|
|
19
|
+
description: string;
|
|
20
|
+
};
|
|
21
|
+
width: {
|
|
22
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
23
|
+
default: number;
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
height: {
|
|
27
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
28
|
+
default: number;
|
|
29
|
+
description: string;
|
|
30
|
+
};
|
|
31
|
+
errorSrc: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
description: string;
|
|
35
|
+
};
|
|
36
|
+
src: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: string;
|
|
39
|
+
description: string;
|
|
40
|
+
};
|
|
41
|
+
alt: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
description: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export type AvatarProps = ExtractPropTypes<typeof avatarProps>;
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
2
|
+
right: {
|
|
3
|
+
type: NumberConstructor;
|
|
4
|
+
default: number;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
bottom: {
|
|
8
|
+
type: NumberConstructor;
|
|
9
|
+
default: number;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
valveHeight: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
default: number;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
target: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
23
|
+
click: (...args: any[]) => void;
|
|
24
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
25
|
+
right: {
|
|
26
|
+
type: NumberConstructor;
|
|
27
|
+
default: number;
|
|
28
|
+
description: string;
|
|
29
|
+
};
|
|
30
|
+
bottom: {
|
|
31
|
+
type: NumberConstructor;
|
|
32
|
+
default: number;
|
|
33
|
+
description: string;
|
|
34
|
+
};
|
|
35
|
+
valveHeight: {
|
|
36
|
+
type: NumberConstructor;
|
|
37
|
+
default: number;
|
|
38
|
+
description: string;
|
|
39
|
+
};
|
|
40
|
+
target: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
description: string;
|
|
44
|
+
};
|
|
45
|
+
}>> & {
|
|
46
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
right: number;
|
|
49
|
+
bottom: number;
|
|
50
|
+
valveHeight: number;
|
|
51
|
+
target: string;
|
|
52
|
+
}, {}>, {
|
|
53
|
+
default?(_: {}): any;
|
|
54
|
+
}>;
|
|
55
|
+
export default _default;
|
|
56
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
57
|
+
new (): {
|
|
58
|
+
$slots: S;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
|
|
3
|
+
export declare const backTopProps: {
|
|
4
|
+
right: {
|
|
5
|
+
type: NumberConstructor;
|
|
6
|
+
default: number;
|
|
7
|
+
description: string;
|
|
8
|
+
};
|
|
9
|
+
bottom: {
|
|
10
|
+
type: NumberConstructor;
|
|
11
|
+
default: number;
|
|
12
|
+
description: string;
|
|
13
|
+
};
|
|
14
|
+
valveHeight: {
|
|
15
|
+
type: NumberConstructor;
|
|
16
|
+
default: number;
|
|
17
|
+
description: string;
|
|
18
|
+
};
|
|
19
|
+
target: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
description: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export type BackTopProps = ExtractPropTypes<typeof backTopProps>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
2
|
+
value: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
color: {
|
|
8
|
+
type: globalThis.PropType<"red" | "orange" | "yellow" | "green" | "mint" | "teal" | "cyan" | "blue" | "indigo" | "purple" | "pink" | "gray" | "brown">;
|
|
9
|
+
default: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
13
|
+
value: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
color: {
|
|
19
|
+
type: globalThis.PropType<"red" | "orange" | "yellow" | "green" | "mint" | "teal" | "cyan" | "blue" | "indigo" | "purple" | "pink" | "gray" | "brown">;
|
|
20
|
+
default: string;
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
}>>, {
|
|
24
|
+
value: string;
|
|
25
|
+
color: "red" | "orange" | "yellow" | "green" | "mint" | "teal" | "cyan" | "blue" | "indigo" | "purple" | "pink" | "gray" | "brown";
|
|
26
|
+
}, {}>, {
|
|
27
|
+
default?(_: {}): any;
|
|
28
|
+
}>;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
|
|
3
|
+
type badgeColor = 'red' | 'orange' | 'yellow' | 'green' | 'mint' | 'teal' | 'cyan' | 'blue' | 'indigo' | 'purple' | 'pink' | 'gray' | 'brown';
|
|
4
|
+
export declare const badgeProps: {
|
|
5
|
+
value: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: string;
|
|
8
|
+
description: string;
|
|
9
|
+
};
|
|
10
|
+
color: {
|
|
11
|
+
type: PropType<badgeColor>;
|
|
12
|
+
default: string;
|
|
13
|
+
description: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export type BadgeProps = ExtractPropTypes<typeof badgeProps>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
options: {
|
|
3
|
+
type: globalThis.PropType<import('./props').BreadcrumbOptions[]>;
|
|
4
|
+
default: never[];
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
iconType: {
|
|
8
|
+
type: globalThis.PropType<import('./props').BreadcrumbIconType>;
|
|
9
|
+
default: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
13
|
+
options: {
|
|
14
|
+
type: globalThis.PropType<import('./props').BreadcrumbOptions[]>;
|
|
15
|
+
default: never[];
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
iconType: {
|
|
19
|
+
type: globalThis.PropType<import('./props').BreadcrumbIconType>;
|
|
20
|
+
default: string;
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
}>>, {
|
|
24
|
+
options: import('./props').BreadcrumbOptions[];
|
|
25
|
+
iconType: import('./props').BreadcrumbIconType;
|
|
26
|
+
}, {}>;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
+
|
|
3
|
+
export type BreadcrumbOptions = {
|
|
4
|
+
label: string;
|
|
5
|
+
to: string;
|
|
6
|
+
active: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type BreadcrumbIconType = 'shoulder' | 'sprit';
|
|
9
|
+
export declare const breadcrumbProps: {
|
|
10
|
+
options: {
|
|
11
|
+
type: PropType<BreadcrumbOptions[]>;
|
|
12
|
+
default: never[];
|
|
13
|
+
description: string;
|
|
14
|
+
};
|
|
15
|
+
iconType: {
|
|
16
|
+
type: PropType<BreadcrumbIconType>;
|
|
17
|
+
default: string;
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export type BreadcrumbProps = ExtractPropTypes<typeof breadcrumbProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
2
|
+
color: {
|
|
3
|
+
type: globalThis.PropType<import('./props').ButtonColor>;
|
|
4
|
+
default: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
text: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
type: {
|
|
13
|
+
type: globalThis.PropType<import('./props').ButtonType>;
|
|
14
|
+
default: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
icon: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
iconPosition: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
size: {
|
|
28
|
+
type: globalThis.PropType<import('./props').ButtonSize>;
|
|
29
|
+
default: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
loading: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
request: {
|
|
38
|
+
type: FunctionConstructor;
|
|
39
|
+
default: null;
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
42
|
+
disabled: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
round: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
53
|
+
click: (...args: any[]) => void;
|
|
54
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
55
|
+
color: {
|
|
56
|
+
type: globalThis.PropType<import('./props').ButtonColor>;
|
|
57
|
+
default: string;
|
|
58
|
+
description: string;
|
|
59
|
+
};
|
|
60
|
+
text: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
description: string;
|
|
64
|
+
};
|
|
65
|
+
type: {
|
|
66
|
+
type: globalThis.PropType<import('./props').ButtonType>;
|
|
67
|
+
default: string;
|
|
68
|
+
description: string;
|
|
69
|
+
};
|
|
70
|
+
icon: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
default: string;
|
|
73
|
+
description: string;
|
|
74
|
+
};
|
|
75
|
+
iconPosition: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
default: string;
|
|
78
|
+
description: string;
|
|
79
|
+
};
|
|
80
|
+
size: {
|
|
81
|
+
type: globalThis.PropType<import('./props').ButtonSize>;
|
|
82
|
+
default: string;
|
|
83
|
+
description: string;
|
|
84
|
+
};
|
|
85
|
+
loading: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
description: string;
|
|
89
|
+
};
|
|
90
|
+
request: {
|
|
91
|
+
type: FunctionConstructor;
|
|
92
|
+
default: null;
|
|
93
|
+
description: string;
|
|
94
|
+
};
|
|
95
|
+
disabled: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: boolean;
|
|
98
|
+
description: string;
|
|
99
|
+
};
|
|
100
|
+
round: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: boolean;
|
|
103
|
+
description: string;
|
|
104
|
+
};
|
|
105
|
+
}>> & {
|
|
106
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
107
|
+
}, {
|
|
108
|
+
text: string;
|
|
109
|
+
type: import('./props').ButtonType;
|
|
110
|
+
size: import('./props').ButtonSize;
|
|
111
|
+
round: boolean;
|
|
112
|
+
color: import('./props').ButtonColor;
|
|
113
|
+
icon: string;
|
|
114
|
+
iconPosition: string;
|
|
115
|
+
loading: boolean;
|
|
116
|
+
request: Function;
|
|
117
|
+
disabled: boolean;
|
|
118
|
+
}, {}>, {
|
|
119
|
+
default?(_: {}): any;
|
|
120
|
+
}>;
|
|
121
|
+
export default _default;
|
|
122
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
123
|
+
new (): {
|
|
124
|
+
$slots: S;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
+
|
|
3
|
+
export type ButtonColor = 'red' | 'orange' | 'yellow' | 'green' | 'mint' | 'teal' | 'cyan' | 'blue' | 'indigo' | 'purple' | 'pink' | 'gray' | 'brown';
|
|
4
|
+
export type ButtonSize = 'small' | 'medium' | 'large';
|
|
5
|
+
export type ButtonType = 'fill' | 'light' | 'ghost' | 'text';
|
|
6
|
+
export declare const buttonProps: {
|
|
7
|
+
color: {
|
|
8
|
+
type: PropType<ButtonColor>;
|
|
9
|
+
default: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
text: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
type: {
|
|
18
|
+
type: PropType<ButtonType>;
|
|
19
|
+
default: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
icon: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
iconPosition: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
size: {
|
|
33
|
+
type: PropType<ButtonSize>;
|
|
34
|
+
default: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
loading: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
42
|
+
request: {
|
|
43
|
+
type: FunctionConstructor;
|
|
44
|
+
default: null;
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
disabled: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
round: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export type ButtonProps = ExtractPropTypes<typeof buttonProps>;
|