liu
7 天以前 70b7935fc261cd5e8eaaf1cfbc8078b04db576d2
src/packages/effects/plugins/src/vxe-table/extends.ts
@@ -1,10 +1,10 @@
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,
@@ -75,7 +75,8 @@
  vxeUI.formats.add('formatDateTime', {
    tableCellFormatMethod({ cellValue }) {
      return formatDateTime(cellValue) as string;
      // 列表中的日期统一只展示年月日,不展示时分秒
      return formatDate(cellValue) as string;
    },
  });
}