Commit 0006a2e6 authored by zhengke's avatar zhengke

修复bug

parent f14bc98f
...@@ -83,8 +83,8 @@ ...@@ -83,8 +83,8 @@
</FileInput> </FileInput>
<template v-for="(item,index) in dataList"> <template v-for="(item,index) in dataList">
<el-dropdown trigger="click" :key="index"> <el-dropdown trigger="click">
<div class="CloudDisk-R-Box cursor-pointer"> <div class="CloudDisk-R-Box cursor-pointer" :key="index">
<div class="CloudDisk-R-Img"> <div class="CloudDisk-R-Img">
<el-image :src="item.FilePath" style="width: 100%; height: 100%;" <el-image :src="item.FilePath" style="width: 100%; height: 100%;"
fit="cover"/> fit="cover"/>
...@@ -172,15 +172,15 @@ ...@@ -172,15 +172,15 @@
@success="close(),dialogCMVisible=false,SearchGroup(),refreshHandler()"></copyMove> @success="close(),dialogCMVisible=false,SearchGroup(),refreshHandler()"></copyMove>
<el-image-viewer <el-image-viewer
@close="() => { isViewerShown = false }" @close="() => { isViewerShow = false }"
v-if="isViewerShown" v-if="isViewerShow"
:initial-index="currentImg" :initial-index="currentImg"
:url-list="srcList"></el-image-viewer> :url-list="srcList"></el-image-viewer>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref, reactive, watch, inject, onMounted, PropType, nextTick } from "vue"; 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 { ArrowLeft,CopyDocument } from "@element-plus/icons-vue";
import CloudDiskService from "@/services/CloudDiskService"; import CloudDiskService from "@/services/CloudDiskService";
import { injectKeyTemplate } from "@/types/injectKey"; import { injectKeyTemplate } from "@/types/injectKey";
...@@ -220,11 +220,11 @@ ...@@ -220,11 +220,11 @@
const currentImg = ref(-1) const currentImg = ref(-1)
const srcList = ref([] as Array<any>) const srcList = ref([] as Array<any>)
const isViewerShown = ref(false); const isViewerShow = ref(false);
const getImg = (item:any,index:Number) => { const getImg = (item:any,index:Number) => {
currentImg.value = index currentImg.value = index
isViewerShown.value = true isViewerShow.value = true
} }
const CopyTo = (row:any) =>{ 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