2019-08-09 20:20:08 +00:00
|
|
|
<template>
|
|
|
|
<span class="preview-size">({{ previewSize }})</span>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2019-12-16 11:26:10 +00:00
|
|
|
import friendlysize from "../js/helpers/friendlysize";
|
2019-08-09 20:20:08 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
name: "LinkPreviewFileSize",
|
|
|
|
props: {
|
|
|
|
size: Number,
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
previewSize() {
|
2019-12-16 11:26:10 +00:00
|
|
|
return friendlysize(this.size);
|
2019-08-09 20:20:08 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|