This commit is contained in:
李志鹏
2026-01-19 10:47:30 +08:00
parent 6b0d26ed6e
commit 43e3a79124
6 changed files with 138 additions and 55 deletions

View File

@@ -63,6 +63,10 @@
$t("Canvas.CreateAndCopy")
}}</span>
</div>
<div class="action-btn" @click="onReset">
<svg-icon name="CCut" size="26" />
<span class="btn-text">清空当前点位</span>
</div>
</div>
</div>
</div>
@@ -226,12 +230,16 @@
// 创建
function onCreate() {
props.partManager.createPart();
}
// 复制并创建
function onCopyCreate() {
}
// 清空当前点位
function onReset() {
props.partManager.clearPart();
}
</script>
@@ -410,7 +418,7 @@
.tool-actions {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-columns: repeat(3, 1fr);
gap: 5px;
padding: 0 30px;
}