Skip to content
On this page

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

PropertyDescriptionTypedefault
sizeFile Size(byte)number
showModeShow 1024 base or 1000 baseenum1000