2025-12-17 13:39:02 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="node__container" >
|
|
|
|
|
<!-- 状态栏 -->
|
|
|
|
|
<NodeTitle :icon="stopLoop" :nodeId="props.model.id" :nodeProperties="props.properties" :nodeName="props.properties?.name || '结束循环'" nodeDesc="用于立即终止当前所在的循环,跳出循环体" @setNodeName="setNodeName" />
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
|
import NodeTitle from '../../components/NodeTitle.vue'
|
|
|
|
|
import stopLoop from '../../icon/stopLoop.svg'
|
|
|
|
|
|
|
|
|
|
const props = defineProps({
|
|
|
|
|
model: Object,
|
|
|
|
|
graphModel: Object,
|
|
|
|
|
properties: Object,
|
|
|
|
|
text: String,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const setNodeName = (name) => {
|
|
|
|
|
const properties = lf.getProperties(props.model.id);
|
|
|
|
|
lf.setProperties(props.model.id, {
|
|
|
|
|
...properties,
|
|
|
|
|
name
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
@keyframes rotateAnimation {
|
|
|
|
|
from {
|
|
|
|
|
transform: rotate(0deg);
|
|
|
|
|
}
|
|
|
|
|
to {
|
|
|
|
|
transform: rotate(360deg);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.node__container {
|
|
|
|
|
width: 300px;
|
|
|
|
|
height: auto;
|
|
|
|
|
background: #fff;
|
|
|
|
|
padding: 12px;
|
|
|
|
|
cursor: default;
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
border: 2px solid white;
|
|
|
|
|
box-shadow: 0 5px 15px 0#00000008;
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
.title__container {
|
|
|
|
|
.title {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
|
|
img {
|
|
|
|
|
width: 24px;
|
|
|
|
|
height: 24px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.text {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
margin-left: 12px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.subTitle {
|
|
|
|
|
color: #737a87;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
margin: 8px 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.input__container {
|
|
|
|
|
width: 100%;
|
|
|
|
|
background-color: #fafbfc;
|
|
|
|
|
padding: 0 16px;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
|
|
.title {
|
|
|
|
|
height: 32px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
|
|
.left {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
|
|
.tag {
|
|
|
|
|
width: 3px;
|
|
|
|
|
height: 16px;
|
|
|
|
|
background: #1664ff;
|
|
|
|
|
border-radius: 0 4px 4px 0;
|
|
|
|
|
margin-right: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.text {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
color: #0c0d0e;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.right {
|
|
|
|
|
.addFormItem {
|
|
|
|
|
border: none;
|
|
|
|
|
background: transparent;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.form__container {
|
|
|
|
|
margin: 12px 0;
|
|
|
|
|
|
|
|
|
|
.sub-properties {
|
|
|
|
|
margin-left: 10px;
|
|
|
|
|
.zw {
|
|
|
|
|
margin-left: 15px;
|
|
|
|
|
&::before {
|
|
|
|
|
content: "";
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 0;
|
|
|
|
|
top: -4px;
|
|
|
|
|
width: 10px;
|
|
|
|
|
border-left: 1px solid gray;
|
|
|
|
|
border-bottom: 1px solid gray;
|
|
|
|
|
border-bottom-left-radius: 4px;
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
height: 24px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.gSon-properties {
|
|
|
|
|
margin-left: 10px;
|
|
|
|
|
.zw {
|
|
|
|
|
margin-left: 15px;
|
|
|
|
|
&::before {
|
|
|
|
|
content: "";
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 0;
|
|
|
|
|
top: -4px;
|
|
|
|
|
width: 10px;
|
|
|
|
|
border-left: 1px solid gray;
|
|
|
|
|
border-bottom: 1px solid gray;
|
|
|
|
|
border-bottom-left-radius: 4px;
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
height: 24px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.deleteBtn {
|
|
|
|
|
margin-bottom: 22px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.addBtn {
|
|
|
|
|
margin-bottom: 22px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-row {
|
|
|
|
|
align-items: end;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-input {
|
|
|
|
|
--el-input-width: 170px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-select {
|
|
|
|
|
--el-select-width: 170px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
.popover__container {
|
|
|
|
|
min-width: 300px !important;
|
|
|
|
|
|
|
|
|
|
.params__container {
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
|
|
|
|
|
.paramsTitle {
|
|
|
|
|
color: #0c0d0e;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-08-21 14:11:58 +08:00
|
|
|
</style>
|