lew-ui 2.3.5 → 2.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +33 -33
- package/README.zh-CN.md +35 -35
- package/dist/components/alert/src/LewAlert.vue.d.ts +9 -7
- package/dist/components/alert/src/props.d.ts +8 -6
- package/dist/components/avatar/src/LewAvatar.vue.d.ts +37 -38
- package/dist/components/avatar/src/props.d.ts +22 -20
- package/dist/components/backtop/src/LewBackTop.vue.d.ts +9 -1
- package/dist/components/backtop/src/props.d.ts +4 -0
- package/dist/components/badge/src/LewBadge.vue.d.ts +12 -8
- package/dist/components/badge/src/props.d.ts +7 -5
- package/dist/components/breadcrumb/src/LewBreadcrumb.vue.d.ts +14 -10
- package/dist/components/breadcrumb/src/props.d.ts +10 -8
- package/dist/components/button/src/LewButton.vue.d.ts +60 -36
- package/dist/components/button/src/props.d.ts +31 -19
- package/dist/components/cascader/src/LewCascader.vue.d.ts +51 -48
- package/dist/components/cascader/src/props.d.ts +29 -21
- package/dist/components/checkbox/src/LewCheckbox.vue.d.ts +41 -39
- package/dist/components/checkbox/src/props.d.ts +43 -38
- package/dist/components/collapse/src/LewCollapse.vue.d.ts +4 -0
- package/dist/components/collapse/src/LewCollapseItem.vue.d.ts +10 -4
- package/dist/components/collapse/src/props.d.ts +8 -2
- package/dist/components/date-picker/src/LewDatePicker.vue.d.ts +31 -27
- package/dist/components/date-picker/src/props.d.ts +21 -18
- package/dist/components/date-range-picker/src/LewDateRange.vue.d.ts +4 -0
- package/dist/components/date-range-picker/src/LewDateRangePicker.vue.d.ts +41 -35
- package/dist/components/date-range-picker/src/props.d.ts +24 -19
- package/dist/components/drawer/src/LewDrawer.vue.d.ts +36 -30
- package/dist/components/drawer/src/props.d.ts +18 -15
- package/dist/components/dropdown/src/LewDropdown.vue.d.ts +24 -16
- package/dist/components/dropdown/src/props.d.ts +14 -12
- package/dist/components/empty/src/LewEmpty.vue.d.ts +15 -5
- package/dist/components/empty/src/props.d.ts +7 -2
- package/dist/components/flex/src/LewFlex.vue.d.ts +32 -26
- package/dist/components/flex/src/props.d.ts +18 -12
- package/dist/components/form/src/LewForm.vue.d.ts +35 -23
- package/dist/components/form/src/LewFormItem.vue.d.ts +70 -62
- package/dist/components/form/src/LewGetLabelWidth.vue.d.ts +5 -3
- package/dist/components/form/src/props.d.ts +47 -36
- package/dist/components/image/src/LewImage.vue.d.ts +48 -33
- package/dist/components/image/src/props.d.ts +25 -16
- package/dist/components/input/src/LewInput.vue.d.ts +67 -64
- package/dist/components/input/src/props.d.ts +33 -29
- package/dist/components/input-number/src/LewInputNumber.vue.d.ts +52 -40
- package/dist/components/input-number/src/props.d.ts +28 -20
- package/dist/components/input-table/src/props.d.ts +62 -15
- package/dist/components/input-tag/src/LewInputTag.vue.d.ts +4 -4
- package/dist/components/input-tag/src/props.d.ts +6 -4
- package/dist/components/magic-number/src/LewMagicNumber.vue.d.ts +3 -3
- package/dist/components/magic-number/src/props.d.ts +1 -1
- package/dist/components/mark/src/LewMark.vue.d.ts +20 -16
- package/dist/components/mark/src/props.d.ts +13 -9
- package/dist/components/menu/src/LewMenu.vue.d.ts +11 -7
- package/dist/components/menu/src/props.d.ts +7 -5
- package/dist/components/menu-tree/src/LewMenuTree.vue.d.ts +3 -3
- package/dist/components/menu-tree/src/props.d.ts +3 -3
- package/dist/components/modal/src/LewModal.vue.d.ts +10 -4
- package/dist/components/modal/src/props.d.ts +4 -1
- package/dist/components/pagination/src/LewPagination.vue.d.ts +7 -3
- package/dist/components/pagination/src/props.d.ts +10 -5
- package/dist/components/popok/src/LewPopok.vue.d.ts +18 -10
- package/dist/components/popok/src/props.d.ts +7 -3
- package/dist/components/popover/src/LewPopover.vue.d.ts +38 -34
- package/dist/components/popover/src/props.d.ts +20 -16
- package/dist/components/radio/src/LewRadio.vue.d.ts +33 -31
- package/dist/components/radio/src/LewRadioGroup.vue.d.ts +27 -23
- package/dist/components/radio/src/props.d.ts +32 -28
- package/dist/components/result/src/LewResult.vue.d.ts +9 -3
- package/dist/components/result/src/props.d.ts +7 -1
- package/dist/components/select/src/LewSelect.vue.d.ts +20 -20
- package/dist/components/select/src/props.d.ts +10 -8
- package/dist/components/select-multiple/src/LewSelectMultiple.vue.d.ts +29 -23
- package/dist/components/select-multiple/src/props.d.ts +13 -10
- package/dist/components/steps/src/LewSteps.vue.d.ts +10 -6
- package/dist/components/steps/src/props.d.ts +7 -4
- package/dist/components/switch/src/LewSwitch.vue.d.ts +12 -8
- package/dist/components/switch/src/props.d.ts +9 -3
- package/dist/components/table/src/LewTable.vue.d.ts +30 -23
- package/dist/components/table/src/props.d.ts +23 -11
- package/dist/components/tabs/src/LewTabs.vue.d.ts +27 -17
- package/dist/components/tabs/src/props.d.ts +16 -11
- package/dist/components/tag/src/LewTag.vue.d.ts +12 -6
- package/dist/components/tag/src/props.d.ts +6 -3
- package/dist/components/text-trim/src/LewTextTrim.vue.d.ts +42 -30
- package/dist/components/text-trim/src/props.d.ts +21 -13
- package/dist/components/textarea/src/LewTextarea.vue.d.ts +37 -42
- package/dist/components/textarea/src/props.d.ts +17 -18
- package/dist/components/title/src/LewTitle.vue.d.ts +17 -11
- package/dist/components/title/src/props.d.ts +10 -10
- package/dist/components/tree/src/LewTree.vue.d.ts +11 -9
- package/dist/components/tree/src/props.d.ts +5 -4
- package/dist/components/tree-select/src/LewTreeSelect.vue.d.ts +100 -90
- package/dist/components/tree-select/src/props.d.ts +56 -44
- package/dist/components/upload/src/LewUpload.vue.d.ts +49 -39
- package/dist/components/upload/src/props.d.ts +26 -21
- package/dist/directives/backtop/src/index.d.ts +2 -2
- package/dist/directives/dialog/src/LewDialog.vue.d.ts +16 -12
- package/dist/directives/dialog/src/index.d.ts +5 -5
- package/dist/directives/dialog/src/props.d.ts +8 -7
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +2732 -1333
- package/dist/index.umd.js +46 -46
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/components/input-table/src/LewInputTable.vue.d.ts +0 -87
|
@@ -4,44 +4,40 @@ declare function __VLS_template(): {
|
|
|
4
4
|
};
|
|
5
5
|
declare const __VLS_component: import('vue').DefineComponent<{
|
|
6
6
|
src: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
required: boolean;
|
|
9
|
+
description: string;
|
|
10
|
+
validator: (value: string) => boolean;
|
|
11
|
+
};
|
|
12
|
+
alt: {
|
|
7
13
|
type: StringConstructor;
|
|
8
14
|
default: string;
|
|
9
15
|
description: string;
|
|
16
|
+
validator: (value: string) => boolean;
|
|
10
17
|
};
|
|
11
18
|
width: {
|
|
12
19
|
type: (StringConstructor | NumberConstructor)[];
|
|
13
20
|
default: string;
|
|
14
21
|
description: string;
|
|
22
|
+
validator: (value: number | string) => boolean;
|
|
15
23
|
};
|
|
16
24
|
height: {
|
|
17
25
|
type: (StringConstructor | NumberConstructor)[];
|
|
18
26
|
default: string;
|
|
19
27
|
description: string;
|
|
20
|
-
|
|
21
|
-
title: {
|
|
22
|
-
type: StringConstructor;
|
|
23
|
-
default: string;
|
|
24
|
-
description: string;
|
|
28
|
+
validator: (value: number | string) => boolean;
|
|
25
29
|
};
|
|
26
30
|
objectFit: {
|
|
27
|
-
type: globalThis.PropType<
|
|
31
|
+
type: globalThis.PropType<import('./props').ObjectFit>;
|
|
28
32
|
default: string;
|
|
29
33
|
description: string;
|
|
34
|
+
validator: (value: import('./props').ObjectFit) => boolean;
|
|
30
35
|
};
|
|
31
36
|
objectPosition: {
|
|
32
37
|
type: StringConstructor;
|
|
33
38
|
default: string;
|
|
34
39
|
description: string;
|
|
35
|
-
|
|
36
|
-
previewKey: {
|
|
37
|
-
type: StringConstructor;
|
|
38
|
-
default: string;
|
|
39
|
-
description: string;
|
|
40
|
-
};
|
|
41
|
-
alt: {
|
|
42
|
-
type: StringConstructor;
|
|
43
|
-
default: string;
|
|
44
|
-
description: string;
|
|
40
|
+
validator: (value: string) => boolean;
|
|
45
41
|
};
|
|
46
42
|
lazy: {
|
|
47
43
|
type: BooleanConstructor;
|
|
@@ -53,46 +49,54 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
53
49
|
default: boolean;
|
|
54
50
|
description: string;
|
|
55
51
|
};
|
|
56
|
-
|
|
57
|
-
src: {
|
|
52
|
+
title: {
|
|
58
53
|
type: StringConstructor;
|
|
59
54
|
default: string;
|
|
60
55
|
description: string;
|
|
56
|
+
validator: (value: string) => boolean;
|
|
61
57
|
};
|
|
62
|
-
|
|
63
|
-
type:
|
|
58
|
+
previewKey: {
|
|
59
|
+
type: StringConstructor;
|
|
64
60
|
default: string;
|
|
65
61
|
description: string;
|
|
62
|
+
validator: (value: string) => boolean;
|
|
66
63
|
};
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
65
|
+
src: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
required: boolean;
|
|
70
68
|
description: string;
|
|
69
|
+
validator: (value: string) => boolean;
|
|
71
70
|
};
|
|
72
|
-
|
|
71
|
+
alt: {
|
|
73
72
|
type: StringConstructor;
|
|
74
73
|
default: string;
|
|
75
74
|
description: string;
|
|
75
|
+
validator: (value: string) => boolean;
|
|
76
76
|
};
|
|
77
|
-
|
|
78
|
-
type:
|
|
77
|
+
width: {
|
|
78
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
79
79
|
default: string;
|
|
80
80
|
description: string;
|
|
81
|
+
validator: (value: number | string) => boolean;
|
|
81
82
|
};
|
|
82
|
-
|
|
83
|
-
type: StringConstructor;
|
|
83
|
+
height: {
|
|
84
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
84
85
|
default: string;
|
|
85
86
|
description: string;
|
|
87
|
+
validator: (value: number | string) => boolean;
|
|
86
88
|
};
|
|
87
|
-
|
|
88
|
-
type:
|
|
89
|
+
objectFit: {
|
|
90
|
+
type: globalThis.PropType<import('./props').ObjectFit>;
|
|
89
91
|
default: string;
|
|
90
92
|
description: string;
|
|
93
|
+
validator: (value: import('./props').ObjectFit) => boolean;
|
|
91
94
|
};
|
|
92
|
-
|
|
95
|
+
objectPosition: {
|
|
93
96
|
type: StringConstructor;
|
|
94
97
|
default: string;
|
|
95
98
|
description: string;
|
|
99
|
+
validator: (value: string) => boolean;
|
|
96
100
|
};
|
|
97
101
|
lazy: {
|
|
98
102
|
type: BooleanConstructor;
|
|
@@ -104,15 +108,26 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
104
108
|
default: boolean;
|
|
105
109
|
description: string;
|
|
106
110
|
};
|
|
111
|
+
title: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
default: string;
|
|
114
|
+
description: string;
|
|
115
|
+
validator: (value: string) => boolean;
|
|
116
|
+
};
|
|
117
|
+
previewKey: {
|
|
118
|
+
type: StringConstructor;
|
|
119
|
+
default: string;
|
|
120
|
+
description: string;
|
|
121
|
+
validator: (value: string) => boolean;
|
|
122
|
+
};
|
|
107
123
|
}>>, {
|
|
108
124
|
width: string | number;
|
|
109
125
|
title: string;
|
|
110
126
|
loading: boolean;
|
|
111
127
|
height: string | number;
|
|
112
|
-
src: string;
|
|
113
128
|
alt: string;
|
|
114
129
|
lazy: boolean;
|
|
115
|
-
objectFit:
|
|
130
|
+
objectFit: import('./props').ObjectFit;
|
|
116
131
|
objectPosition: string;
|
|
117
132
|
previewKey: string;
|
|
118
133
|
}, {}>;
|
|
@@ -1,45 +1,42 @@
|
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
|
|
3
|
+
export type ObjectFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
|
|
3
4
|
export declare const imageProps: {
|
|
4
5
|
src: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
required: boolean;
|
|
8
|
+
description: string;
|
|
9
|
+
validator: (value: string) => boolean;
|
|
10
|
+
};
|
|
11
|
+
alt: {
|
|
5
12
|
type: StringConstructor;
|
|
6
13
|
default: string;
|
|
7
14
|
description: string;
|
|
15
|
+
validator: (value: string) => boolean;
|
|
8
16
|
};
|
|
9
17
|
width: {
|
|
10
18
|
type: (StringConstructor | NumberConstructor)[];
|
|
11
19
|
default: string;
|
|
12
20
|
description: string;
|
|
21
|
+
validator: (value: number | string) => boolean;
|
|
13
22
|
};
|
|
14
23
|
height: {
|
|
15
24
|
type: (StringConstructor | NumberConstructor)[];
|
|
16
25
|
default: string;
|
|
17
26
|
description: string;
|
|
18
|
-
|
|
19
|
-
title: {
|
|
20
|
-
type: StringConstructor;
|
|
21
|
-
default: string;
|
|
22
|
-
description: string;
|
|
27
|
+
validator: (value: number | string) => boolean;
|
|
23
28
|
};
|
|
24
29
|
objectFit: {
|
|
25
|
-
type: PropType<
|
|
30
|
+
type: PropType<ObjectFit>;
|
|
26
31
|
default: string;
|
|
27
32
|
description: string;
|
|
33
|
+
validator: (value: ObjectFit) => boolean;
|
|
28
34
|
};
|
|
29
35
|
objectPosition: {
|
|
30
36
|
type: StringConstructor;
|
|
31
37
|
default: string;
|
|
32
38
|
description: string;
|
|
33
|
-
|
|
34
|
-
previewKey: {
|
|
35
|
-
type: StringConstructor;
|
|
36
|
-
default: string;
|
|
37
|
-
description: string;
|
|
38
|
-
};
|
|
39
|
-
alt: {
|
|
40
|
-
type: StringConstructor;
|
|
41
|
-
default: string;
|
|
42
|
-
description: string;
|
|
39
|
+
validator: (value: string) => boolean;
|
|
43
40
|
};
|
|
44
41
|
lazy: {
|
|
45
42
|
type: BooleanConstructor;
|
|
@@ -51,5 +48,17 @@ export declare const imageProps: {
|
|
|
51
48
|
default: boolean;
|
|
52
49
|
description: string;
|
|
53
50
|
};
|
|
51
|
+
title: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: string;
|
|
54
|
+
description: string;
|
|
55
|
+
validator: (value: string) => boolean;
|
|
56
|
+
};
|
|
57
|
+
previewKey: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: string;
|
|
60
|
+
description: string;
|
|
61
|
+
validator: (value: string) => boolean;
|
|
62
|
+
};
|
|
54
63
|
};
|
|
55
64
|
export type ImageProps = ExtractPropTypes<typeof imageProps>;
|
|
@@ -9,18 +9,15 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
9
9
|
type: StringConstructor;
|
|
10
10
|
default: string;
|
|
11
11
|
description: string;
|
|
12
|
+
validator: (value: import('../../..').InputType) => boolean;
|
|
12
13
|
};
|
|
13
14
|
size: {
|
|
14
|
-
type:
|
|
15
|
+
type: globalThis.PropType<import('../../..').LewSize>;
|
|
15
16
|
default: string;
|
|
16
17
|
description: string;
|
|
18
|
+
validator: (value: import('../../..').LewSize) => boolean;
|
|
17
19
|
};
|
|
18
|
-
|
|
19
|
-
type: BooleanConstructor;
|
|
20
|
-
default: boolean;
|
|
21
|
-
description: string;
|
|
22
|
-
};
|
|
23
|
-
align: {
|
|
20
|
+
placeholder: {
|
|
24
21
|
type: StringConstructor;
|
|
25
22
|
default: string;
|
|
26
23
|
description: string;
|
|
@@ -30,60 +27,64 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
30
27
|
default: boolean;
|
|
31
28
|
description: string;
|
|
32
29
|
};
|
|
33
|
-
|
|
30
|
+
readonly: {
|
|
34
31
|
type: BooleanConstructor;
|
|
35
32
|
default: boolean;
|
|
36
33
|
description: string;
|
|
37
34
|
};
|
|
38
|
-
|
|
39
|
-
type: StringConstructor;
|
|
40
|
-
default: string;
|
|
41
|
-
description: string;
|
|
42
|
-
};
|
|
43
|
-
readonly: {
|
|
35
|
+
clearable: {
|
|
44
36
|
type: BooleanConstructor;
|
|
45
37
|
default: boolean;
|
|
46
38
|
description: string;
|
|
47
39
|
};
|
|
48
|
-
|
|
40
|
+
showPassword: {
|
|
49
41
|
type: BooleanConstructor;
|
|
50
42
|
default: boolean;
|
|
51
43
|
description: string;
|
|
52
44
|
};
|
|
53
|
-
|
|
45
|
+
maxLength: {
|
|
46
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
47
|
+
default: undefined;
|
|
48
|
+
description: string;
|
|
49
|
+
validator: (value: number | string) => boolean;
|
|
50
|
+
};
|
|
51
|
+
showCount: {
|
|
54
52
|
type: BooleanConstructor;
|
|
55
53
|
default: boolean;
|
|
56
54
|
description: string;
|
|
57
55
|
};
|
|
56
|
+
align: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: string;
|
|
59
|
+
description: string;
|
|
60
|
+
validator: (value: import('../../..').InputAlign) => boolean;
|
|
61
|
+
};
|
|
58
62
|
minWidth: {
|
|
59
63
|
type: (StringConstructor | NumberConstructor)[];
|
|
60
64
|
default: string;
|
|
61
65
|
description: string;
|
|
66
|
+
validator: (value: number | string) => boolean;
|
|
62
67
|
};
|
|
63
68
|
autoWidth: {
|
|
64
69
|
type: BooleanConstructor;
|
|
65
70
|
default: boolean;
|
|
66
71
|
description: string;
|
|
67
72
|
};
|
|
68
|
-
|
|
69
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
70
|
-
default: null;
|
|
71
|
-
description: string;
|
|
72
|
-
};
|
|
73
|
-
showCount: {
|
|
73
|
+
selectByFocus: {
|
|
74
74
|
type: BooleanConstructor;
|
|
75
75
|
default: boolean;
|
|
76
76
|
description: string;
|
|
77
77
|
};
|
|
78
|
-
|
|
79
|
-
type:
|
|
80
|
-
default:
|
|
78
|
+
copyable: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: boolean;
|
|
81
81
|
description: string;
|
|
82
82
|
};
|
|
83
83
|
prefixes: {
|
|
84
|
-
type:
|
|
84
|
+
type: StringConstructor;
|
|
85
85
|
default: string;
|
|
86
86
|
description: string;
|
|
87
|
+
validator: (value: import('../../..').InputPrefixesType) => boolean;
|
|
87
88
|
};
|
|
88
89
|
prefixesOptions: {
|
|
89
90
|
type: globalThis.PropType<import('../../..').ContextMenus[]>;
|
|
@@ -96,9 +97,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
96
97
|
description: string;
|
|
97
98
|
};
|
|
98
99
|
suffix: {
|
|
99
|
-
type:
|
|
100
|
+
type: StringConstructor;
|
|
100
101
|
default: string;
|
|
101
102
|
description: string;
|
|
103
|
+
validator: (value: import('../../..').InputSuffixType) => boolean;
|
|
102
104
|
};
|
|
103
105
|
suffixOptions: {
|
|
104
106
|
type: globalThis.PropType<import('../../..').ContextMenus[]>;
|
|
@@ -116,7 +118,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
116
118
|
description: string;
|
|
117
119
|
};
|
|
118
120
|
}, {
|
|
119
|
-
toFocus: () =>
|
|
121
|
+
toFocus: () => any;
|
|
120
122
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
121
123
|
input: (...args: any[]) => void;
|
|
122
124
|
change: (...args: any[]) => void;
|
|
@@ -135,18 +137,15 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
135
137
|
type: StringConstructor;
|
|
136
138
|
default: string;
|
|
137
139
|
description: string;
|
|
140
|
+
validator: (value: import('../../..').InputType) => boolean;
|
|
138
141
|
};
|
|
139
142
|
size: {
|
|
140
|
-
type:
|
|
143
|
+
type: globalThis.PropType<import('../../..').LewSize>;
|
|
141
144
|
default: string;
|
|
142
145
|
description: string;
|
|
146
|
+
validator: (value: import('../../..').LewSize) => boolean;
|
|
143
147
|
};
|
|
144
|
-
|
|
145
|
-
type: BooleanConstructor;
|
|
146
|
-
default: boolean;
|
|
147
|
-
description: string;
|
|
148
|
-
};
|
|
149
|
-
align: {
|
|
148
|
+
placeholder: {
|
|
150
149
|
type: StringConstructor;
|
|
151
150
|
default: string;
|
|
152
151
|
description: string;
|
|
@@ -156,60 +155,64 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
156
155
|
default: boolean;
|
|
157
156
|
description: string;
|
|
158
157
|
};
|
|
159
|
-
|
|
158
|
+
readonly: {
|
|
160
159
|
type: BooleanConstructor;
|
|
161
160
|
default: boolean;
|
|
162
161
|
description: string;
|
|
163
162
|
};
|
|
164
|
-
|
|
165
|
-
type: StringConstructor;
|
|
166
|
-
default: string;
|
|
167
|
-
description: string;
|
|
168
|
-
};
|
|
169
|
-
readonly: {
|
|
163
|
+
clearable: {
|
|
170
164
|
type: BooleanConstructor;
|
|
171
165
|
default: boolean;
|
|
172
166
|
description: string;
|
|
173
167
|
};
|
|
174
|
-
|
|
168
|
+
showPassword: {
|
|
175
169
|
type: BooleanConstructor;
|
|
176
170
|
default: boolean;
|
|
177
171
|
description: string;
|
|
178
172
|
};
|
|
179
|
-
|
|
173
|
+
maxLength: {
|
|
174
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
175
|
+
default: undefined;
|
|
176
|
+
description: string;
|
|
177
|
+
validator: (value: number | string) => boolean;
|
|
178
|
+
};
|
|
179
|
+
showCount: {
|
|
180
180
|
type: BooleanConstructor;
|
|
181
181
|
default: boolean;
|
|
182
182
|
description: string;
|
|
183
183
|
};
|
|
184
|
+
align: {
|
|
185
|
+
type: StringConstructor;
|
|
186
|
+
default: string;
|
|
187
|
+
description: string;
|
|
188
|
+
validator: (value: import('../../..').InputAlign) => boolean;
|
|
189
|
+
};
|
|
184
190
|
minWidth: {
|
|
185
191
|
type: (StringConstructor | NumberConstructor)[];
|
|
186
192
|
default: string;
|
|
187
193
|
description: string;
|
|
194
|
+
validator: (value: number | string) => boolean;
|
|
188
195
|
};
|
|
189
196
|
autoWidth: {
|
|
190
197
|
type: BooleanConstructor;
|
|
191
198
|
default: boolean;
|
|
192
199
|
description: string;
|
|
193
200
|
};
|
|
194
|
-
|
|
195
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
196
|
-
default: null;
|
|
197
|
-
description: string;
|
|
198
|
-
};
|
|
199
|
-
showCount: {
|
|
201
|
+
selectByFocus: {
|
|
200
202
|
type: BooleanConstructor;
|
|
201
203
|
default: boolean;
|
|
202
204
|
description: string;
|
|
203
205
|
};
|
|
204
|
-
|
|
205
|
-
type:
|
|
206
|
-
default:
|
|
206
|
+
copyable: {
|
|
207
|
+
type: BooleanConstructor;
|
|
208
|
+
default: boolean;
|
|
207
209
|
description: string;
|
|
208
210
|
};
|
|
209
211
|
prefixes: {
|
|
210
|
-
type:
|
|
212
|
+
type: StringConstructor;
|
|
211
213
|
default: string;
|
|
212
214
|
description: string;
|
|
215
|
+
validator: (value: import('../../..').InputPrefixesType) => boolean;
|
|
213
216
|
};
|
|
214
217
|
prefixesOptions: {
|
|
215
218
|
type: globalThis.PropType<import('../../..').ContextMenus[]>;
|
|
@@ -222,9 +225,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
222
225
|
description: string;
|
|
223
226
|
};
|
|
224
227
|
suffix: {
|
|
225
|
-
type:
|
|
228
|
+
type: StringConstructor;
|
|
226
229
|
default: string;
|
|
227
230
|
description: string;
|
|
231
|
+
validator: (value: import('../../..').InputSuffixType) => boolean;
|
|
228
232
|
};
|
|
229
233
|
suffixOptions: {
|
|
230
234
|
type: globalThis.PropType<import('../../..').ContextMenus[]>;
|
|
@@ -250,24 +254,23 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
250
254
|
onOk?: ((...args: any[]) => any) | undefined;
|
|
251
255
|
}, {
|
|
252
256
|
type: string;
|
|
253
|
-
size:
|
|
257
|
+
size: import('../../..').LewSize;
|
|
254
258
|
placeholder: string;
|
|
259
|
+
disabled: boolean;
|
|
255
260
|
clearable: boolean;
|
|
256
261
|
readonly: boolean;
|
|
257
|
-
disabled: boolean;
|
|
258
262
|
align: string;
|
|
259
|
-
selectByFocus: boolean;
|
|
260
|
-
copyable: boolean;
|
|
261
263
|
showPassword: boolean;
|
|
262
|
-
minWidth: string | number;
|
|
263
|
-
autoWidth: boolean;
|
|
264
264
|
maxLength: string | number;
|
|
265
265
|
showCount: boolean;
|
|
266
|
-
|
|
267
|
-
|
|
266
|
+
minWidth: string | number;
|
|
267
|
+
autoWidth: boolean;
|
|
268
|
+
selectByFocus: boolean;
|
|
269
|
+
copyable: boolean;
|
|
270
|
+
prefixes: string;
|
|
268
271
|
prefixesOptions: import('../../..').ContextMenus[];
|
|
269
272
|
prefixesTooltip: string;
|
|
270
|
-
suffix:
|
|
273
|
+
suffix: string;
|
|
271
274
|
suffixOptions: import('../../..').ContextMenus[];
|
|
272
275
|
suffixTooltip: string;
|
|
273
276
|
okByEnter: boolean;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import { ContextMenus } from '../../..';
|
|
2
|
+
import { ContextMenus, LewSize } from '../../..';
|
|
3
3
|
|
|
4
|
+
export type InputType = 'text' | 'password';
|
|
5
|
+
export type InputAlign = 'left' | 'center' | 'right';
|
|
4
6
|
export type InputPrefixesType = 'icon' | 'select' | 'text';
|
|
5
7
|
export type InputSuffixType = 'icon' | 'select' | 'text';
|
|
6
8
|
export declare const inputModel: {
|
|
7
9
|
modelValue: {
|
|
8
|
-
type: (StringConstructor | NumberConstructor
|
|
10
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
9
11
|
default: string;
|
|
10
12
|
description: string;
|
|
11
13
|
};
|
|
@@ -25,18 +27,15 @@ export declare const inputProps: {
|
|
|
25
27
|
type: StringConstructor;
|
|
26
28
|
default: string;
|
|
27
29
|
description: string;
|
|
30
|
+
validator: (value: InputType) => boolean;
|
|
28
31
|
};
|
|
29
32
|
size: {
|
|
30
|
-
type:
|
|
33
|
+
type: PropType<LewSize>;
|
|
31
34
|
default: string;
|
|
32
35
|
description: string;
|
|
36
|
+
validator: (value: LewSize) => boolean;
|
|
33
37
|
};
|
|
34
|
-
|
|
35
|
-
type: BooleanConstructor;
|
|
36
|
-
default: boolean;
|
|
37
|
-
description: string;
|
|
38
|
-
};
|
|
39
|
-
align: {
|
|
38
|
+
placeholder: {
|
|
40
39
|
type: StringConstructor;
|
|
41
40
|
default: string;
|
|
42
41
|
description: string;
|
|
@@ -46,60 +45,64 @@ export declare const inputProps: {
|
|
|
46
45
|
default: boolean;
|
|
47
46
|
description: string;
|
|
48
47
|
};
|
|
49
|
-
|
|
48
|
+
readonly: {
|
|
50
49
|
type: BooleanConstructor;
|
|
51
50
|
default: boolean;
|
|
52
51
|
description: string;
|
|
53
52
|
};
|
|
54
|
-
|
|
55
|
-
type: StringConstructor;
|
|
56
|
-
default: string;
|
|
57
|
-
description: string;
|
|
58
|
-
};
|
|
59
|
-
readonly: {
|
|
53
|
+
clearable: {
|
|
60
54
|
type: BooleanConstructor;
|
|
61
55
|
default: boolean;
|
|
62
56
|
description: string;
|
|
63
57
|
};
|
|
64
|
-
|
|
58
|
+
showPassword: {
|
|
65
59
|
type: BooleanConstructor;
|
|
66
60
|
default: boolean;
|
|
67
61
|
description: string;
|
|
68
62
|
};
|
|
69
|
-
|
|
63
|
+
maxLength: {
|
|
64
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
65
|
+
default: undefined;
|
|
66
|
+
description: string;
|
|
67
|
+
validator: (value: number | string) => boolean;
|
|
68
|
+
};
|
|
69
|
+
showCount: {
|
|
70
70
|
type: BooleanConstructor;
|
|
71
71
|
default: boolean;
|
|
72
72
|
description: string;
|
|
73
73
|
};
|
|
74
|
+
align: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
default: string;
|
|
77
|
+
description: string;
|
|
78
|
+
validator: (value: InputAlign) => boolean;
|
|
79
|
+
};
|
|
74
80
|
minWidth: {
|
|
75
81
|
type: (StringConstructor | NumberConstructor)[];
|
|
76
82
|
default: string;
|
|
77
83
|
description: string;
|
|
84
|
+
validator: (value: number | string) => boolean;
|
|
78
85
|
};
|
|
79
86
|
autoWidth: {
|
|
80
87
|
type: BooleanConstructor;
|
|
81
88
|
default: boolean;
|
|
82
89
|
description: string;
|
|
83
90
|
};
|
|
84
|
-
|
|
85
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
86
|
-
default: null;
|
|
87
|
-
description: string;
|
|
88
|
-
};
|
|
89
|
-
showCount: {
|
|
91
|
+
selectByFocus: {
|
|
90
92
|
type: BooleanConstructor;
|
|
91
93
|
default: boolean;
|
|
92
94
|
description: string;
|
|
93
95
|
};
|
|
94
|
-
|
|
95
|
-
type:
|
|
96
|
-
default:
|
|
96
|
+
copyable: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: boolean;
|
|
97
99
|
description: string;
|
|
98
100
|
};
|
|
99
101
|
prefixes: {
|
|
100
|
-
type:
|
|
102
|
+
type: StringConstructor;
|
|
101
103
|
default: string;
|
|
102
104
|
description: string;
|
|
105
|
+
validator: (value: InputPrefixesType) => boolean;
|
|
103
106
|
};
|
|
104
107
|
prefixesOptions: {
|
|
105
108
|
type: PropType<ContextMenus[]>;
|
|
@@ -112,9 +115,10 @@ export declare const inputProps: {
|
|
|
112
115
|
description: string;
|
|
113
116
|
};
|
|
114
117
|
suffix: {
|
|
115
|
-
type:
|
|
118
|
+
type: StringConstructor;
|
|
116
119
|
default: string;
|
|
117
120
|
description: string;
|
|
121
|
+
validator: (value: InputSuffixType) => boolean;
|
|
118
122
|
};
|
|
119
123
|
suffixOptions: {
|
|
120
124
|
type: PropType<ContextMenus[]>;
|