feat:add formatFileSize
parent
b23581ba3b
commit
20f7a9d087
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Reference in New Issue