feat:add formatFileSize
This commit is contained in:
@@ -351,6 +351,7 @@ setupVbenVxeTable({
|
||||
},
|
||||
});
|
||||
|
||||
// add by 星语:文件大小格式化
|
||||
vxeUI.formats.add('formatFileSize', {
|
||||
tableCellFormatMethod({ cellValue }, digits = 2) {
|
||||
if (!cellValue) return '0 B';
|
||||
|
||||
@@ -341,6 +341,7 @@ setupVbenVxeTable({
|
||||
},
|
||||
});
|
||||
|
||||
// add by 星语:文件大小格式化
|
||||
vxeUI.formats.add('formatFileSize', {
|
||||
tableCellFormatMethod({ cellValue }, digits = 2) {
|
||||
if (!cellValue) return '0 B';
|
||||
|
||||
Reference in New Issue
Block a user