Browse Source

图片预览

master_hella_20240701
yufei0306 7 months ago
parent
commit
9143fdec2b
  1. 1
      src/components/Detail/src/Detail.vue
  2. 2
      src/components/PreviewPDF/index.vue

1
src/components/Detail/src/Detail.vue

@ -103,6 +103,7 @@
<ElScrollbar ref="scrollbar" :style="{height:annexItem.hasSubDetail?'100%':(remarkHeight-40)+'px'}">
<Annex v-show="tabsList[current].label==annexItem.label"
:annexData="annexItem"
:showPreview="annexItem.showPreview"
:showDownload = "annexItem.showDownload"
:hiddenDelete = "annexItem.hiddenDelete"
@handleAnnexSuccess="updateAnnexTableHandle"

2
src/components/PreviewPDF/index.vue

@ -3,7 +3,7 @@
<iframe v-if="isPDF" ref="pdfRef" width="100%" :height="frameHeight" :src="pdfUrl" frameborder="0"></iframe>
<el-carousel justify="center" v-else indicator-position="outside">
<el-carousel-item class="carousel-item" v-for="url in imageArray" :key="url">
<el-image style="border:1px solid red;height:100%" fit="contain" :src="url" loading="lazy" />
<el-image style="height:100%" fit="contain" :src="url" loading="lazy" />
</el-carousel-item>
</el-carousel>
</el-dialog>

Loading…
Cancel
Save