This commit is contained in:
李志鹏
2026-01-27 13:30:11 +08:00
parent 0729917a7e
commit 1764e2a0bf
2 changed files with 8 additions and 6 deletions

View File

@@ -744,12 +744,12 @@ function deleteFun(e, control) {
if(target.onDelete){ if(target.onDelete){
target.onDelete(target); target.onDelete(target);
}else if(target.id){ }else if(target.id){
removeLayer(layerManager.activeLayerId.value); removeLayer(layerManager?.activeLayerId?.value);
} }
} }
function removeLayer(layerId) { function removeLayer(layerId) {
layerManager.removeLayer(layerId); if(layerId)layerManager.removeLayer(layerId);
} }
function triggerImageUpload() { function triggerImageUpload() {

View File

@@ -20,7 +20,7 @@
</div> </div>
<!-- 图片网格 --> <!-- 图片网格 -->
<div class="image-grid" @scroll="handleScroll"> <div class="image-grid" v-show="list.length > 0" @scroll="handleScroll">
<div <div
v-for="(item, index) in list" v-for="(item, index) in list"
:key="index" :key="index"
@@ -460,6 +460,7 @@ defineExpose({
padding: 20px; padding: 20px;
// overflow-y: auto; // overflow-y: auto;
flex: 1; flex: 1;
overflow: hidden;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 20px; gap: 20px;
@@ -519,8 +520,9 @@ defineExpose({
overflow-y: auto; overflow-y: auto;
grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
gap: 16px; gap: 16px;
min-height: 22rem; flex: 1;
max-height: 50rem; // min-height: 22rem;
// max-height: 50rem;
padding-bottom: 2rem; padding-bottom: 2rem;
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
@@ -615,9 +617,9 @@ defineExpose({
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: 60px 20px;
color: #666; color: #666;
min-height: 300px; min-height: 300px;
margin: auto 0;
.empty-icon { .empty-icon {
font-size: 48px; font-size: 48px;