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,97 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
checked: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
label: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
round: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
block: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
iconable: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
disabled: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
readonly: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
size: {
|
|
38
|
+
type: globalThis.PropType<import('./props').RadioSize>;
|
|
39
|
+
default: string;
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
42
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
43
|
+
change: (...args: any[]) => void;
|
|
44
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
45
|
+
checked: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
description: string;
|
|
49
|
+
};
|
|
50
|
+
label: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
description: string;
|
|
54
|
+
};
|
|
55
|
+
round: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
description: string;
|
|
59
|
+
};
|
|
60
|
+
block: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
description: string;
|
|
64
|
+
};
|
|
65
|
+
iconable: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
description: string;
|
|
69
|
+
};
|
|
70
|
+
disabled: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: boolean;
|
|
73
|
+
description: string;
|
|
74
|
+
};
|
|
75
|
+
readonly: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
description: string;
|
|
79
|
+
};
|
|
80
|
+
size: {
|
|
81
|
+
type: globalThis.PropType<import('./props').RadioSize>;
|
|
82
|
+
default: string;
|
|
83
|
+
description: string;
|
|
84
|
+
};
|
|
85
|
+
}>> & {
|
|
86
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
87
|
+
}, {
|
|
88
|
+
label: string;
|
|
89
|
+
size: import('./props').RadioSize;
|
|
90
|
+
round: boolean;
|
|
91
|
+
disabled: boolean;
|
|
92
|
+
readonly: boolean;
|
|
93
|
+
checked: boolean;
|
|
94
|
+
block: boolean;
|
|
95
|
+
iconable: boolean;
|
|
96
|
+
}, {}>;
|
|
97
|
+
export default _default;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { RadioOptions } from './props';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<{
|
|
4
|
+
modelValue: globalThis.PropType<string | number | undefined>;
|
|
5
|
+
block: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: boolean;
|
|
8
|
+
description: string;
|
|
9
|
+
};
|
|
10
|
+
direction: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
description: string;
|
|
14
|
+
};
|
|
15
|
+
iconable: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
disabled: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
25
|
+
readonly: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
description: string;
|
|
29
|
+
};
|
|
30
|
+
size: {
|
|
31
|
+
type: globalThis.PropType<import('./props').RadioSize>;
|
|
32
|
+
default: string;
|
|
33
|
+
description: string;
|
|
34
|
+
};
|
|
35
|
+
options: {
|
|
36
|
+
type: globalThis.PropType<RadioOptions[]>;
|
|
37
|
+
default: never[];
|
|
38
|
+
description: string;
|
|
39
|
+
};
|
|
40
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
41
|
+
change: (...args: any[]) => void;
|
|
42
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
43
|
+
modelValue: globalThis.PropType<string | number | undefined>;
|
|
44
|
+
block: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
description: string;
|
|
48
|
+
};
|
|
49
|
+
direction: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: string;
|
|
52
|
+
description: string;
|
|
53
|
+
};
|
|
54
|
+
iconable: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
default: boolean;
|
|
57
|
+
description: string;
|
|
58
|
+
};
|
|
59
|
+
disabled: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
description: string;
|
|
63
|
+
};
|
|
64
|
+
readonly: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
description: string;
|
|
68
|
+
};
|
|
69
|
+
size: {
|
|
70
|
+
type: globalThis.PropType<import('./props').RadioSize>;
|
|
71
|
+
default: string;
|
|
72
|
+
description: string;
|
|
73
|
+
};
|
|
74
|
+
options: {
|
|
75
|
+
type: globalThis.PropType<RadioOptions[]>;
|
|
76
|
+
default: never[];
|
|
77
|
+
description: string;
|
|
78
|
+
};
|
|
79
|
+
}>> & {
|
|
80
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
81
|
+
}, {
|
|
82
|
+
size: import('./props').RadioSize;
|
|
83
|
+
options: RadioOptions[];
|
|
84
|
+
disabled: boolean;
|
|
85
|
+
readonly: boolean;
|
|
86
|
+
block: boolean;
|
|
87
|
+
iconable: boolean;
|
|
88
|
+
direction: string;
|
|
89
|
+
}, {}>;
|
|
90
|
+
export default _default;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
+
|
|
3
|
+
export type RadioOptions = {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string | number;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type RadioSize = 'small' | 'medium' | 'large';
|
|
9
|
+
export declare const radioProps: {
|
|
10
|
+
checked: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
description: string;
|
|
14
|
+
};
|
|
15
|
+
label: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
round: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
25
|
+
block: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
description: string;
|
|
29
|
+
};
|
|
30
|
+
iconable: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
description: string;
|
|
34
|
+
};
|
|
35
|
+
disabled: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
description: string;
|
|
39
|
+
};
|
|
40
|
+
readonly: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
description: string;
|
|
44
|
+
};
|
|
45
|
+
size: {
|
|
46
|
+
type: PropType<RadioSize>;
|
|
47
|
+
default: string;
|
|
48
|
+
description: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export declare const radioGroupModel: {
|
|
52
|
+
modelValue: {
|
|
53
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
54
|
+
default: string;
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export declare const radioGroupProps: {
|
|
59
|
+
block: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
description: string;
|
|
63
|
+
};
|
|
64
|
+
direction: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
default: string;
|
|
67
|
+
description: string;
|
|
68
|
+
};
|
|
69
|
+
iconable: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
default: boolean;
|
|
72
|
+
description: string;
|
|
73
|
+
};
|
|
74
|
+
disabled: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
description: string;
|
|
78
|
+
};
|
|
79
|
+
readonly: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: boolean;
|
|
82
|
+
description: string;
|
|
83
|
+
};
|
|
84
|
+
size: {
|
|
85
|
+
type: PropType<RadioSize>;
|
|
86
|
+
default: string;
|
|
87
|
+
description: string;
|
|
88
|
+
};
|
|
89
|
+
options: {
|
|
90
|
+
type: PropType<RadioOptions[]>;
|
|
91
|
+
default: never[];
|
|
92
|
+
description: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
export type RadioProps = ExtractPropTypes<typeof radioProps>;
|
|
96
|
+
export type RadioGroupProps = ExtractPropTypes<typeof radioGroupProps>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
2
|
+
type: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
title: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
content: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
18
|
+
type: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
title: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
description: string;
|
|
27
|
+
};
|
|
28
|
+
content: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: string;
|
|
31
|
+
description: string;
|
|
32
|
+
};
|
|
33
|
+
}>>, {
|
|
34
|
+
title: string;
|
|
35
|
+
content: string;
|
|
36
|
+
type: string;
|
|
37
|
+
}, {}>, {
|
|
38
|
+
handle?(_: {}): any;
|
|
39
|
+
}>;
|
|
40
|
+
export default _default;
|
|
41
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const resultProps: {
|
|
2
|
+
type: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
title: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
content: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { SelectOptions } from './props';
|
|
2
|
+
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
4
|
+
modelValue: globalThis.PropType<string | number | undefined>;
|
|
5
|
+
defaultValue: {
|
|
6
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
7
|
+
default: string;
|
|
8
|
+
description: string;
|
|
9
|
+
};
|
|
10
|
+
options: {
|
|
11
|
+
type: globalThis.PropType<SelectOptions[]>;
|
|
12
|
+
default: never[];
|
|
13
|
+
description: string;
|
|
14
|
+
};
|
|
15
|
+
trigger: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
placeholder: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
25
|
+
size: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
description: string;
|
|
29
|
+
};
|
|
30
|
+
itemHeight: {
|
|
31
|
+
type: NumberConstructor;
|
|
32
|
+
default: number;
|
|
33
|
+
description: string;
|
|
34
|
+
};
|
|
35
|
+
searchable: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
description: string;
|
|
39
|
+
};
|
|
40
|
+
searchMethod: {
|
|
41
|
+
type: globalThis.PropType<(e: import('./props').SelectSearchMethodParams) => void>;
|
|
42
|
+
default: (params: import('./props').SelectSearchMethodParams) => SelectOptions[];
|
|
43
|
+
description: string;
|
|
44
|
+
};
|
|
45
|
+
searchDelay: {
|
|
46
|
+
type: NumberConstructor;
|
|
47
|
+
default: number;
|
|
48
|
+
description: string;
|
|
49
|
+
};
|
|
50
|
+
clearable: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: () => boolean;
|
|
53
|
+
description: string;
|
|
54
|
+
};
|
|
55
|
+
readonly: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: () => boolean;
|
|
58
|
+
description: string;
|
|
59
|
+
};
|
|
60
|
+
disabled: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: () => boolean;
|
|
63
|
+
description: string;
|
|
64
|
+
};
|
|
65
|
+
align: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: string;
|
|
68
|
+
description: string;
|
|
69
|
+
};
|
|
70
|
+
showCheckIcon: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: () => boolean;
|
|
73
|
+
description: string;
|
|
74
|
+
};
|
|
75
|
+
}, {
|
|
76
|
+
show: () => void;
|
|
77
|
+
hide: () => void;
|
|
78
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
79
|
+
change: (...args: any[]) => void;
|
|
80
|
+
blur: (...args: any[]) => void;
|
|
81
|
+
clear: (...args: any[]) => void;
|
|
82
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
83
|
+
modelValue: globalThis.PropType<string | number | undefined>;
|
|
84
|
+
defaultValue: {
|
|
85
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
86
|
+
default: string;
|
|
87
|
+
description: string;
|
|
88
|
+
};
|
|
89
|
+
options: {
|
|
90
|
+
type: globalThis.PropType<SelectOptions[]>;
|
|
91
|
+
default: never[];
|
|
92
|
+
description: string;
|
|
93
|
+
};
|
|
94
|
+
trigger: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
default: string;
|
|
97
|
+
description: string;
|
|
98
|
+
};
|
|
99
|
+
placeholder: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
default: string;
|
|
102
|
+
description: string;
|
|
103
|
+
};
|
|
104
|
+
size: {
|
|
105
|
+
type: StringConstructor;
|
|
106
|
+
default: string;
|
|
107
|
+
description: string;
|
|
108
|
+
};
|
|
109
|
+
itemHeight: {
|
|
110
|
+
type: NumberConstructor;
|
|
111
|
+
default: number;
|
|
112
|
+
description: string;
|
|
113
|
+
};
|
|
114
|
+
searchable: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: boolean;
|
|
117
|
+
description: string;
|
|
118
|
+
};
|
|
119
|
+
searchMethod: {
|
|
120
|
+
type: globalThis.PropType<(e: import('./props').SelectSearchMethodParams) => void>;
|
|
121
|
+
default: (params: import('./props').SelectSearchMethodParams) => SelectOptions[];
|
|
122
|
+
description: string;
|
|
123
|
+
};
|
|
124
|
+
searchDelay: {
|
|
125
|
+
type: NumberConstructor;
|
|
126
|
+
default: number;
|
|
127
|
+
description: string;
|
|
128
|
+
};
|
|
129
|
+
clearable: {
|
|
130
|
+
type: BooleanConstructor;
|
|
131
|
+
default: () => boolean;
|
|
132
|
+
description: string;
|
|
133
|
+
};
|
|
134
|
+
readonly: {
|
|
135
|
+
type: BooleanConstructor;
|
|
136
|
+
default: () => boolean;
|
|
137
|
+
description: string;
|
|
138
|
+
};
|
|
139
|
+
disabled: {
|
|
140
|
+
type: BooleanConstructor;
|
|
141
|
+
default: () => boolean;
|
|
142
|
+
description: string;
|
|
143
|
+
};
|
|
144
|
+
align: {
|
|
145
|
+
type: StringConstructor;
|
|
146
|
+
default: string;
|
|
147
|
+
description: string;
|
|
148
|
+
};
|
|
149
|
+
showCheckIcon: {
|
|
150
|
+
type: BooleanConstructor;
|
|
151
|
+
default: () => boolean;
|
|
152
|
+
description: string;
|
|
153
|
+
};
|
|
154
|
+
}>> & {
|
|
155
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
156
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
157
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
158
|
+
}, {
|
|
159
|
+
size: string;
|
|
160
|
+
options: SelectOptions[];
|
|
161
|
+
disabled: boolean;
|
|
162
|
+
trigger: string;
|
|
163
|
+
placeholder: string;
|
|
164
|
+
clearable: boolean;
|
|
165
|
+
readonly: boolean;
|
|
166
|
+
align: string;
|
|
167
|
+
showCheckIcon: boolean;
|
|
168
|
+
defaultValue: string | number;
|
|
169
|
+
itemHeight: number;
|
|
170
|
+
searchable: boolean;
|
|
171
|
+
searchMethod: (e: import('./props').SelectSearchMethodParams) => void;
|
|
172
|
+
searchDelay: number;
|
|
173
|
+
}, {}>, {
|
|
174
|
+
header?(_: {}): any;
|
|
175
|
+
empty?(_: {}): any;
|
|
176
|
+
item?(_: {
|
|
177
|
+
props: any;
|
|
178
|
+
}): any;
|
|
179
|
+
footer?(_: {}): any;
|
|
180
|
+
}>;
|
|
181
|
+
export default _default;
|
|
182
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
183
|
+
new (): {
|
|
184
|
+
$slots: S;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
|
|
3
|
+
export type SelectOptions = {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string | number;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type SelectSearchMethodParams = {
|
|
9
|
+
options?: SelectOptions[];
|
|
10
|
+
keyword?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const selectModel: {
|
|
13
|
+
modelValue: {
|
|
14
|
+
type: (StringConstructor | NumberConstructor | undefined)[];
|
|
15
|
+
default: string;
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export declare const selectProps: {
|
|
20
|
+
defaultValue: {
|
|
21
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
22
|
+
default: string;
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
25
|
+
options: {
|
|
26
|
+
type: PropType<SelectOptions[]>;
|
|
27
|
+
default: never[];
|
|
28
|
+
description: string;
|
|
29
|
+
};
|
|
30
|
+
trigger: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
description: string;
|
|
34
|
+
};
|
|
35
|
+
placeholder: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
description: string;
|
|
39
|
+
};
|
|
40
|
+
size: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
description: string;
|
|
44
|
+
};
|
|
45
|
+
itemHeight: {
|
|
46
|
+
type: NumberConstructor;
|
|
47
|
+
default: number;
|
|
48
|
+
description: string;
|
|
49
|
+
};
|
|
50
|
+
searchable: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
description: string;
|
|
54
|
+
};
|
|
55
|
+
searchMethod: {
|
|
56
|
+
type: PropType<(e: SelectSearchMethodParams) => void>;
|
|
57
|
+
default: (params: SelectSearchMethodParams) => SelectOptions[];
|
|
58
|
+
description: string;
|
|
59
|
+
};
|
|
60
|
+
searchDelay: {
|
|
61
|
+
type: NumberConstructor;
|
|
62
|
+
default: number;
|
|
63
|
+
description: string;
|
|
64
|
+
};
|
|
65
|
+
clearable: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: () => boolean;
|
|
68
|
+
description: string;
|
|
69
|
+
};
|
|
70
|
+
readonly: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: () => boolean;
|
|
73
|
+
description: string;
|
|
74
|
+
};
|
|
75
|
+
disabled: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: () => boolean;
|
|
78
|
+
description: string;
|
|
79
|
+
};
|
|
80
|
+
align: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
default: string;
|
|
83
|
+
description: string;
|
|
84
|
+
};
|
|
85
|
+
showCheckIcon: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: () => boolean;
|
|
88
|
+
description: string;
|
|
89
|
+
};
|
|
90
|
+
};
|