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){
target.onDelete(target);
}else if(target.id){
removeLayer(layerManager.activeLayerId.value);
removeLayer(layerManager?.activeLayerId?.value);
}
}
function removeLayer(layerId) {
layerManager.removeLayer(layerId);
if(layerId)layerManager.removeLayer(layerId);
}
function triggerImageUpload() {

View File

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