From 5be990ced476ce39978e06795a76d4e7cebec6e8 Mon Sep 17 00:00:00 2001 From: yuyang Date: Thu, 27 Apr 2023 11:24:18 +0800 Subject: [PATCH] chore: fix type (#1312) * chore: fix type * chore: fix type --- js/date-picker/format.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/date-picker/format.ts b/js/date-picker/format.ts index d6d047f317..a04926b38d 100644 --- a/js/date-picker/format.ts +++ b/js/date-picker/format.ts @@ -205,8 +205,9 @@ export function calcFormatTime(time: string, timeFormat: string) { return time; } +// TODO 细化 value 类型 // 格式化时间 -export function formatTime(value, format: string, timeFormat: string, defaultTime: string | string[]) { +export function formatTime(value: any, format: string, timeFormat: string, defaultTime: string | string[]) { // 无论参数是不是数组,统一转成数组处理 let result = Array.isArray(value) ? value : [value]; // eslint-disable-next-line no-param-reassign