修改BUG

This commit is contained in:
duan 2024-08-06 17:56:29 +08:00
parent 6c4e992283
commit d1ef6fefa0
1 changed files with 20 additions and 17 deletions

View File

@ -1,7 +1,7 @@
<template>
<div>
<ul class="ulStyle" v-infinite-scroll="load">
<li v-for="item in list" :key="item.id" class="listyle" :class="[selectList.id == item.id ? 'active' : '']"
<li v-for="item in list" :key="item.id" class="listyle" :class="[selectList.id == item.id ? 'actives' : '']"
@click="clickEvent(item)">
<img :src="item.url" style="width: 100px;height: 100px;" alt="">
<el-popconfirm title="确定删除吗?" class="show" @confirm="deleteEvent(item.id)">
@ -51,21 +51,6 @@ ul,
li {
list-style: none;
}
.ulStyle {
display: flex;
flex-wrap: wrap;
overflow: auto;
height: 400px;
}
.listyle {
margin-right: 10px;
margin-top: 10px;
border: 5px solid #fff;
position: relative;
}
.show {
position: absolute;
right: -10px;
@ -83,8 +68,26 @@ li {
background-color: #fff;
font-size: 20px;
}
.ulStyle {
display: flex;
flex-wrap: wrap;
overflow: auto;
height: 400px;
}
.active {
.listyle {
margin-right: 10px;
margin-top: 10px;
border: 5px solid #fff;
position: relative;
}
.actives {
border: 5px solid #1890ff;
}
</style>