eight
2024-10-11 f1d92d5c904f7d33a34abb651185b1d5034bdf02
src/utils/formatTime.ts
@@ -213,6 +213,17 @@
}
/**
 * element plus 的时间 Formatter 实现,使用 YYYY-MM-DD 格式
 *
 * @param row 行数据
 * @param column 字段
 * @param cellValue 字段值
 */
export function timeFormatter(_row: any, _column: TableColumnCtx<any>, cellValue: any): string {
  return cellValue ? formatDate(cellValue, 'HH:MM') : ''
}
/**
 * 设置起始日期,时间为00:00:00
 * @param param 传入日期
 * @returns 带时间00:00:00的日期