From 6141f7a7e61dacd8b80056b564170415d7fff31a Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期六, 17 十月 2026 20:05:58 +0800
Subject: [PATCH] fix(ui): 列表时间统一只展示年月日
---
src/packages/effects/plugins/src/vxe-table/extends.ts | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/packages/effects/plugins/src/vxe-table/extends.ts b/src/packages/effects/plugins/src/vxe-table/extends.ts
index 0a9914a..5369d63 100644
--- a/src/packages/effects/plugins/src/vxe-table/extends.ts
+++ b/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;
},
});
}
--
Gitblit v1.9.3