types(DatePicker): fix ts def (#11813)

This commit is contained in:
inottn 2023-05-04 09:49:12 +08:00 committed by GitHub
parent 584a62875e
commit 5ec43156d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ export const genOptions = <T extends string>(
return filter ? filter(type, options) : options; return filter ? filter(type, options) : options;
}; };
export const formatValueRange = (values: string[], columns: PickerOption[]) => export const formatValueRange = (values: string[], columns: PickerOption[][]) =>
values.map((value, index) => { values.map((value, index) => {
const column = columns[index]; const column = columns[index];
if (column.length) { if (column.length) {