mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-22 04:54:32 +08:00
修改日志脚本文件大小展示
This commit is contained in:
+11
-2
@@ -25,6 +25,7 @@ import { depthFirstSearch } from '@/utils';
|
||||
import debounce from 'lodash/debounce';
|
||||
import uniq from 'lodash/uniq';
|
||||
import useFilterTreeData from '@/hooks/useFilterTreeData';
|
||||
import prettyBytes from 'pretty-bytes';
|
||||
|
||||
const { Text } = Typography;
|
||||
|
||||
@@ -186,8 +187,16 @@ const Log = () => {
|
||||
<>
|
||||
{select}
|
||||
{currentNode?.type === 'file' && (
|
||||
<span style={{ marginLeft: 6, fontSize: 12, color: '#999' }}>
|
||||
{(currentNode.size / 1024).toFixed(3)}KB
|
||||
<span
|
||||
style={{
|
||||
marginLeft: 6,
|
||||
fontSize: 12,
|
||||
color: '#999',
|
||||
display: 'inline-block',
|
||||
height: 14,
|
||||
}}
|
||||
>
|
||||
{prettyBytes(currentNode.size)}
|
||||
</span>
|
||||
)}
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user