Skip to content

Commit

Permalink
chore: fix type (Tencent#1312)
Browse files Browse the repository at this point in the history
* chore: fix type

* chore: fix type
  • Loading branch information
uyarn authored and oljc committed May 9, 2023
1 parent 616a3af commit 5be990c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/date-picker/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5be990c

Please sign in to comment.