<template>
  <div class="design-containers">
    <div class="head">
      <slot name="head"></slot>
    </div>
    <div class="layout">
      <slot name="steps"></slot>
      <slot></slot>
    </div>
  </div>
</template>

<script setup lang="ts"></script>

<style lang="less" scoped>
  .head {
    height: 56px;
    width: 100%;
    box-shadow: 0 3px 6px 1px rgb(0 0 0 / 16%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
  }

  .design-containers {
    position: fixed;
    inset: 0;
    z-index: 999;
    background-color: #f0f0f0;
  }

  [data-theme='dark'] .flow-containers {
    background-color: #151515;
  }

  .common-button {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .clean-icon {
    background-color: @clear-color;
    border-color: @clear-color;
  }

  .layout {
    position: relative;
    width: 100%;
    height: calc(100vh - 92px);
    top: 72px;
    padding: 0 10px;
  }

  :deep(.ant-steps) {
    width: 280px;
  }

  :deep(.layout-box) {
    display: flex;
    position: relative;
    width: 100%;
    height: calc(100% - 70px);
  }

  :deep(.menu-box) {
    width: 60px;
    height: calc(100% - 110px);
    background-color: #fff;
    border-radius: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
    overflow-y: auto;
    margin-right: 10px;
  }

  :deep(.line-box) {
    width: 10px;
    height: 100%;
    background-color: #f0f0f0;
  }
</style>
