Commit 0006a2e6 authored by zhengke's avatar zhengke

修复bug

parent f14bc98f
......@@ -83,8 +83,8 @@
</FileInput>
<template v-for="(item,index) in dataList">
<el-dropdown trigger="click" :key="index">
<div class="CloudDisk-R-Box cursor-pointer">
<el-dropdown trigger="click">
<div class="CloudDisk-R-Box cursor-pointer" :key="index">
<div class="CloudDisk-R-Img">
<el-image :src="item.FilePath" style="width: 100%; height: 100%;"
fit="cover"/>
......@@ -172,15 +172,15 @@
@success="close(),dialogCMVisible=false,SearchGroup(),refreshHandler()"></copyMove>
<el-image-viewer
@close="() => { isViewerShown = false }"
v-if="isViewerShown"
@close="() => { isViewerShow = false }"
v-if="isViewerShow"
:initial-index="currentImg"
:url-list="srcList"></el-image-viewer>
</template>
<script setup lang="ts">
import { ref, reactive, watch, inject, onMounted, PropType, nextTick } from "vue";
import { ElMessage,ElImage, ImageViewer } from "element-plus";
import { ElMessage,ElImage } from "element-plus";
import { ArrowLeft,CopyDocument } from "@element-plus/icons-vue";
import CloudDiskService from "@/services/CloudDiskService";
import { injectKeyTemplate } from "@/types/injectKey";
......@@ -220,11 +220,11 @@
const currentImg = ref(-1)
const srcList = ref([] as Array<any>)
const isViewerShown = ref(false);
const isViewerShow = ref(false);
const getImg = (item:any,index:Number) => {
currentImg.value = index
isViewerShown.value = true
isViewerShow.value = true
}
const CopyTo = (row:any) =>{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment