Skip to content

Commit 228957d

Browse files
authored
chore: fix lint
1 parent d47f317 commit 228957d

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

js/date-picker/format.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -196,13 +196,7 @@ function formatSingle({
196196
if (!newDate) return '';
197197

198198
// parseToDayjs signature: (value, format, timeOfDay?, dayjsLocale?, defaultTime?)
199-
const dayJsDate = parseToDayjs(
200-
newDate,
201-
format,
202-
undefined,
203-
dayjsLocale,
204-
defaultTime
205-
).locale(dayjsLocale);
199+
const dayJsDate = parseToDayjs(newDate, format, undefined, dayjsLocale, defaultTime).locale(dayjsLocale);
206200

207201
// 格式化失败提示
208202
if (!dayJsDate.isValid()) {
@@ -269,8 +263,7 @@ export function calcFormatTime(time: string, timeFormat: string) {
269263
}
270264
// TODO 细化 value 类型
271265
// 格式化时间
272-
export function formatTime(
273-
value: any,
266+
export function formatTime(value: any,
274267
format: string,
275268
timeFormat: string,
276269
defaultTime: string | string[]

0 commit comments

Comments
 (0)