fix: dateFormatter2在vscode中爆红的问题

Signed-off-by: dhb52 <dhb52@126.com>
pull/389/head
dhb52 2024-02-21 15:32:28 +00:00 committed by Gitee
parent f5b8d92d97
commit 1252efa7fe
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,5 @@
import dayjs from 'dayjs'
import type { TableColumnCtx } from 'element-plus'
/**
* el-date-picker
@ -200,7 +201,7 @@ export function formatPast2(ms) {
* @param cellValue
*/
// @ts-ignore
export const dateFormatter = (row, column, cellValue): string => {
export const dateFormatter = (row: any, column: TableColumnCtx<any>, cellValue: any): string => {
if (!cellValue) {
return ''
}
@ -215,9 +216,9 @@ export const dateFormatter = (row, column, cellValue): string => {
* @param cellValue
*/
// @ts-ignore
export const dateFormatter2 = (row, column, cellValue) => {
export const dateFormatter2 = (row: any, column: TableColumnCtx<any>, cellValue: any): string => {
if (!cellValue) {
return
return ''
}
return formatDate(cellValue, 'YYYY-MM-DD')
}