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
|
@@ -12,16 +12,16 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
12
12
|
modelValue: import('vue').PropType<any>;
|
|
13
13
|
options: {
|
|
14
14
|
type: globalThis.PropType<SelectMultipleOptions[]>;
|
|
15
|
-
default: never[];
|
|
15
|
+
default: () => never[];
|
|
16
16
|
description: string;
|
|
17
17
|
};
|
|
18
18
|
trigger: {
|
|
19
|
-
type:
|
|
19
|
+
type: globalThis.PropType<"click" | "hover">;
|
|
20
20
|
default: string;
|
|
21
21
|
description: string;
|
|
22
22
|
};
|
|
23
23
|
valueLayout: {
|
|
24
|
-
type:
|
|
24
|
+
type: globalThis.PropType<"tag" | "text">;
|
|
25
25
|
default: string;
|
|
26
26
|
description: string;
|
|
27
27
|
};
|
|
@@ -36,7 +36,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
36
36
|
description: string;
|
|
37
37
|
};
|
|
38
38
|
size: {
|
|
39
|
-
type:
|
|
39
|
+
type: globalThis.PropType<"small" | "medium" | "large">;
|
|
40
40
|
default: string;
|
|
41
41
|
description: string;
|
|
42
42
|
};
|
|
@@ -56,8 +56,11 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
56
56
|
description: string;
|
|
57
57
|
};
|
|
58
58
|
searchMethod: {
|
|
59
|
-
type: globalThis.PropType<(
|
|
60
|
-
default: (
|
|
59
|
+
type: globalThis.PropType<(params: import('../../..').SelectSearchMultipleMethodParams) => SelectMultipleOptions[]>;
|
|
60
|
+
default: ({ options, keyword }: {
|
|
61
|
+
options: SelectMultipleOptions[];
|
|
62
|
+
keyword: string;
|
|
63
|
+
}) => SelectMultipleOptions[];
|
|
61
64
|
description: string;
|
|
62
65
|
};
|
|
63
66
|
searchDelay: {
|
|
@@ -86,8 +89,8 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
86
89
|
description: string;
|
|
87
90
|
};
|
|
88
91
|
defaultValue: {
|
|
89
|
-
type: globalThis.PropType<string
|
|
90
|
-
default: never[];
|
|
92
|
+
type: globalThis.PropType<(string | number)[]>;
|
|
93
|
+
default: () => never[];
|
|
91
94
|
description: string;
|
|
92
95
|
};
|
|
93
96
|
}, {
|
|
@@ -103,16 +106,16 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
103
106
|
modelValue: import('vue').PropType<any>;
|
|
104
107
|
options: {
|
|
105
108
|
type: globalThis.PropType<SelectMultipleOptions[]>;
|
|
106
|
-
default: never[];
|
|
109
|
+
default: () => never[];
|
|
107
110
|
description: string;
|
|
108
111
|
};
|
|
109
112
|
trigger: {
|
|
110
|
-
type:
|
|
113
|
+
type: globalThis.PropType<"click" | "hover">;
|
|
111
114
|
default: string;
|
|
112
115
|
description: string;
|
|
113
116
|
};
|
|
114
117
|
valueLayout: {
|
|
115
|
-
type:
|
|
118
|
+
type: globalThis.PropType<"tag" | "text">;
|
|
116
119
|
default: string;
|
|
117
120
|
description: string;
|
|
118
121
|
};
|
|
@@ -127,7 +130,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
127
130
|
description: string;
|
|
128
131
|
};
|
|
129
132
|
size: {
|
|
130
|
-
type:
|
|
133
|
+
type: globalThis.PropType<"small" | "medium" | "large">;
|
|
131
134
|
default: string;
|
|
132
135
|
description: string;
|
|
133
136
|
};
|
|
@@ -147,8 +150,11 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
147
150
|
description: string;
|
|
148
151
|
};
|
|
149
152
|
searchMethod: {
|
|
150
|
-
type: globalThis.PropType<(
|
|
151
|
-
default: (
|
|
153
|
+
type: globalThis.PropType<(params: import('../../..').SelectSearchMultipleMethodParams) => SelectMultipleOptions[]>;
|
|
154
|
+
default: ({ options, keyword }: {
|
|
155
|
+
options: SelectMultipleOptions[];
|
|
156
|
+
keyword: string;
|
|
157
|
+
}) => SelectMultipleOptions[];
|
|
152
158
|
description: string;
|
|
153
159
|
};
|
|
154
160
|
searchDelay: {
|
|
@@ -177,8 +183,8 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
177
183
|
description: string;
|
|
178
184
|
};
|
|
179
185
|
defaultValue: {
|
|
180
|
-
type: globalThis.PropType<string
|
|
181
|
-
default: never[];
|
|
186
|
+
type: globalThis.PropType<(string | number)[]>;
|
|
187
|
+
default: () => never[];
|
|
182
188
|
description: string;
|
|
183
189
|
};
|
|
184
190
|
}>> & {
|
|
@@ -188,20 +194,20 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
188
194
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
189
195
|
onDelete?: ((...args: any[]) => any) | undefined;
|
|
190
196
|
}, {
|
|
191
|
-
size:
|
|
197
|
+
size: "small" | "medium" | "large";
|
|
192
198
|
options: SelectMultipleOptions[];
|
|
193
|
-
trigger: string;
|
|
194
199
|
placeholder: string;
|
|
200
|
+
disabled: boolean;
|
|
195
201
|
clearable: boolean;
|
|
202
|
+
trigger: "click" | "hover";
|
|
196
203
|
readonly: boolean;
|
|
197
|
-
disabled: boolean;
|
|
198
204
|
itemHeight: number;
|
|
205
|
+
defaultValue: (string | number)[];
|
|
206
|
+
showCheckIcon: boolean;
|
|
199
207
|
searchable: boolean;
|
|
200
208
|
searchDelay: number;
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
searchMethod: (e: import('../../..').SelectSearchMultipleMethodParams) => void;
|
|
204
|
-
valueLayout: string;
|
|
209
|
+
searchMethod: (params: import('../../..').SelectSearchMultipleMethodParams) => SelectMultipleOptions[];
|
|
210
|
+
valueLayout: "text" | "tag";
|
|
205
211
|
valueTextSplit: string;
|
|
206
212
|
searchPlaceholder: string;
|
|
207
213
|
}, {}>;
|
|
@@ -11,24 +11,24 @@ export type SelectSearchMultipleMethodParams = {
|
|
|
11
11
|
};
|
|
12
12
|
export declare const selectMultipleModel: {
|
|
13
13
|
modelValue: {
|
|
14
|
-
type: PropType<string
|
|
15
|
-
default: never[];
|
|
14
|
+
type: PropType<(string | number)[]>;
|
|
15
|
+
default: () => never[];
|
|
16
16
|
description: string;
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
19
|
export declare const selectMultipleProps: {
|
|
20
20
|
options: {
|
|
21
21
|
type: PropType<SelectMultipleOptions[]>;
|
|
22
|
-
default: never[];
|
|
22
|
+
default: () => never[];
|
|
23
23
|
description: string;
|
|
24
24
|
};
|
|
25
25
|
trigger: {
|
|
26
|
-
type:
|
|
26
|
+
type: PropType<"click" | "hover">;
|
|
27
27
|
default: string;
|
|
28
28
|
description: string;
|
|
29
29
|
};
|
|
30
30
|
valueLayout: {
|
|
31
|
-
type:
|
|
31
|
+
type: PropType<"tag" | "text">;
|
|
32
32
|
default: string;
|
|
33
33
|
description: string;
|
|
34
34
|
};
|
|
@@ -43,7 +43,7 @@ export declare const selectMultipleProps: {
|
|
|
43
43
|
description: string;
|
|
44
44
|
};
|
|
45
45
|
size: {
|
|
46
|
-
type:
|
|
46
|
+
type: PropType<"small" | "medium" | "large">;
|
|
47
47
|
default: string;
|
|
48
48
|
description: string;
|
|
49
49
|
};
|
|
@@ -63,8 +63,11 @@ export declare const selectMultipleProps: {
|
|
|
63
63
|
description: string;
|
|
64
64
|
};
|
|
65
65
|
searchMethod: {
|
|
66
|
-
type: PropType<(
|
|
67
|
-
default: (
|
|
66
|
+
type: PropType<(params: SelectSearchMultipleMethodParams) => SelectMultipleOptions[]>;
|
|
67
|
+
default: ({ options, keyword }: {
|
|
68
|
+
options: SelectMultipleOptions[];
|
|
69
|
+
keyword: string;
|
|
70
|
+
}) => SelectMultipleOptions[];
|
|
68
71
|
description: string;
|
|
69
72
|
};
|
|
70
73
|
searchDelay: {
|
|
@@ -93,8 +96,8 @@ export declare const selectMultipleProps: {
|
|
|
93
96
|
description: string;
|
|
94
97
|
};
|
|
95
98
|
defaultValue: {
|
|
96
|
-
type: PropType<string
|
|
97
|
-
default: never[];
|
|
99
|
+
type: PropType<(string | number)[]>;
|
|
100
|
+
default: () => never[];
|
|
98
101
|
description: string;
|
|
99
102
|
};
|
|
100
103
|
};
|
|
@@ -1,26 +1,30 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
|
2
2
|
modelValue: import('vue').PropType<any>;
|
|
3
3
|
options: {
|
|
4
|
-
type:
|
|
5
|
-
default: never[];
|
|
4
|
+
type: PropType<import('./props').StepsOptions[]>;
|
|
5
|
+
default: () => never[];
|
|
6
6
|
description: string;
|
|
7
|
+
validator: (value: import('./props').StepsOptions[]) => boolean;
|
|
7
8
|
};
|
|
8
9
|
status: {
|
|
9
|
-
type:
|
|
10
|
+
type: PropType<import('./props').StepsStatus>;
|
|
10
11
|
default: string;
|
|
11
12
|
description: string;
|
|
13
|
+
validator: (value: import('./props').StepsStatus) => boolean;
|
|
12
14
|
};
|
|
13
15
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
14
16
|
modelValue: import('vue').PropType<any>;
|
|
15
17
|
options: {
|
|
16
|
-
type:
|
|
17
|
-
default: never[];
|
|
18
|
+
type: PropType<import('./props').StepsOptions[]>;
|
|
19
|
+
default: () => never[];
|
|
18
20
|
description: string;
|
|
21
|
+
validator: (value: import('./props').StepsOptions[]) => boolean;
|
|
19
22
|
};
|
|
20
23
|
status: {
|
|
21
|
-
type:
|
|
24
|
+
type: PropType<import('./props').StepsStatus>;
|
|
22
25
|
default: string;
|
|
23
26
|
description: string;
|
|
27
|
+
validator: (value: import('./props').StepsStatus) => boolean;
|
|
24
28
|
};
|
|
25
29
|
}>>, {
|
|
26
30
|
options: import('./props').StepsOptions[];
|
|
@@ -1,27 +1,30 @@
|
|
|
1
|
-
import { ExtractPropTypes
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
2
|
|
|
3
3
|
export type StepsOptions = {
|
|
4
4
|
title: string;
|
|
5
5
|
description: string;
|
|
6
6
|
};
|
|
7
|
-
export type StepsStatus = 'pending' | 'done' | 'error' | 'warning';
|
|
7
|
+
export type StepsStatus = 'pending' | 'loading' | 'done' | 'error' | 'warning';
|
|
8
8
|
export declare const stepsModel: {
|
|
9
9
|
modelValue: {
|
|
10
|
-
type: (StringConstructor | NumberConstructor
|
|
10
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
11
11
|
default: string;
|
|
12
12
|
description: string;
|
|
13
|
+
validator: (value: string | number) => boolean;
|
|
13
14
|
};
|
|
14
15
|
};
|
|
15
16
|
export declare const stepsProps: {
|
|
16
17
|
options: {
|
|
17
18
|
type: PropType<StepsOptions[]>;
|
|
18
|
-
default: never[];
|
|
19
|
+
default: () => never[];
|
|
19
20
|
description: string;
|
|
21
|
+
validator: (value: StepsOptions[]) => boolean;
|
|
20
22
|
};
|
|
21
23
|
status: {
|
|
22
24
|
type: PropType<StepsStatus>;
|
|
23
25
|
default: string;
|
|
24
26
|
description: string;
|
|
27
|
+
validator: (value: StepsStatus) => boolean;
|
|
25
28
|
};
|
|
26
29
|
};
|
|
27
30
|
export type StepsProps = ExtractPropTypes<typeof stepsProps>;
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
|
2
2
|
modelValue: import('vue').PropType<any>;
|
|
3
3
|
size: {
|
|
4
|
-
type:
|
|
4
|
+
type: globalThis.PropType<import('../../..').LewSize>;
|
|
5
5
|
default: string;
|
|
6
6
|
description: string;
|
|
7
|
+
validator: (value: import('../../..').LewSize) => boolean;
|
|
7
8
|
};
|
|
8
9
|
round: {
|
|
9
10
|
type: (BooleanConstructor | NumberConstructor)[];
|
|
10
11
|
default: boolean;
|
|
11
12
|
description: string;
|
|
13
|
+
validator: (value: boolean | number) => boolean;
|
|
12
14
|
};
|
|
13
15
|
readonly: {
|
|
14
16
|
type: BooleanConstructor;
|
|
15
|
-
default:
|
|
17
|
+
default: boolean;
|
|
16
18
|
description: string;
|
|
17
19
|
};
|
|
18
20
|
disabled: {
|
|
19
21
|
type: BooleanConstructor;
|
|
20
|
-
default:
|
|
22
|
+
default: boolean;
|
|
21
23
|
description: string;
|
|
22
24
|
};
|
|
23
25
|
request: {
|
|
@@ -36,23 +38,25 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
36
38
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
37
39
|
modelValue: import('vue').PropType<any>;
|
|
38
40
|
size: {
|
|
39
|
-
type:
|
|
41
|
+
type: globalThis.PropType<import('../../..').LewSize>;
|
|
40
42
|
default: string;
|
|
41
43
|
description: string;
|
|
44
|
+
validator: (value: import('../../..').LewSize) => boolean;
|
|
42
45
|
};
|
|
43
46
|
round: {
|
|
44
47
|
type: (BooleanConstructor | NumberConstructor)[];
|
|
45
48
|
default: boolean;
|
|
46
49
|
description: string;
|
|
50
|
+
validator: (value: boolean | number) => boolean;
|
|
47
51
|
};
|
|
48
52
|
readonly: {
|
|
49
53
|
type: BooleanConstructor;
|
|
50
|
-
default:
|
|
54
|
+
default: boolean;
|
|
51
55
|
description: string;
|
|
52
56
|
};
|
|
53
57
|
disabled: {
|
|
54
58
|
type: BooleanConstructor;
|
|
55
|
-
default:
|
|
59
|
+
default: boolean;
|
|
56
60
|
description: string;
|
|
57
61
|
};
|
|
58
62
|
request: {
|
|
@@ -70,9 +74,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
70
74
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
71
75
|
}, {
|
|
72
76
|
round: number | boolean;
|
|
73
|
-
size:
|
|
74
|
-
readonly: boolean;
|
|
77
|
+
size: import('../../..').LewSize;
|
|
75
78
|
disabled: boolean;
|
|
79
|
+
readonly: boolean;
|
|
76
80
|
loading: boolean;
|
|
77
81
|
request: Function;
|
|
78
82
|
}, {}>;
|
|
@@ -1,29 +1,35 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { LewSize } from '../../../types';
|
|
3
|
+
|
|
1
4
|
export declare const switchModel: {
|
|
2
5
|
modelValue: {
|
|
3
6
|
type: BooleanConstructor;
|
|
4
7
|
default: boolean;
|
|
5
8
|
description: string;
|
|
9
|
+
validator: (value: boolean) => boolean;
|
|
6
10
|
};
|
|
7
11
|
};
|
|
8
12
|
export declare const switchProps: {
|
|
9
13
|
size: {
|
|
10
|
-
type:
|
|
14
|
+
type: PropType<LewSize>;
|
|
11
15
|
default: string;
|
|
12
16
|
description: string;
|
|
17
|
+
validator: (value: LewSize) => boolean;
|
|
13
18
|
};
|
|
14
19
|
round: {
|
|
15
20
|
type: (BooleanConstructor | NumberConstructor)[];
|
|
16
21
|
default: boolean;
|
|
17
22
|
description: string;
|
|
23
|
+
validator: (value: boolean | number) => boolean;
|
|
18
24
|
};
|
|
19
25
|
readonly: {
|
|
20
26
|
type: BooleanConstructor;
|
|
21
|
-
default:
|
|
27
|
+
default: boolean;
|
|
22
28
|
description: string;
|
|
23
29
|
};
|
|
24
30
|
disabled: {
|
|
25
31
|
type: BooleanConstructor;
|
|
26
|
-
default:
|
|
32
|
+
default: boolean;
|
|
27
33
|
description: string;
|
|
28
34
|
};
|
|
29
35
|
request: {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
declare function __VLS_template(): Partial<Record<string, (_: {
|
|
2
|
-
row: any
|
|
3
|
-
column: import('../../..').
|
|
2
|
+
row: Record<string, any>;
|
|
3
|
+
column: import('../../..').TableColumn;
|
|
4
4
|
index: number;
|
|
5
5
|
}) => any>> & Partial<Record<string, (_: {
|
|
6
|
-
row: any
|
|
7
|
-
column: import('../../..').
|
|
6
|
+
row: Record<string, any>;
|
|
7
|
+
column: import('../../..').TableColumn;
|
|
8
8
|
index: number;
|
|
9
9
|
}) => any>> & Partial<Record<string, (_: {
|
|
10
|
-
row: any
|
|
11
|
-
column: import('../../..').
|
|
10
|
+
row: Record<string, any>;
|
|
11
|
+
column: import('../../..').TableColumn;
|
|
12
12
|
index: number;
|
|
13
13
|
}) => any>> & {
|
|
14
14
|
"table-header"?(_: {}): any;
|
|
@@ -16,77 +16,84 @@ declare function __VLS_template(): Partial<Record<string, (_: {
|
|
|
16
16
|
empty?(_: {}): any;
|
|
17
17
|
};
|
|
18
18
|
declare const __VLS_component: import('vue').DefineComponent<{
|
|
19
|
+
selectedKeys: import('vue').PropType<any>;
|
|
19
20
|
rowKey: {
|
|
20
21
|
type: StringConstructor;
|
|
21
22
|
default: string;
|
|
22
23
|
description: string;
|
|
24
|
+
validator: (value: string) => boolean;
|
|
23
25
|
};
|
|
24
26
|
dataSource: {
|
|
25
|
-
type: any
|
|
26
|
-
default: never[];
|
|
27
|
+
type: globalThis.PropType<Record<string, any>[]>;
|
|
28
|
+
default: () => never[];
|
|
27
29
|
description: string;
|
|
30
|
+
validator: (value: any[]) => boolean;
|
|
28
31
|
};
|
|
29
32
|
columns: {
|
|
30
|
-
type: globalThis.PropType<import('../../..').
|
|
31
|
-
default: never[];
|
|
33
|
+
type: globalThis.PropType<import('../../..').TableColumn[]>;
|
|
34
|
+
default: () => never[];
|
|
32
35
|
description: string;
|
|
36
|
+
validator: (value: import('../../..').TableColumn[]) => boolean;
|
|
33
37
|
};
|
|
34
38
|
maxHeight: {
|
|
35
39
|
type: (StringConstructor | NumberConstructor)[];
|
|
36
40
|
default: string;
|
|
37
41
|
description: string;
|
|
42
|
+
validator: (value: number | string) => boolean;
|
|
38
43
|
};
|
|
39
44
|
checkable: {
|
|
40
45
|
type: BooleanConstructor;
|
|
41
46
|
default: boolean;
|
|
42
47
|
description: string;
|
|
43
48
|
};
|
|
44
|
-
|
|
49
|
+
multiple: {
|
|
45
50
|
type: BooleanConstructor;
|
|
46
51
|
default: boolean;
|
|
47
52
|
description: string;
|
|
48
53
|
};
|
|
49
|
-
}, {
|
|
50
|
-
|
|
51
|
-
getSelectedKeys: () => string[];
|
|
52
|
-
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
54
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
55
|
+
selectedKeys: import('vue').PropType<any>;
|
|
53
56
|
rowKey: {
|
|
54
57
|
type: StringConstructor;
|
|
55
58
|
default: string;
|
|
56
59
|
description: string;
|
|
60
|
+
validator: (value: string) => boolean;
|
|
57
61
|
};
|
|
58
62
|
dataSource: {
|
|
59
|
-
type: any
|
|
60
|
-
default: never[];
|
|
63
|
+
type: globalThis.PropType<Record<string, any>[]>;
|
|
64
|
+
default: () => never[];
|
|
61
65
|
description: string;
|
|
66
|
+
validator: (value: any[]) => boolean;
|
|
62
67
|
};
|
|
63
68
|
columns: {
|
|
64
|
-
type: globalThis.PropType<import('../../..').
|
|
65
|
-
default: never[];
|
|
69
|
+
type: globalThis.PropType<import('../../..').TableColumn[]>;
|
|
70
|
+
default: () => never[];
|
|
66
71
|
description: string;
|
|
72
|
+
validator: (value: import('../../..').TableColumn[]) => boolean;
|
|
67
73
|
};
|
|
68
74
|
maxHeight: {
|
|
69
75
|
type: (StringConstructor | NumberConstructor)[];
|
|
70
76
|
default: string;
|
|
71
77
|
description: string;
|
|
78
|
+
validator: (value: number | string) => boolean;
|
|
72
79
|
};
|
|
73
80
|
checkable: {
|
|
74
81
|
type: BooleanConstructor;
|
|
75
82
|
default: boolean;
|
|
76
83
|
description: string;
|
|
77
84
|
};
|
|
78
|
-
|
|
85
|
+
multiple: {
|
|
79
86
|
type: BooleanConstructor;
|
|
80
87
|
default: boolean;
|
|
81
88
|
description: string;
|
|
82
89
|
};
|
|
83
90
|
}>>, {
|
|
84
|
-
|
|
91
|
+
multiple: boolean;
|
|
92
|
+
dataSource: Record<string, any>[];
|
|
85
93
|
maxHeight: string | number;
|
|
86
|
-
columns: import('../../..').
|
|
94
|
+
columns: import('../../..').TableColumn[];
|
|
87
95
|
rowKey: string;
|
|
88
96
|
checkable: boolean;
|
|
89
|
-
singleSelect: boolean;
|
|
90
97
|
}, {}>;
|
|
91
98
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
92
99
|
export default _default;
|
|
@@ -1,41 +1,53 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
|
|
3
|
-
export
|
|
3
|
+
export interface TableColumn {
|
|
4
4
|
title: string;
|
|
5
5
|
field: string;
|
|
6
|
-
fixed
|
|
7
|
-
x
|
|
8
|
-
y
|
|
9
|
-
width
|
|
10
|
-
columnStyle
|
|
6
|
+
fixed?: 'left' | 'right';
|
|
7
|
+
x?: string;
|
|
8
|
+
y?: string;
|
|
9
|
+
width?: number;
|
|
10
|
+
columnStyle?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const tableModel: {
|
|
13
|
+
selectedKeys: {
|
|
14
|
+
type: PropType<string[] | string | number | undefined>;
|
|
15
|
+
default: undefined;
|
|
16
|
+
description: string;
|
|
17
|
+
validator: (value: string[] | string) => boolean;
|
|
18
|
+
};
|
|
11
19
|
};
|
|
12
20
|
export declare const tableProps: {
|
|
13
21
|
rowKey: {
|
|
14
22
|
type: StringConstructor;
|
|
15
23
|
default: string;
|
|
16
24
|
description: string;
|
|
25
|
+
validator: (value: string) => boolean;
|
|
17
26
|
};
|
|
18
27
|
dataSource: {
|
|
19
|
-
type: any
|
|
20
|
-
default: never[];
|
|
28
|
+
type: PropType<Record<string, any>[]>;
|
|
29
|
+
default: () => never[];
|
|
21
30
|
description: string;
|
|
31
|
+
validator: (value: any[]) => boolean;
|
|
22
32
|
};
|
|
23
33
|
columns: {
|
|
24
|
-
type: PropType<
|
|
25
|
-
default: never[];
|
|
34
|
+
type: PropType<TableColumn[]>;
|
|
35
|
+
default: () => never[];
|
|
26
36
|
description: string;
|
|
37
|
+
validator: (value: TableColumn[]) => boolean;
|
|
27
38
|
};
|
|
28
39
|
maxHeight: {
|
|
29
40
|
type: (StringConstructor | NumberConstructor)[];
|
|
30
41
|
default: string;
|
|
31
42
|
description: string;
|
|
43
|
+
validator: (value: number | string) => boolean;
|
|
32
44
|
};
|
|
33
45
|
checkable: {
|
|
34
46
|
type: BooleanConstructor;
|
|
35
47
|
default: boolean;
|
|
36
48
|
description: string;
|
|
37
49
|
};
|
|
38
|
-
|
|
50
|
+
multiple: {
|
|
39
51
|
type: BooleanConstructor;
|
|
40
52
|
default: boolean;
|
|
41
53
|
description: string;
|