FileSizeView
When To Use
When the file size needs to be displayed, this component can provide a certain compatibility display
Examples
0 B
Show file size reasonably
<template>
<h-file-size-view :size="originalSize" />
</template>
<script setup lang="ts">
import { ref } from 'vue';
const originalSize = ref(0);
</script>
API
Props
Property | Description | Type | default |
---|---|---|---|
size | File Size(byte) | number | |
showMode | Show 1024 base or 1000 base | enum | 1000 |