多选解决

This commit is contained in:
李志鹏
2026-01-27 10:58:27 +08:00
parent 8ff7a31e92
commit 79293901b3
4 changed files with 99 additions and 55 deletions

View File

@@ -22,7 +22,7 @@
v-for="v in activeObjects"
:key="v.id"
>
<div class="title">{{ v.layer?.name }}</div>
<!-- <div class="title">{{ v.layer?.name }}</div> -->
<div class="list">
<div
class="input"
@@ -125,7 +125,10 @@
"
:options="selectOptions"
@change="(e) => changeFillRepeat(e, v)"
:disabled="v.layer?.metadata?.level2Type === 'Embroidery'"
:disabled="
v.layer?.metadata?.level2Type ===
'Embroidery'
"
/>
</div>
<!-- 平铺设置 -->
@@ -283,10 +286,10 @@
activeObjects.value.forEach((v) => {
v.layer = props.layerManager.getLayerById(v.layerId);
});
if (activeObjects.value.length === 0) {
close();
} else {
if (activeObjects.value.length === 1) {
show();
} else {
close();
}
};
//取消当前选中