mirror of
https://github.com/simon987/sist2.git
synced 2025-04-20 02:36:43 +00:00
36 lines
926 B
Vue
36 lines
926 B
Vue
<template>
|
|
<b-modal :visible="show" size="lg" :hide-footer="true" static lazy @close="$emit('close')" @hide="$emit('close')"
|
|
>
|
|
<template #modal-title>
|
|
<h5 class="modal-title" :title="doc._source.name + ext(doc)">
|
|
{{ doc._source.name + ext(doc) }}
|
|
<router-link :to="`/file?byId=${doc._id}`">#</router-link>
|
|
</h5>
|
|
</template>
|
|
|
|
<img v-if="doc._props.hasThumbnail" :src="`t/${doc._source.index}/${doc._id}`" alt="" class="fit card-img-top">
|
|
|
|
<InfoTable :doc="doc"></InfoTable>
|
|
|
|
<LazyContentDiv :doc-id="doc._id"></LazyContentDiv>
|
|
</b-modal>
|
|
</template>
|
|
|
|
<script>
|
|
import {ext} from "@/util";
|
|
import InfoTable from "@/components/InfoTable";
|
|
import LazyContentDiv from "@/components/LazyContentDiv";
|
|
|
|
export default {
|
|
name: "DocInfoModal",
|
|
components: {LazyContentDiv, InfoTable},
|
|
props: ["doc", "show"],
|
|
methods: {
|
|
ext: ext,
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
|
|
</style> |