|
|
|
@ -7,6 +7,7 @@
|
|
|
|
<VueOfficeExcel :src="url" style="height: 100vh;" />
|
|
|
|
<VueOfficeExcel :src="url" style="height: 100vh;" />
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template v-else-if="type === 'pdf'">
|
|
|
|
<template v-else-if="type === 'pdf'">
|
|
|
|
|
|
|
|
<iframe :src="url" frameborder="0" style="width: 100%;height: 100%;" />
|
|
|
|
<VueOfficePdf :src="url" style="height: 100vh;" />
|
|
|
|
<VueOfficePdf :src="url" style="height: 100vh;" />
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template v-else-if="['png', 'jpg', 'jpeg', 'gif', 'webp', 'svg'].indexOf(type) !== -1">
|
|
|
|
<template v-else-if="['png', 'jpg', 'jpeg', 'gif', 'webp', 'svg'].indexOf(type) !== -1">
|
|
|
|
|