Skip to content

Commit df68117

Browse files
fix: magnify or minify icon
1 parent 070fb0f commit df68117

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

ui/src/workflow/nodes/loop-body-node/LoopBodyContainer.vue

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@
1616
/>
1717
<h4 class="ellipsis-1 break-all">{{ nodeModel.properties.stepName }}</h4>
1818
</div>
19+
<!-- 放大缩小按钮 -->
20+
<!-- <el-button link @click="enlargeHandle">
21+
<AppIcon
22+
:iconName="enlarge ? 'app-minify' : 'app-magnify'"
23+
class="color-secondary"
24+
style="font-size: 20px"
25+
>
26+
</AppIcon>
27+
</el-button> -->
1928
</div>
2029
<el-collapse-transition>
2130
<div @mousedown.stop @keydown.stop @click.stop v-show="showNode" class="mt-16">
@@ -196,6 +205,17 @@ const nodeFields = computed(() => {
196205
}
197206
return []
198207
})
208+
209+
const enlarge = ref(false)
210+
211+
function enlargeHandle() {
212+
enlarge.value = !enlarge.value
213+
if (enlarge.value) {
214+
// ...
215+
} else {
216+
// ...
217+
}
218+
}
199219
</script>
200220
<style lang="scss" scoped>
201221
.workflow-node-container {

0 commit comments

Comments
 (0)