From 5ec43156d0ee41566aca57fde9fccbf6ea569bc6 Mon Sep 17 00:00:00 2001 From: inottn Date: Thu, 4 May 2023 09:49:12 +0800 Subject: [PATCH] types(DatePicker): fix ts def (#11813) --- packages/vant/src/date-picker/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vant/src/date-picker/utils.ts b/packages/vant/src/date-picker/utils.ts index 54f919c89..41c7cdf75 100644 --- a/packages/vant/src/date-picker/utils.ts +++ b/packages/vant/src/date-picker/utils.ts @@ -54,7 +54,7 @@ export const genOptions = ( return filter ? filter(type, options) : options; }; -export const formatValueRange = (values: string[], columns: PickerOption[]) => +export const formatValueRange = (values: string[], columns: PickerOption[][]) => values.map((value, index) => { const column = columns[index]; if (column.length) {