lew-ui 2.4.8 → 2.4.12
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 +46 -46
- package/README.zh-CN.md +48 -48
- package/dist/components/badge/src/LewBadge.vue.d.ts +1 -1
- package/dist/components/button/src/LewButton.vue.d.ts +2 -2
- package/dist/components/cascader/src/LewCascader.vue.d.ts +15 -2
- package/dist/components/cascader/src/props.d.ts +7 -1
- package/dist/components/drawer/src/LewDrawer.vue.d.ts +15 -4
- package/dist/components/drawer/src/props.d.ts +5 -0
- package/dist/components/form/src/LewForm.vue.d.ts +11 -0
- package/dist/components/form/src/LewFormItem.vue.d.ts +6 -5
- package/dist/components/form/src/props.d.ts +8 -2
- package/dist/components/image/src/LewImage.vue.d.ts +4 -4
- package/dist/components/image/src/props.d.ts +1 -1
- package/dist/components/mark/src/LewMark.vue.d.ts +1 -1
- package/dist/components/modal/src/LewModal.vue.d.ts +15 -4
- package/dist/components/modal/src/props.d.ts +5 -0
- package/dist/components/popok/src/LewPopok.vue.d.ts +4 -4
- package/dist/components/popover/src/LewPopover.vue.d.ts +1 -1
- package/dist/components/select/src/LewSelect.vue.d.ts +15 -2
- package/dist/components/select/src/props.d.ts +7 -1
- package/dist/components/select-multiple/src/LewSelectMultiple.vue.d.ts +13 -0
- package/dist/components/select-multiple/src/props.d.ts +6 -0
- package/dist/components/switch/src/LewSwitch.vue.d.ts +1 -1
- package/dist/components/tag/src/LewTag.vue.d.ts +1 -1
- package/dist/components/title/src/LewTitle.vue.d.ts +1 -1
- package/dist/components/tree/src/LewTree.vue.d.ts +3 -3
- package/dist/components/tree/src/props.d.ts +1 -1
- package/dist/components/tree-select/src/LewTreeSelect.vue.d.ts +3 -3
- package/dist/components/tree-select/src/props.d.ts +1 -1
- package/dist/components/upload/src/LewUpload.vue.d.ts +28 -2
- package/dist/components/upload/src/LewUploadByCard.vue.d.ts +28 -0
- package/dist/components/upload/src/LewUploadByList.vue.d.ts +28 -0
- package/dist/components/upload/src/props.d.ts +32 -2
- package/dist/confetti.browser.min.js +456 -456
- package/dist/docs/docs/upload/demo/index.d.ts +3 -1
- package/dist/docs/views/form-engine/schema/compoments-menus.d.ts +38 -6
- package/dist/docs/views/form-engine/schema/components/upload.d.ts +18 -0
- package/dist/index.mjs +2995 -1920
- package/dist/index.umd.js +6 -7
- package/dist/style.css +1 -1
- package/dist/utils/Icon.vue.d.ts +12 -3
- package/dist/utils/index.d.ts +1 -10
- package/package.json +3 -3
|
@@ -106,9 +106,9 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
106
106
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
107
107
|
onHide?: ((...args: any[]) => any) | undefined;
|
|
108
108
|
}>, {
|
|
109
|
+
loading: boolean;
|
|
109
110
|
disabled: boolean;
|
|
110
111
|
trigger: import('../../..').PopoverTrigger;
|
|
111
|
-
loading: boolean;
|
|
112
112
|
placement: import('../../..').PopoverPlacement;
|
|
113
113
|
hideOnClick: string | boolean;
|
|
114
114
|
offset: number[];
|
|
@@ -48,7 +48,13 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
48
48
|
};
|
|
49
49
|
searchMethod: {
|
|
50
50
|
type: PropType<(params: import('../../..').SelectSearchMethodParams) => SelectOptions[]>;
|
|
51
|
-
default:
|
|
51
|
+
default: undefined;
|
|
52
|
+
description: string;
|
|
53
|
+
};
|
|
54
|
+
searchMethodId: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: string;
|
|
57
|
+
hidden: boolean;
|
|
52
58
|
description: string;
|
|
53
59
|
};
|
|
54
60
|
searchDelay: {
|
|
@@ -123,7 +129,13 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
123
129
|
};
|
|
124
130
|
searchMethod: {
|
|
125
131
|
type: PropType<(params: import('../../..').SelectSearchMethodParams) => SelectOptions[]>;
|
|
126
|
-
default:
|
|
132
|
+
default: undefined;
|
|
133
|
+
description: string;
|
|
134
|
+
};
|
|
135
|
+
searchMethodId: {
|
|
136
|
+
type: StringConstructor;
|
|
137
|
+
default: string;
|
|
138
|
+
hidden: boolean;
|
|
127
139
|
description: string;
|
|
128
140
|
};
|
|
129
141
|
searchDelay: {
|
|
@@ -169,6 +181,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
169
181
|
searchable: boolean;
|
|
170
182
|
searchDelay: number;
|
|
171
183
|
searchMethod: (params: import('../../..').SelectSearchMethodParams) => SelectOptions[];
|
|
184
|
+
searchMethodId: string;
|
|
172
185
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
173
186
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
174
187
|
export default _default;
|
|
@@ -57,7 +57,13 @@ export declare const selectProps: {
|
|
|
57
57
|
};
|
|
58
58
|
searchMethod: {
|
|
59
59
|
type: PropType<(params: SelectSearchMethodParams) => SelectOptions[]>;
|
|
60
|
-
default:
|
|
60
|
+
default: undefined;
|
|
61
|
+
description: string;
|
|
62
|
+
};
|
|
63
|
+
searchMethodId: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: string;
|
|
66
|
+
hidden: boolean;
|
|
61
67
|
description: string;
|
|
62
68
|
};
|
|
63
69
|
searchDelay: {
|
|
@@ -63,6 +63,12 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
63
63
|
}) => SelectMultipleOptions[];
|
|
64
64
|
description: string;
|
|
65
65
|
};
|
|
66
|
+
searchMethodId: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
default: string;
|
|
69
|
+
hidden: boolean;
|
|
70
|
+
description: string;
|
|
71
|
+
};
|
|
66
72
|
searchDelay: {
|
|
67
73
|
type: NumberConstructor;
|
|
68
74
|
default: number;
|
|
@@ -157,6 +163,12 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
157
163
|
}) => SelectMultipleOptions[];
|
|
158
164
|
description: string;
|
|
159
165
|
};
|
|
166
|
+
searchMethodId: {
|
|
167
|
+
type: StringConstructor;
|
|
168
|
+
default: string;
|
|
169
|
+
hidden: boolean;
|
|
170
|
+
description: string;
|
|
171
|
+
};
|
|
160
172
|
searchDelay: {
|
|
161
173
|
type: NumberConstructor;
|
|
162
174
|
default: number;
|
|
@@ -207,6 +219,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
207
219
|
searchable: boolean;
|
|
208
220
|
searchDelay: number;
|
|
209
221
|
searchMethod: (params: import('../../..').SelectSearchMultipleMethodParams) => SelectMultipleOptions[];
|
|
222
|
+
searchMethodId: string;
|
|
210
223
|
valueLayout: "text" | "tag";
|
|
211
224
|
valueTextSplit: string;
|
|
212
225
|
searchPlaceholder: string;
|
|
@@ -70,6 +70,12 @@ export declare const selectMultipleProps: {
|
|
|
70
70
|
}) => SelectMultipleOptions[];
|
|
71
71
|
description: string;
|
|
72
72
|
};
|
|
73
|
+
searchMethodId: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: string;
|
|
76
|
+
hidden: boolean;
|
|
77
|
+
description: string;
|
|
78
|
+
};
|
|
73
79
|
searchDelay: {
|
|
74
80
|
type: NumberConstructor;
|
|
75
81
|
default: number;
|
|
@@ -74,10 +74,10 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
74
74
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
75
75
|
}>, {
|
|
76
76
|
size: import('../../..').LewSize;
|
|
77
|
+
loading: boolean;
|
|
77
78
|
round: number | boolean;
|
|
78
79
|
disabled: boolean;
|
|
79
80
|
readonly: boolean;
|
|
80
|
-
loading: boolean;
|
|
81
81
|
request: Function;
|
|
82
82
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
83
83
|
export default _default;
|
|
@@ -87,9 +87,9 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
87
87
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
88
88
|
}>, {
|
|
89
89
|
type: import('../../..').TagType;
|
|
90
|
+
color: import('../../..').LewColor;
|
|
90
91
|
size: import('../../..').LewSize;
|
|
91
92
|
text: string;
|
|
92
|
-
color: import('../../..').LewColor;
|
|
93
93
|
round: boolean;
|
|
94
94
|
disabled: boolean;
|
|
95
95
|
closable: boolean;
|
|
@@ -40,9 +40,9 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
40
40
|
validator: (value: number) => boolean;
|
|
41
41
|
};
|
|
42
42
|
}>> & Readonly<{}>, {
|
|
43
|
+
color: string;
|
|
43
44
|
size: string | number;
|
|
44
45
|
bold: number;
|
|
45
|
-
color: string;
|
|
46
46
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
47
47
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
48
48
|
export default _default;
|
|
@@ -71,7 +71,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
71
71
|
default: undefined;
|
|
72
72
|
description: string;
|
|
73
73
|
};
|
|
74
|
-
|
|
74
|
+
loadMethod: {
|
|
75
75
|
type: PropType<(item: TreeDataSource) => void>;
|
|
76
76
|
default: undefined;
|
|
77
77
|
description: string;
|
|
@@ -153,7 +153,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
153
153
|
default: undefined;
|
|
154
154
|
description: string;
|
|
155
155
|
};
|
|
156
|
-
|
|
156
|
+
loadMethod: {
|
|
157
157
|
type: PropType<(item: TreeDataSource) => void>;
|
|
158
158
|
default: undefined;
|
|
159
159
|
description: string;
|
|
@@ -172,7 +172,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
172
172
|
multiple: boolean;
|
|
173
173
|
free: boolean;
|
|
174
174
|
trigger: import('../../..').TreeTriggerType;
|
|
175
|
-
|
|
175
|
+
loadMethod: (item: TreeDataSource) => void;
|
|
176
176
|
dataSource: TreeDataSource[];
|
|
177
177
|
keyField: string;
|
|
178
178
|
labelField: string;
|
|
@@ -120,7 +120,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
120
120
|
default: undefined;
|
|
121
121
|
description: string;
|
|
122
122
|
};
|
|
123
|
-
|
|
123
|
+
loadMethod: {
|
|
124
124
|
type: PropType<() => void>;
|
|
125
125
|
default: undefined;
|
|
126
126
|
description: string;
|
|
@@ -244,7 +244,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
244
244
|
default: undefined;
|
|
245
245
|
description: string;
|
|
246
246
|
};
|
|
247
|
-
|
|
247
|
+
loadMethod: {
|
|
248
248
|
type: PropType<() => void>;
|
|
249
249
|
default: undefined;
|
|
250
250
|
description: string;
|
|
@@ -261,7 +261,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
261
261
|
showAllLevels: boolean;
|
|
262
262
|
free: boolean;
|
|
263
263
|
trigger: import('../../..').TreeSelectTriggerType;
|
|
264
|
-
|
|
264
|
+
loadMethod: () => void;
|
|
265
265
|
readonly: boolean;
|
|
266
266
|
dataSource: TreeDataSource[];
|
|
267
267
|
keyField: string;
|
|
@@ -48,10 +48,22 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
48
48
|
};
|
|
49
49
|
uploadHelper: {
|
|
50
50
|
type: FunctionConstructor;
|
|
51
|
-
default:
|
|
51
|
+
default: undefined;
|
|
52
52
|
description: string;
|
|
53
53
|
validator: (value: Function) => boolean;
|
|
54
54
|
};
|
|
55
|
+
uploadHelperId: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
hidden: boolean;
|
|
59
|
+
description: string;
|
|
60
|
+
};
|
|
61
|
+
viewMode: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
description: string;
|
|
65
|
+
validator: (value: string) => boolean;
|
|
66
|
+
};
|
|
55
67
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
56
68
|
change: (...args: any[]) => void;
|
|
57
69
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
@@ -102,10 +114,22 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
102
114
|
};
|
|
103
115
|
uploadHelper: {
|
|
104
116
|
type: FunctionConstructor;
|
|
105
|
-
default:
|
|
117
|
+
default: undefined;
|
|
106
118
|
description: string;
|
|
107
119
|
validator: (value: Function) => boolean;
|
|
108
120
|
};
|
|
121
|
+
uploadHelperId: {
|
|
122
|
+
type: StringConstructor;
|
|
123
|
+
default: string;
|
|
124
|
+
hidden: boolean;
|
|
125
|
+
description: string;
|
|
126
|
+
};
|
|
127
|
+
viewMode: {
|
|
128
|
+
type: StringConstructor;
|
|
129
|
+
default: string;
|
|
130
|
+
description: string;
|
|
131
|
+
validator: (value: string) => boolean;
|
|
132
|
+
};
|
|
109
133
|
}>> & Readonly<{
|
|
110
134
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
111
135
|
}>, {
|
|
@@ -118,5 +142,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
118
142
|
limit: number;
|
|
119
143
|
maxFileSize: number;
|
|
120
144
|
uploadHelper: Function;
|
|
145
|
+
uploadHelperId: string;
|
|
146
|
+
viewMode: string;
|
|
121
147
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
122
148
|
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UploadFileItem } from './props';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
4
|
+
modelValue: import('vue').PropType<UploadFileItem[]>;
|
|
5
|
+
size: {
|
|
6
|
+
type: PropType<import('../../..').LewSize>;
|
|
7
|
+
default: string;
|
|
8
|
+
description: string;
|
|
9
|
+
validator: (value: import('../../..').LewSize) => boolean;
|
|
10
|
+
};
|
|
11
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
reUpload: (...args: any[]) => void;
|
|
13
|
+
deleteFile: (...args: any[]) => void;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
15
|
+
modelValue: import('vue').PropType<UploadFileItem[]>;
|
|
16
|
+
size: {
|
|
17
|
+
type: PropType<import('../../..').LewSize>;
|
|
18
|
+
default: string;
|
|
19
|
+
description: string;
|
|
20
|
+
validator: (value: import('../../..').LewSize) => boolean;
|
|
21
|
+
};
|
|
22
|
+
}>> & Readonly<{
|
|
23
|
+
onReUpload?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
onDeleteFile?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
size: import('../../..').LewSize;
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UploadFileItem } from './props';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
4
|
+
modelValue: import('vue').PropType<UploadFileItem[]>;
|
|
5
|
+
size: {
|
|
6
|
+
type: PropType<import('../../..').LewSize>;
|
|
7
|
+
default: string;
|
|
8
|
+
description: string;
|
|
9
|
+
validator: (value: import('../../..').LewSize) => boolean;
|
|
10
|
+
};
|
|
11
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
reUpload: (...args: any[]) => void;
|
|
13
|
+
deleteFile: (...args: any[]) => void;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
15
|
+
modelValue: import('vue').PropType<UploadFileItem[]>;
|
|
16
|
+
size: {
|
|
17
|
+
type: PropType<import('../../..').LewSize>;
|
|
18
|
+
default: string;
|
|
19
|
+
description: string;
|
|
20
|
+
validator: (value: import('../../..').LewSize) => boolean;
|
|
21
|
+
};
|
|
22
|
+
}>> & Readonly<{
|
|
23
|
+
onReUpload?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
onDeleteFile?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
size: import('../../..').LewSize;
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
28
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
|
2
2
|
import { LewSize } from '../../..';
|
|
3
3
|
|
|
4
|
-
export type UploadStatus = 'success' | 'fail' | 'uploading' | '
|
|
4
|
+
export type UploadStatus = 'success' | 'fail' | 'uploading' | 'wrong_config' | 'complete' | 'wrong_type' | 'wrong_size';
|
|
5
5
|
export type UploadFileItem = {
|
|
6
6
|
id: string;
|
|
7
7
|
name?: string;
|
|
@@ -61,9 +61,39 @@ export declare const uploadProps: {
|
|
|
61
61
|
};
|
|
62
62
|
uploadHelper: {
|
|
63
63
|
type: FunctionConstructor;
|
|
64
|
-
default:
|
|
64
|
+
default: undefined;
|
|
65
65
|
description: string;
|
|
66
66
|
validator: (value: Function) => boolean;
|
|
67
67
|
};
|
|
68
|
+
uploadHelperId: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
default: string;
|
|
71
|
+
hidden: boolean;
|
|
72
|
+
description: string;
|
|
73
|
+
};
|
|
74
|
+
viewMode: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
default: string;
|
|
77
|
+
description: string;
|
|
78
|
+
validator: (value: string) => boolean;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
export declare const uploadByListProps: {
|
|
82
|
+
size: {
|
|
83
|
+
type: PropType<LewSize>;
|
|
84
|
+
default: string;
|
|
85
|
+
description: string;
|
|
86
|
+
validator: (value: LewSize) => boolean;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
export declare const uploadByCardProps: {
|
|
90
|
+
size: {
|
|
91
|
+
type: PropType<LewSize>;
|
|
92
|
+
default: string;
|
|
93
|
+
description: string;
|
|
94
|
+
validator: (value: LewSize) => boolean;
|
|
95
|
+
};
|
|
68
96
|
};
|
|
97
|
+
export declare const statusMap: Record<UploadStatus, string>;
|
|
98
|
+
export declare const statusColorMap: Record<UploadStatus, string>;
|
|
69
99
|
export type UploadProps = ExtractPropTypes<typeof uploadProps>;
|