lew-ui 2.7.6 → 2.7.7
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/dist/components/input-table/src/FormModal.vue.d.ts +1 -2
- package/dist/components/input-table/src/LewInputTable.vue.d.ts +9 -8
- package/dist/components/table/src/LewTable.vue.d.ts +2 -2
- package/dist/components/upload/src/LewUpload.vue.d.ts +13 -0
- package/dist/components/upload/src/props.d.ts +6 -4
- package/dist/index.css +1 -1
- package/dist/index.js +235 -211
- package/dist/index.umd.cjs +2 -2
- package/dist/locals/zh.d.ts +7 -0
- package/package.json +12 -3
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2023 lew
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 lew
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { InputTableColumn } from './props';
|
|
2
|
+
declare module 'vue' {
|
|
3
|
+
interface ComponentCustomEvents {
|
|
4
|
+
'drag-sort': [data: any[]];
|
|
5
|
+
}
|
|
6
|
+
}
|
|
2
7
|
declare function __VLS_template(): {
|
|
3
8
|
attrs: Partial<{}>;
|
|
4
9
|
slots: {
|
|
@@ -21,9 +26,8 @@ declare function __VLS_template(): {
|
|
|
21
26
|
onAddSuccess?: ((...args: any[]) => any) | undefined;
|
|
22
27
|
onEditSuccess?: ((...args: any[]) => any) | undefined;
|
|
23
28
|
}>, {
|
|
24
|
-
open: ({ row
|
|
29
|
+
open: ({ row }: {
|
|
25
30
|
row: any;
|
|
26
|
-
index: number;
|
|
27
31
|
}) => void;
|
|
28
32
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
33
|
addSuccess: (...args: any[]) => void;
|
|
@@ -267,9 +271,8 @@ declare function __VLS_template(): {
|
|
|
267
271
|
onAddSuccess?: ((...args: any[]) => any) | undefined;
|
|
268
272
|
onEditSuccess?: ((...args: any[]) => any) | undefined;
|
|
269
273
|
}>, {
|
|
270
|
-
open: ({ row
|
|
274
|
+
open: ({ row }: {
|
|
271
275
|
row: any;
|
|
272
|
-
index: number;
|
|
273
276
|
}) => void;
|
|
274
277
|
}, {}, {}, {}, {
|
|
275
278
|
size: string;
|
|
@@ -487,9 +490,8 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
487
490
|
onAddSuccess?: ((...args: any[]) => any) | undefined;
|
|
488
491
|
onEditSuccess?: ((...args: any[]) => any) | undefined;
|
|
489
492
|
}>, {
|
|
490
|
-
open: ({ row
|
|
493
|
+
open: ({ row }: {
|
|
491
494
|
row: any;
|
|
492
|
-
index: number;
|
|
493
495
|
}) => void;
|
|
494
496
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
495
497
|
addSuccess: (...args: any[]) => void;
|
|
@@ -733,9 +735,8 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
733
735
|
onAddSuccess?: ((...args: any[]) => any) | undefined;
|
|
734
736
|
onEditSuccess?: ((...args: any[]) => any) | undefined;
|
|
735
737
|
}>, {
|
|
736
|
-
open: ({ row
|
|
738
|
+
open: ({ row }: {
|
|
737
739
|
row: any;
|
|
738
|
-
index: number;
|
|
739
740
|
}) => void;
|
|
740
741
|
}, {}, {}, {}, {
|
|
741
742
|
size: string;
|
|
@@ -91,7 +91,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
91
91
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
92
92
|
sortChange: (...args: any[]) => void;
|
|
93
93
|
selectChange: (...args: any[]) => void;
|
|
94
|
-
|
|
94
|
+
dragSort: (...args: any[]) => void;
|
|
95
95
|
"update:selectedKeys": (value: any) => void;
|
|
96
96
|
"update:sortValue": (value: {}) => void;
|
|
97
97
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
@@ -161,7 +161,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
161
161
|
"onUpdate:sortValue"?: ((value: {}) => any) | undefined;
|
|
162
162
|
onSortChange?: ((...args: any[]) => any) | undefined;
|
|
163
163
|
onSelectChange?: ((...args: any[]) => any) | undefined;
|
|
164
|
-
|
|
164
|
+
onDragSort?: ((...args: any[]) => any) | undefined;
|
|
165
165
|
}>, {
|
|
166
166
|
size: import('../../..').LewSize;
|
|
167
167
|
checkable: boolean;
|
|
@@ -67,6 +67,12 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
67
67
|
description: string;
|
|
68
68
|
validator: (value: string) => boolean;
|
|
69
69
|
};
|
|
70
|
+
beforeDelete: {
|
|
71
|
+
type: FunctionConstructor;
|
|
72
|
+
default: undefined;
|
|
73
|
+
description: string;
|
|
74
|
+
validator: (value: any) => boolean;
|
|
75
|
+
};
|
|
70
76
|
modelValue: {
|
|
71
77
|
type: globalThis.PropType<UploadFileItem[]>;
|
|
72
78
|
};
|
|
@@ -142,6 +148,12 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
142
148
|
description: string;
|
|
143
149
|
validator: (value: string) => boolean;
|
|
144
150
|
};
|
|
151
|
+
beforeDelete: {
|
|
152
|
+
type: FunctionConstructor;
|
|
153
|
+
default: undefined;
|
|
154
|
+
description: string;
|
|
155
|
+
validator: (value: any) => boolean;
|
|
156
|
+
};
|
|
145
157
|
modelValue: {
|
|
146
158
|
type: globalThis.PropType<UploadFileItem[]>;
|
|
147
159
|
};
|
|
@@ -162,6 +174,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
162
174
|
uploadHelper: Function;
|
|
163
175
|
uploadHelperId: string;
|
|
164
176
|
viewMode: string;
|
|
177
|
+
beforeDelete: Function;
|
|
165
178
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
166
179
|
dropRef: ({
|
|
167
180
|
$: import('vue').ComponentInternalInstance;
|
|
@@ -81,6 +81,12 @@ export declare const uploadProps: {
|
|
|
81
81
|
description: string;
|
|
82
82
|
validator: (value: string) => boolean;
|
|
83
83
|
};
|
|
84
|
+
beforeDelete: {
|
|
85
|
+
type: FunctionConstructor;
|
|
86
|
+
default: undefined;
|
|
87
|
+
description: string;
|
|
88
|
+
validator: (value: any) => boolean;
|
|
89
|
+
};
|
|
84
90
|
};
|
|
85
91
|
export declare const uploadByListProps: {
|
|
86
92
|
size: {
|
|
@@ -98,8 +104,4 @@ export declare const uploadByCardProps: {
|
|
|
98
104
|
validator: (value: LewSize) => boolean;
|
|
99
105
|
};
|
|
100
106
|
};
|
|
101
|
-
export declare const statusConfig: Record<UploadStatus, {
|
|
102
|
-
text: string;
|
|
103
|
-
color: string;
|
|
104
|
-
}>;
|
|
105
107
|
export type UploadProps = ExtractPropTypes<typeof uploadProps>;
|