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

<script setup>

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


</script>

<style lang="scss" scoped>
.node__container {
  width: 300px;
  height: auto;
  background: #fff;
  padding: 12px;
  cursor: default;
  border-radius: 12px;
  border: 2px solid transparent;
  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;
    }
  }

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

      :deep(.el-row) {
        align-items: end;
        
        .el-input {
          --el-input-width: 140px;
        }

        .el-select {
          --el-select-width: 140px;
        }

        .el-cascader {
          --el-form-inline-content-width: 140px;
        }
      }
    }
  }
}
</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>