Commit 93b8a7c8 authored by zhengke's avatar zhengke

no message

parent 2697be2a
...@@ -62,8 +62,7 @@ ...@@ -62,8 +62,7 @@
<template v-for="(item,index) in dataList"> <template v-for="(item,index) in dataList">
<div class="CloudDisk-R-Box cursor-pointer" <div class="CloudDisk-R-Box cursor-pointer"
:class="[ImgId==item.DetailsId?'active':'']" @click="setImg(item)" :class="[ImgId==item.DetailsId?'active':'active2']" @click="setImg(item)">
v-right-click="handleRightClick">
<div class="CloudDisk-R-Img"> <div class="CloudDisk-R-Img">
<el-image :src="item.FilePath" style="width: 80px; height: 80px;" <el-image :src="item.FilePath" style="width: 80px; height: 80px;"
fit="cover"/> fit="cover"/>
...@@ -185,9 +184,6 @@ watch(() => props.show, () => { ...@@ -185,9 +184,6 @@ watch(() => props.show, () => {
if(!props.show) ImgId.value = '' if(!props.show) ImgId.value = ''
}) })
const handleRightClick = (event:any,item:any) => {
console.log('右键被点击', event);
}
const setImg = (item:any) => { const setImg = (item:any) => {
ImgId.value = item.DetailsId ImgId.value = item.DetailsId
emit('getImg',item.FilePath) emit('getImg',item.FilePath)
...@@ -509,7 +505,7 @@ onMounted(()=>{ ...@@ -509,7 +505,7 @@ onMounted(()=>{
z-index: 3; z-index: 3;
opacity: 0; opacity: 0;
} }
.CloudDisk-R-Box:hover .close-btn{ .CloudDisk-R-Box.active2:hover .close-btn{
opacity: 1; opacity: 1;
} }
</style> </style>
\ No newline at end of file
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