feat:add formatFileSize

This commit is contained in:
YunaiV
2025-10-17 21:47:54 +08:00
parent b23581ba3b
commit 20f7a9d087
2 changed files with 2 additions and 0 deletions

View File

@@ -351,6 +351,7 @@ setupVbenVxeTable({
},
});
// add by 星语:文件大小格式化
vxeUI.formats.add('formatFileSize', {
tableCellFormatMethod({ cellValue }, digits = 2) {
if (!cellValue) return '0 B';

View File

@@ -341,6 +341,7 @@ setupVbenVxeTable({
},
});
// add by 星语:文件大小格式化
vxeUI.formats.add('formatFileSize', {
tableCellFormatMethod({ cellValue }, digits = 2) {
if (!cellValue) return '0 B';