voiptime-components 1.12.22 → 1.12.23
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/index.cjs.js +39 -1
- package/dist/index.d.ts +48 -1
- package/dist/index.es.js +25565 -4579
- package/dist/index.umd.js +39 -1
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -1121,6 +1121,13 @@ export declare interface PaginationState {
|
|
|
1121
1121
|
toItem: number;
|
|
1122
1122
|
}
|
|
1123
1123
|
|
|
1124
|
+
declare interface ParseResult {
|
|
1125
|
+
sheets: SheetParseResult[];
|
|
1126
|
+
rows: number;
|
|
1127
|
+
columns: string[];
|
|
1128
|
+
data?: any[];
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1124
1131
|
export declare const parseTimeString: (timeStr: string) => TimeObject | null;
|
|
1125
1132
|
|
|
1126
1133
|
export declare const phoneNumber: ValidatorFn;
|
|
@@ -1160,6 +1167,13 @@ export declare interface SelectionChangeEventData {
|
|
|
1160
1167
|
isAllSelected?: boolean;
|
|
1161
1168
|
}
|
|
1162
1169
|
|
|
1170
|
+
declare interface SheetParseResult {
|
|
1171
|
+
name: string;
|
|
1172
|
+
rows: number;
|
|
1173
|
+
columns: string[];
|
|
1174
|
+
data?: any[];
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1163
1177
|
export declare interface SortChangeEventData {
|
|
1164
1178
|
column: VTableColumnProps;
|
|
1165
1179
|
direction: SortDirection | null;
|
|
@@ -1205,7 +1219,7 @@ export declare type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
|
|
|
1205
1219
|
export declare const uniqueAsync: (checkFn: (val: any) => Promise<boolean>, message?: string) => ValidatorFn;
|
|
1206
1220
|
|
|
1207
1221
|
export declare interface UploadError {
|
|
1208
|
-
type: 'size' | 'type' | 'count';
|
|
1222
|
+
type: 'size' | 'type' | 'count' | 'parse';
|
|
1209
1223
|
message: string;
|
|
1210
1224
|
file?: File;
|
|
1211
1225
|
}
|
|
@@ -2183,22 +2197,43 @@ export declare const VUpload: DefineComponent<VUploadProps, {}, {}, {}, {}, Comp
|
|
|
2183
2197
|
"update:modelValue": (files: UploadFile[]) => any;
|
|
2184
2198
|
remove: (file: UploadFile) => any;
|
|
2185
2199
|
exceed: (files: File[]) => any;
|
|
2200
|
+
parse: (result: {
|
|
2201
|
+
file: UploadFile;
|
|
2202
|
+
result: ParseResult;
|
|
2203
|
+
}) => any;
|
|
2204
|
+
rowsExceed: (data: {
|
|
2205
|
+
file: UploadFile;
|
|
2206
|
+
rows: number;
|
|
2207
|
+
maxRows: number;
|
|
2208
|
+
}) => any;
|
|
2186
2209
|
}, string, PublicProps, Readonly<VUploadProps> & Readonly<{
|
|
2187
2210
|
onChange?: ((files: UploadFile[]) => any) | undefined;
|
|
2188
2211
|
onError?: ((error: UploadError) => any) | undefined;
|
|
2189
2212
|
"onUpdate:modelValue"?: ((files: UploadFile[]) => any) | undefined;
|
|
2190
2213
|
onRemove?: ((file: UploadFile) => any) | undefined;
|
|
2191
2214
|
onExceed?: ((files: File[]) => any) | undefined;
|
|
2215
|
+
onParse?: ((result: {
|
|
2216
|
+
file: UploadFile;
|
|
2217
|
+
result: ParseResult;
|
|
2218
|
+
}) => any) | undefined;
|
|
2219
|
+
onRowsExceed?: ((data: {
|
|
2220
|
+
file: UploadFile;
|
|
2221
|
+
rows: number;
|
|
2222
|
+
maxRows: number;
|
|
2223
|
+
}) => any) | undefined;
|
|
2192
2224
|
}>, {
|
|
2193
2225
|
type: "drag" | "button";
|
|
2194
2226
|
disabled: boolean;
|
|
2195
2227
|
modelValue: UploadFile[];
|
|
2196
2228
|
placeholder: string;
|
|
2229
|
+
maxRows: number;
|
|
2197
2230
|
multiple: boolean;
|
|
2198
2231
|
accept: string;
|
|
2199
2232
|
maxSize: number;
|
|
2200
2233
|
maxFiles: number;
|
|
2201
2234
|
tip: string;
|
|
2235
|
+
parseFiles: boolean;
|
|
2236
|
+
returnData: boolean;
|
|
2202
2237
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
2203
2238
|
fileInputRef: HTMLInputElement;
|
|
2204
2239
|
}, HTMLDivElement>;
|
|
@@ -2209,6 +2244,15 @@ export declare interface VUploadEmits {
|
|
|
2209
2244
|
(e: 'remove', file: UploadFile): void;
|
|
2210
2245
|
(e: 'exceed', files: File[]): void;
|
|
2211
2246
|
(e: 'error', error: UploadError): void;
|
|
2247
|
+
(e: 'parse', result: {
|
|
2248
|
+
file: UploadFile;
|
|
2249
|
+
result: ParseResult;
|
|
2250
|
+
}): void;
|
|
2251
|
+
(e: 'rowsExceed', data: {
|
|
2252
|
+
file: UploadFile;
|
|
2253
|
+
rows: number;
|
|
2254
|
+
maxRows: number;
|
|
2255
|
+
}): void;
|
|
2212
2256
|
}
|
|
2213
2257
|
|
|
2214
2258
|
export declare interface VUploadProps {
|
|
@@ -2216,11 +2260,14 @@ export declare interface VUploadProps {
|
|
|
2216
2260
|
accept?: string;
|
|
2217
2261
|
maxSize?: number;
|
|
2218
2262
|
maxFiles?: number;
|
|
2263
|
+
maxRows?: number;
|
|
2219
2264
|
multiple?: boolean;
|
|
2220
2265
|
type?: 'drag' | 'button';
|
|
2221
2266
|
disabled?: boolean;
|
|
2222
2267
|
placeholder?: string;
|
|
2223
2268
|
tip?: string;
|
|
2269
|
+
parseFiles?: boolean;
|
|
2270
|
+
returnData?: boolean;
|
|
2224
2271
|
}
|
|
2225
2272
|
|
|
2226
2273
|
export declare const WEEKDAY_NAMES: string[];
|