| | |
| | | import type { VxeGridProps, VxeUIExport } from 'vxe-table'; |
| | | |
| | | import type { Recordable } from '..\..\..\..\types\src'; |
| | | import type { Recordable } from '../../../../types/src'; |
| | | |
| | | import type { VxeGridApi } from './api'; |
| | | |
| | | import { formatDate, formatDateTime, isFunction } from '..\..\..\..\utils\src'; |
| | | import { formatDate, isFunction } from '../../../../utils/src'; |
| | | |
| | | export function extendProxyOptions( |
| | | api: VxeGridApi, |
| | |
| | | |
| | | vxeUI.formats.add('formatDateTime', { |
| | | tableCellFormatMethod({ cellValue }) { |
| | | return formatDateTime(cellValue) as string; |
| | | // 列表中的日期统一只展示年月日,不展示时分秒 |
| | | return formatDate(cellValue) as string; |
| | | }, |
| | | }); |
| | | } |