lew-ui 2.1.3 → 2.1.5
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/LICENSE +21 -21
- package/README.md +53 -53
- 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 +7869 -10826
- package/dist/index.umd.js +243 -251
- package/dist/style.css +1 -1
- package/dist/utils/index.d.ts +12 -0
- package/package.json +15 -12
|
@@ -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>;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { CascaderOptions } from './props';
|
|
2
|
+
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
4
|
+
modelValue: globalThis.PropType<string | number | undefined>;
|
|
5
|
+
options: {
|
|
6
|
+
type: globalThis.PropType<CascaderOptions[]>;
|
|
7
|
+
default: never[];
|
|
8
|
+
description: string;
|
|
9
|
+
};
|
|
10
|
+
multiple: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
description: string;
|
|
14
|
+
};
|
|
15
|
+
showAllLevels: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
free: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
25
|
+
trigger: {
|
|
26
|
+
type: globalThis.PropType<import('./props').CascaderTriggerType>;
|
|
27
|
+
default: string;
|
|
28
|
+
description: string;
|
|
29
|
+
};
|
|
30
|
+
placeholder: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
description: string;
|
|
34
|
+
};
|
|
35
|
+
size: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
description: string;
|
|
39
|
+
};
|
|
40
|
+
onload: {
|
|
41
|
+
type: FunctionConstructor;
|
|
42
|
+
default: undefined;
|
|
43
|
+
description: string;
|
|
44
|
+
};
|
|
45
|
+
clearable: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
description: string;
|
|
49
|
+
};
|
|
50
|
+
readonly: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
description: string;
|
|
54
|
+
};
|
|
55
|
+
disabled: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
description: string;
|
|
59
|
+
};
|
|
60
|
+
}, {
|
|
61
|
+
show: () => Promise<void>;
|
|
62
|
+
hide: () => void;
|
|
63
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
64
|
+
change: (...args: any[]) => void;
|
|
65
|
+
blur: (...args: any[]) => void;
|
|
66
|
+
clear: (...args: any[]) => void;
|
|
67
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
68
|
+
modelValue: globalThis.PropType<string | number | undefined>;
|
|
69
|
+
options: {
|
|
70
|
+
type: globalThis.PropType<CascaderOptions[]>;
|
|
71
|
+
default: never[];
|
|
72
|
+
description: string;
|
|
73
|
+
};
|
|
74
|
+
multiple: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
description: string;
|
|
78
|
+
};
|
|
79
|
+
showAllLevels: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: boolean;
|
|
82
|
+
description: string;
|
|
83
|
+
};
|
|
84
|
+
free: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
description: string;
|
|
88
|
+
};
|
|
89
|
+
trigger: {
|
|
90
|
+
type: globalThis.PropType<import('./props').CascaderTriggerType>;
|
|
91
|
+
default: string;
|
|
92
|
+
description: string;
|
|
93
|
+
};
|
|
94
|
+
placeholder: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
default: string;
|
|
97
|
+
description: string;
|
|
98
|
+
};
|
|
99
|
+
size: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
default: string;
|
|
102
|
+
description: string;
|
|
103
|
+
};
|
|
104
|
+
onload: {
|
|
105
|
+
type: FunctionConstructor;
|
|
106
|
+
default: undefined;
|
|
107
|
+
description: string;
|
|
108
|
+
};
|
|
109
|
+
clearable: {
|
|
110
|
+
type: BooleanConstructor;
|
|
111
|
+
default: boolean;
|
|
112
|
+
description: string;
|
|
113
|
+
};
|
|
114
|
+
readonly: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: boolean;
|
|
117
|
+
description: string;
|
|
118
|
+
};
|
|
119
|
+
disabled: {
|
|
120
|
+
type: BooleanConstructor;
|
|
121
|
+
default: boolean;
|
|
122
|
+
description: string;
|
|
123
|
+
};
|
|
124
|
+
}>> & {
|
|
125
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
126
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
127
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
128
|
+
}, {
|
|
129
|
+
size: string;
|
|
130
|
+
options: CascaderOptions[];
|
|
131
|
+
disabled: boolean;
|
|
132
|
+
multiple: boolean;
|
|
133
|
+
showAllLevels: boolean;
|
|
134
|
+
free: boolean;
|
|
135
|
+
trigger: import('./props').CascaderTriggerType;
|
|
136
|
+
placeholder: string;
|
|
137
|
+
onload: Function;
|
|
138
|
+
clearable: boolean;
|
|
139
|
+
readonly: boolean;
|
|
140
|
+
}, {}>, {
|
|
141
|
+
header?(_: {}): any;
|
|
142
|
+
}>;
|
|
143
|
+
export default _default;
|
|
144
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
145
|
+
new (): {
|
|
146
|
+
$slots: S;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
|
|
3
|
+
export type CascaderOptions = {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
labelPaths?: string[];
|
|
7
|
+
valuePaths?: string[];
|
|
8
|
+
level: number;
|
|
9
|
+
isLeaf?: boolean;
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
parentLabelPaths?: string[];
|
|
13
|
+
parentValuePaths?: string[];
|
|
14
|
+
children?: CascaderOptions[];
|
|
15
|
+
};
|
|
16
|
+
export type CascaderTriggerType = 'click' | 'hover';
|
|
17
|
+
export declare const cascaderModel: {
|
|
18
|
+
modelValue: {
|
|
19
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
20
|
+
default: string;
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare const cascaderProps: {
|
|
25
|
+
options: {
|
|
26
|
+
type: PropType<CascaderOptions[]>;
|
|
27
|
+
default: never[];
|
|
28
|
+
description: string;
|
|
29
|
+
};
|
|
30
|
+
multiple: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
description: string;
|
|
34
|
+
};
|
|
35
|
+
showAllLevels: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
description: string;
|
|
39
|
+
};
|
|
40
|
+
free: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
description: string;
|
|
44
|
+
};
|
|
45
|
+
trigger: {
|
|
46
|
+
type: PropType<CascaderTriggerType>;
|
|
47
|
+
default: string;
|
|
48
|
+
description: string;
|
|
49
|
+
};
|
|
50
|
+
placeholder: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
description: string;
|
|
54
|
+
};
|
|
55
|
+
size: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
description: string;
|
|
59
|
+
};
|
|
60
|
+
onload: {
|
|
61
|
+
type: FunctionConstructor;
|
|
62
|
+
default: undefined;
|
|
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
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
modelValue: globalThis.PropType<boolean | undefined>;
|
|
3
|
+
checked: {
|
|
4
|
+
type: (BooleanConstructor | FunctionConstructor)[];
|
|
5
|
+
default: boolean;
|
|
6
|
+
description: string;
|
|
7
|
+
};
|
|
8
|
+
certain: {
|
|
9
|
+
type: (BooleanConstructor | FunctionConstructor)[];
|
|
10
|
+
default: boolean;
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
13
|
+
label: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
block: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
round: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
description: string;
|
|
27
|
+
};
|
|
28
|
+
iconable: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
description: string;
|
|
32
|
+
};
|
|
33
|
+
disabled: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
description: string;
|
|
37
|
+
};
|
|
38
|
+
readonly: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
description: string;
|
|
42
|
+
};
|
|
43
|
+
size: {
|
|
44
|
+
type: globalThis.PropType<import('./props').CheckboxSize>;
|
|
45
|
+
default: string;
|
|
46
|
+
description: string;
|
|
47
|
+
};
|
|
48
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
49
|
+
change: (...args: any[]) => void;
|
|
50
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
51
|
+
modelValue: globalThis.PropType<boolean | undefined>;
|
|
52
|
+
checked: {
|
|
53
|
+
type: (BooleanConstructor | FunctionConstructor)[];
|
|
54
|
+
default: boolean;
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
57
|
+
certain: {
|
|
58
|
+
type: (BooleanConstructor | FunctionConstructor)[];
|
|
59
|
+
default: boolean;
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
62
|
+
label: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default: string;
|
|
65
|
+
description: string;
|
|
66
|
+
};
|
|
67
|
+
block: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
description: string;
|
|
71
|
+
};
|
|
72
|
+
round: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: boolean;
|
|
75
|
+
description: string;
|
|
76
|
+
};
|
|
77
|
+
iconable: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: boolean;
|
|
80
|
+
description: string;
|
|
81
|
+
};
|
|
82
|
+
disabled: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: boolean;
|
|
85
|
+
description: string;
|
|
86
|
+
};
|
|
87
|
+
readonly: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
92
|
+
size: {
|
|
93
|
+
type: globalThis.PropType<import('./props').CheckboxSize>;
|
|
94
|
+
default: string;
|
|
95
|
+
description: string;
|
|
96
|
+
};
|
|
97
|
+
}>> & {
|
|
98
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
99
|
+
}, {
|
|
100
|
+
label: string;
|
|
101
|
+
size: import('./props').CheckboxSize;
|
|
102
|
+
round: boolean;
|
|
103
|
+
disabled: boolean;
|
|
104
|
+
readonly: boolean;
|
|
105
|
+
checked: boolean | Function;
|
|
106
|
+
certain: boolean | Function;
|
|
107
|
+
block: boolean;
|
|
108
|
+
iconable: boolean;
|
|
109
|
+
}, {}>;
|
|
110
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<any, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
|
+
change: (...args: any[]) => void;
|
|
3
|
+
}, string, import('vue').PublicProps, Readonly<any> & {
|
|
4
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
5
|
+
}, {} | {
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
}, {}>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
+
|
|
3
|
+
export type CheckboxOptions = {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string | number;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type CheckboxSize = 'small' | 'medium' | 'large';
|
|
9
|
+
export type CheckboxGroupDirectionType = 'x' | 'y';
|
|
10
|
+
export declare const checkboxModel: {
|
|
11
|
+
modelValue: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
description: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const checkboxGroupModel: {
|
|
18
|
+
modelValue: {
|
|
19
|
+
type: (PropType<String[]> | undefined)[];
|
|
20
|
+
default: never[];
|
|
21
|
+
required: boolean;
|
|
22
|
+
description: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export declare const checkboxProps: {
|
|
26
|
+
checked: {
|
|
27
|
+
type: (BooleanConstructor | FunctionConstructor)[];
|
|
28
|
+
default: boolean;
|
|
29
|
+
description: string;
|
|
30
|
+
};
|
|
31
|
+
certain: {
|
|
32
|
+
type: (BooleanConstructor | FunctionConstructor)[];
|
|
33
|
+
default: boolean;
|
|
34
|
+
description: string;
|
|
35
|
+
};
|
|
36
|
+
label: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: string;
|
|
39
|
+
description: string;
|
|
40
|
+
};
|
|
41
|
+
block: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
description: string;
|
|
45
|
+
};
|
|
46
|
+
round: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
description: string;
|
|
50
|
+
};
|
|
51
|
+
iconable: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
description: string;
|
|
55
|
+
};
|
|
56
|
+
disabled: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
description: string;
|
|
60
|
+
};
|
|
61
|
+
readonly: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: boolean;
|
|
64
|
+
description: string;
|
|
65
|
+
};
|
|
66
|
+
size: {
|
|
67
|
+
type: PropType<CheckboxSize>;
|
|
68
|
+
default: string;
|
|
69
|
+
description: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
export declare const checkboxGroupProps: {
|
|
73
|
+
options: {
|
|
74
|
+
type: PropType<CheckboxOptions[]>;
|
|
75
|
+
default: never[];
|
|
76
|
+
required: boolean;
|
|
77
|
+
description: string;
|
|
78
|
+
};
|
|
79
|
+
block: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: boolean;
|
|
82
|
+
description: string;
|
|
83
|
+
};
|
|
84
|
+
round: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
description: string;
|
|
88
|
+
};
|
|
89
|
+
disabled: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: boolean;
|
|
92
|
+
description: string;
|
|
93
|
+
};
|
|
94
|
+
readonly: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
default: boolean;
|
|
97
|
+
description: string;
|
|
98
|
+
};
|
|
99
|
+
direction: {
|
|
100
|
+
type: PropType<CheckboxGroupDirectionType>;
|
|
101
|
+
default: string;
|
|
102
|
+
description: string;
|
|
103
|
+
};
|
|
104
|
+
iconable: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: boolean;
|
|
107
|
+
description: string;
|
|
108
|
+
};
|
|
109
|
+
size: {
|
|
110
|
+
type: PropType<CheckboxSize>;
|
|
111
|
+
default: string;
|
|
112
|
+
description: string;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
export type CheckboxProps = ExtractPropTypes<typeof checkboxProps>;
|
|
116
|
+
export type CheckboxGroupProps = ExtractPropTypes<typeof checkboxGroupProps>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as LewDate } from './src/LewDate.vue';
|
|
2
|
+
export { default as LewDateRange } from './src/LewDateRange.vue';
|
|
3
|
+
export { default as LewDatePicker } from './src/LewDatePicker.vue';
|
|
4
|
+
export { default as LewDateRangePicker } from './src/LewDateRangePicker.vue';
|
|
5
|
+
export * from './src/props';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
modelValue: globalThis.PropType<string | undefined>;
|
|
3
|
+
}, {
|
|
4
|
+
init: () => void;
|
|
5
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
change: (...args: any[]) => void;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
8
|
+
modelValue: globalThis.PropType<string | undefined>;
|
|
9
|
+
}>> & {
|
|
10
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
11
|
+
}, {}, {}>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
modelValue: globalThis.PropType<string | undefined>;
|
|
3
|
+
size: {
|
|
4
|
+
type: globalThis.PropType<import('./props').datePickerSize>;
|
|
5
|
+
default: string;
|
|
6
|
+
description: string;
|
|
7
|
+
};
|
|
8
|
+
clearable: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
13
|
+
readonly: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
disabled: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
placeholder: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: () => string;
|
|
26
|
+
description: string;
|
|
27
|
+
};
|
|
28
|
+
}, {
|
|
29
|
+
show: () => void;
|
|
30
|
+
hide: () => void;
|
|
31
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
32
|
+
change: (...args: any[]) => void;
|
|
33
|
+
clear: (...args: any[]) => void;
|
|
34
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
35
|
+
modelValue: globalThis.PropType<string | undefined>;
|
|
36
|
+
size: {
|
|
37
|
+
type: globalThis.PropType<import('./props').datePickerSize>;
|
|
38
|
+
default: string;
|
|
39
|
+
description: string;
|
|
40
|
+
};
|
|
41
|
+
clearable: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
description: string;
|
|
45
|
+
};
|
|
46
|
+
readonly: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
description: string;
|
|
50
|
+
};
|
|
51
|
+
disabled: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
description: string;
|
|
55
|
+
};
|
|
56
|
+
placeholder: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: () => string;
|
|
59
|
+
description: string;
|
|
60
|
+
};
|
|
61
|
+
}>> & {
|
|
62
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
63
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
64
|
+
}, {
|
|
65
|
+
size: import('./props').datePickerSize;
|
|
66
|
+
disabled: boolean;
|
|
67
|
+
placeholder: string;
|
|
68
|
+
clearable: boolean;
|
|
69
|
+
readonly: boolean;
|
|
70
|
+
}, {}>;
|
|
71
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
modelValue: globalThis.PropType<any>;
|
|
3
|
+
startKey: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
description: string;
|
|
7
|
+
};
|
|
8
|
+
endKey: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
13
|
+
}, {
|
|
14
|
+
init: () => void;
|
|
15
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
change: (...args: any[]) => void;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
18
|
+
modelValue: globalThis.PropType<any>;
|
|
19
|
+
startKey: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
description: string;
|
|
23
|
+
};
|
|
24
|
+
endKey: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
29
|
+
}>> & {
|
|
30
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
startKey: string;
|
|
33
|
+
endKey: string;
|
|
34
|
+
}, {}>;
|
|
35
|
+
export default _default;
|