This repository has been archived on 2020-11-02. You can view files and clone it, but cannot push or open issues or pull requests.
TripSit_Suite/client/components/LinkPreviewFileSize.vue
2020-11-01 22:46:04 +00:00

20 lines
309 B
Vue

<template>
<span class="preview-size">({{ previewSize }})</span>
</template>
<script>
import friendlysize from "../js/helpers/friendlysize";
export default {
name: "LinkPreviewFileSize",
props: {
size: Number,
},
computed: {
previewSize() {
return friendlysize(this.size);
},
},
};
</script>