lew-ui 2.5.7 → 2.5.9
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/collapse/src/LewCollapse.vue.d.ts +0 -13
- package/dist/components/collapse/src/props.d.ts +0 -6
- package/dist/components/empty/src/LewEmpty.vue.d.ts +1 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/mark/src/LewMark.vue.d.ts +5 -5
- package/dist/components/select/src/LewSelect.vue.d.ts +3 -3
- package/dist/components/select/src/props.d.ts +8 -1
- package/dist/components/select/src/util.d.ts +8 -0
- package/dist/components/select-multiple/src/LewSelectMultiple.vue.d.ts +2 -8
- package/dist/components/select-multiple/src/props.d.ts +8 -4
- package/dist/index.mjs +394 -365
- package/dist/index.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/components/magic-number/index.d.ts +0 -2
- package/dist/components/magic-number/src/LewMagicNumber.vue.d.ts +0 -38
- package/dist/components/magic-number/src/props.d.ts +0 -20
|
@@ -9,12 +9,6 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
9
9
|
description: string;
|
|
10
10
|
validator(value: string | number): boolean;
|
|
11
11
|
};
|
|
12
|
-
gap: {
|
|
13
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
14
|
-
default: string;
|
|
15
|
-
description: string;
|
|
16
|
-
validator(value: string | number): boolean;
|
|
17
|
-
};
|
|
18
12
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
19
13
|
modelValue: import('vue').PropType<any>;
|
|
20
14
|
width: {
|
|
@@ -23,15 +17,8 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
23
17
|
description: string;
|
|
24
18
|
validator(value: string | number): boolean;
|
|
25
19
|
};
|
|
26
|
-
gap: {
|
|
27
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
28
|
-
default: string;
|
|
29
|
-
description: string;
|
|
30
|
-
validator(value: string | number): boolean;
|
|
31
|
-
};
|
|
32
20
|
}>> & Readonly<{}>, {
|
|
33
21
|
width: string | number;
|
|
34
|
-
gap: string | number;
|
|
35
22
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
36
23
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
37
24
|
export default _default;
|
|
@@ -22,12 +22,6 @@ export declare const collapseProps: {
|
|
|
22
22
|
description: string;
|
|
23
23
|
validator(value: string | number): boolean;
|
|
24
24
|
};
|
|
25
|
-
gap: {
|
|
26
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
27
|
-
default: string;
|
|
28
|
-
description: string;
|
|
29
|
-
validator(value: string | number): boolean;
|
|
30
|
-
};
|
|
31
25
|
};
|
|
32
26
|
export declare const collapseItemProps: {
|
|
33
27
|
collapseKey: {
|
|
@@ -77,7 +77,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
77
77
|
title: string;
|
|
78
78
|
width: string | number;
|
|
79
79
|
height: string;
|
|
80
|
-
padding: string;
|
|
81
80
|
fontSize: string | number;
|
|
81
|
+
padding: string;
|
|
82
82
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
83
83
|
export default _default;
|
|
@@ -3,9 +3,9 @@ declare function __VLS_template(): {
|
|
|
3
3
|
};
|
|
4
4
|
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
5
5
|
color: {
|
|
6
|
-
type: PropType<"gray" | "orange" | "green" | "red" | "blue" | "brown" | "cyan" | "indigo" | "
|
|
6
|
+
type: PropType<"gray" | "orange" | "green" | "red" | "blue" | "brown" | "cyan" | "indigo" | "pink" | "purple" | "teal" | "yellow" | "mint">;
|
|
7
7
|
default: string;
|
|
8
|
-
validator: (value: "gray" | "orange" | "green" | "red" | "blue" | "brown" | "cyan" | "indigo" | "
|
|
8
|
+
validator: (value: "gray" | "orange" | "green" | "red" | "blue" | "brown" | "cyan" | "indigo" | "pink" | "purple" | "teal" | "yellow" | "mint") => boolean;
|
|
9
9
|
description: string;
|
|
10
10
|
};
|
|
11
11
|
bold: {
|
|
@@ -29,9 +29,9 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
29
29
|
click: (...args: any[]) => void;
|
|
30
30
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
31
31
|
color: {
|
|
32
|
-
type: PropType<"gray" | "orange" | "green" | "red" | "blue" | "brown" | "cyan" | "indigo" | "
|
|
32
|
+
type: PropType<"gray" | "orange" | "green" | "red" | "blue" | "brown" | "cyan" | "indigo" | "pink" | "purple" | "teal" | "yellow" | "mint">;
|
|
33
33
|
default: string;
|
|
34
|
-
validator: (value: "gray" | "orange" | "green" | "red" | "blue" | "brown" | "cyan" | "indigo" | "
|
|
34
|
+
validator: (value: "gray" | "orange" | "green" | "red" | "blue" | "brown" | "cyan" | "indigo" | "pink" | "purple" | "teal" | "yellow" | "mint") => boolean;
|
|
35
35
|
description: string;
|
|
36
36
|
};
|
|
37
37
|
bold: {
|
|
@@ -54,7 +54,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
54
54
|
}>> & Readonly<{
|
|
55
55
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
56
56
|
}>, {
|
|
57
|
-
color: "gray" | "orange" | "green" | "red" | "blue" | "brown" | "cyan" | "indigo" | "
|
|
57
|
+
color: "gray" | "orange" | "green" | "red" | "blue" | "brown" | "cyan" | "indigo" | "pink" | "purple" | "teal" | "yellow" | "mint";
|
|
58
58
|
bold: string | (100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900);
|
|
59
59
|
round: boolean;
|
|
60
60
|
cursor: "default" | "text" | "pointer" | "move" | "not-allowed";
|
|
@@ -16,7 +16,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
16
16
|
description: string;
|
|
17
17
|
};
|
|
18
18
|
options: {
|
|
19
|
-
type: PropType<SelectOptions[]>;
|
|
19
|
+
type: PropType<SelectOptions[] | import('../../..').SelectOptionsGroup[]>;
|
|
20
20
|
default: () => never[];
|
|
21
21
|
description: string;
|
|
22
22
|
};
|
|
@@ -97,7 +97,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
97
97
|
description: string;
|
|
98
98
|
};
|
|
99
99
|
options: {
|
|
100
|
-
type: PropType<SelectOptions[]>;
|
|
100
|
+
type: PropType<SelectOptions[] | import('../../..').SelectOptionsGroup[]>;
|
|
101
101
|
default: () => never[];
|
|
102
102
|
description: string;
|
|
103
103
|
};
|
|
@@ -171,7 +171,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
171
171
|
size: import('../../..').LewSize;
|
|
172
172
|
disabled: boolean;
|
|
173
173
|
trigger: import('../../..').SelectTrigger;
|
|
174
|
-
options: SelectOptions[];
|
|
174
|
+
options: SelectOptions[] | import('../../..').SelectOptionsGroup[];
|
|
175
175
|
readonly: boolean;
|
|
176
176
|
placeholder: string;
|
|
177
177
|
clearable: boolean;
|
|
@@ -5,7 +5,14 @@ export type SelectOptions = {
|
|
|
5
5
|
label: string;
|
|
6
6
|
value: string | number;
|
|
7
7
|
disabled?: boolean;
|
|
8
|
+
isGroup?: boolean;
|
|
9
|
+
groupValue?: string | number;
|
|
10
|
+
groupLabel?: string;
|
|
8
11
|
};
|
|
12
|
+
export interface SelectOptionsGroup {
|
|
13
|
+
label: string;
|
|
14
|
+
children: SelectOptions[];
|
|
15
|
+
}
|
|
9
16
|
export type SelectSearchMethodParams = {
|
|
10
17
|
options?: SelectOptions[];
|
|
11
18
|
keyword?: string;
|
|
@@ -25,7 +32,7 @@ export declare const selectProps: {
|
|
|
25
32
|
description: string;
|
|
26
33
|
};
|
|
27
34
|
options: {
|
|
28
|
-
type: PropType<SelectOptions[]>;
|
|
35
|
+
type: PropType<SelectOptions[] | SelectOptionsGroup[]>;
|
|
29
36
|
default: () => never[];
|
|
30
37
|
description: string;
|
|
31
38
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SelectOptions, SelectOptionsGroup } from './props';
|
|
2
|
+
import { SelectMultipleOptions, SelectMultipleOptionsGroup } from '../../select-multiple/src/props';
|
|
3
|
+
|
|
4
|
+
type Options = SelectOptions | SelectMultipleOptions;
|
|
5
|
+
type OptionsGroup = SelectOptionsGroup | SelectMultipleOptionsGroup;
|
|
6
|
+
export declare const flattenOptions: (options: (Options | OptionsGroup)[]) => Options[];
|
|
7
|
+
export declare const defaultSearchMethod: (params: any) => Options[];
|
|
8
|
+
export {};
|
|
@@ -58,10 +58,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
58
58
|
};
|
|
59
59
|
searchMethod: {
|
|
60
60
|
type: PropType<(params: import('../../..').SelectSearchMultipleMethodParams) => SelectMultipleOptions[]>;
|
|
61
|
-
default:
|
|
62
|
-
options: SelectMultipleOptions[];
|
|
63
|
-
keyword: string;
|
|
64
|
-
}) => SelectMultipleOptions[];
|
|
61
|
+
default: undefined;
|
|
65
62
|
description: string;
|
|
66
63
|
};
|
|
67
64
|
searchMethodId: {
|
|
@@ -159,10 +156,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
159
156
|
};
|
|
160
157
|
searchMethod: {
|
|
161
158
|
type: PropType<(params: import('../../..').SelectSearchMultipleMethodParams) => SelectMultipleOptions[]>;
|
|
162
|
-
default:
|
|
163
|
-
options: SelectMultipleOptions[];
|
|
164
|
-
keyword: string;
|
|
165
|
-
}) => SelectMultipleOptions[];
|
|
159
|
+
default: undefined;
|
|
166
160
|
description: string;
|
|
167
161
|
};
|
|
168
162
|
searchMethodId: {
|
|
@@ -5,6 +5,13 @@ export type SelectMultipleOptions = {
|
|
|
5
5
|
label: string;
|
|
6
6
|
value: string | number;
|
|
7
7
|
disabled?: boolean;
|
|
8
|
+
isGroup?: boolean;
|
|
9
|
+
groupValue?: string | number;
|
|
10
|
+
groupLabel?: string;
|
|
11
|
+
};
|
|
12
|
+
export type SelectMultipleOptionsGroup = {
|
|
13
|
+
label: string;
|
|
14
|
+
children: SelectMultipleOptions[];
|
|
8
15
|
};
|
|
9
16
|
export type SelectSearchMultipleMethodParams = {
|
|
10
17
|
options?: SelectMultipleOptions[];
|
|
@@ -66,10 +73,7 @@ export declare const selectMultipleProps: {
|
|
|
66
73
|
};
|
|
67
74
|
searchMethod: {
|
|
68
75
|
type: PropType<(params: SelectSearchMultipleMethodParams) => SelectMultipleOptions[]>;
|
|
69
|
-
default:
|
|
70
|
-
options: SelectMultipleOptions[];
|
|
71
|
-
keyword: string;
|
|
72
|
-
}) => SelectMultipleOptions[];
|
|
76
|
+
default: undefined;
|
|
73
77
|
description: string;
|
|
74
78
|
};
|
|
75
79
|
searchMethodId: {
|