<template>
  <div class="node__container" >
  <!-- 状态栏 -->
    <div class="title__container">
        <div class="title">
          <img src="../../icon/end.svg" alt="">
          <span class="text">单次循环结束</span>
        </div>
        <div class="subTitle">循环体内部工作流的终止节点，结束循环体内部的单次流程</div>
    </div>
  </div>
</template>

<script setup>

const props = defineProps({
  model: Object,
  graphModel: Object,
  properties: Object
});


</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;

  .state__container {
    display: none;
    margin-bottom: 8px;

    .context {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 4px;
      font-size: 12px;

      .state {
        display: flex;
        align-items: center;

        .text {
          margin: 0 8px;
        }
      }

      .resultText {
        color: #1664ff;
        cursor: pointer;
      }
    }
  }

  .nodeState-success {
    display: block;
    background-color: #eef9f1;

    .el-icon {
      font-size: 16px;
      color: #309256;
    }
  }

  .nodeState-error{
    display: block;
    background-color: #fdf5f5;

    .el-icon {
      font-size: 16px;
      color: #ee3f38;
    }
  }

  .nodeState-running{
    display: block;
    background-color: #f4f7ff;

    .el-icon {
      color: #68a2e4;
      font-size: 16px;
      animation: rotateAnimation 2s linear infinite;
    }
  }

  .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;
    }
    
  }
}
</style>

<style lang="scss">
.popover__container {
  min-width: 300px !important;

  .params__container {
    margin-bottom: 12px;

    .paramsTitle {
      color: #0c0d0e;
      font-size: 14px;
      font-weight: 500;
    }
  }
}
</style>