liu
9 天以前 70b7935fc261cd5e8eaaf1cfbc8078b04db576d2
src/packages/effects/plugins/src/vxe-table/extends.ts
@@ -4,7 +4,7 @@
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;
    },
  });
}