Pre Merge pull request !389 from dhb52/N/A

pull/389/MERGE
dhb52 2024-02-21 15:32:30 +00:00 committed by Gitee
commit 034ad940a2
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 dayjs from 'dayjs'
import type { TableColumnCtx } from 'element-plus'
/** /**
* el-date-picker * el-date-picker
@ -200,7 +201,7 @@ export function formatPast2(ms) {
* @param cellValue * @param cellValue
*/ */
// @ts-ignore // @ts-ignore
export const dateFormatter = (row, column, cellValue): string => { export const dateFormatter = (row: any, column: TableColumnCtx<any>, cellValue: any): string => {
if (!cellValue) { if (!cellValue) {
return '' return ''
} }
@ -215,9 +216,9 @@ export const dateFormatter = (row, column, cellValue): string => {
* @param cellValue * @param cellValue
*/ */
// @ts-ignore // @ts-ignore
export const dateFormatter2 = (row, column, cellValue) => { export const dateFormatter2 = (row: any, column: TableColumnCtx<any>, cellValue: any): string => {
if (!cellValue) { if (!cellValue) {
return return ''
} }
return formatDate(cellValue, 'YYYY-MM-DD') return formatDate(cellValue, 'YYYY-MM-DD')
} }