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

pull/390/MERGE
dhb52 2024-02-21 15:39:08 +00:00 committed by Gitee
commit 67e036d8a7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 4 additions and 5 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
@ -199,8 +200,7 @@ export function formatPast2(ms) {
* @param column * @param column
* @param cellValue * @param cellValue
*/ */
// @ts-ignore export const dateFormatter = (_row: any, _column: TableColumnCtx<any>, cellValue: any): string => {
export const dateFormatter = (row, column, cellValue): string => {
if (!cellValue) { if (!cellValue) {
return '' return ''
} }
@ -214,10 +214,9 @@ export const dateFormatter = (row, column, cellValue): string => {
* @param column * @param column
* @param cellValue * @param cellValue
*/ */
// @ts-ignore export const dateFormatter2 = (_row: any, _column: TableColumnCtx<any>, cellValue: any): string => {
export const dateFormatter2 = (row, column, cellValue) => {
if (!cellValue) { if (!cellValue) {
return return ''
} }
return formatDate(cellValue, 'YYYY-MM-DD') return formatDate(cellValue, 'YYYY-MM-DD')
} }