<template>
  <div class="flow-containers">
    <div class="resize-head"><slot name="head"></slot></div>
    <div class="resize-layout">
      <div class="resize-left" ref="left"><slot name="left"></slot></div>

      <div class="resize-right">
        <div class="right-box">
          <slot name="right"></slot>
        </div>
      </div>
    </div>
  </div>
</template>

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

<style scoped>
  .flow-containers {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: #f6f6f6;
  }

  .resize-layout {
    display: flex;
    height: calc(100% - 82px);
    width: 100%;
  }

  .resize-left {
    width: 260px;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    margin: 0 0 10px 10px;
  }

  .resize-right {
    width: calc(100% - 260px);
    border-radius: 16px;
    margin: 0 10px 10px 0;
    position: relative;
  }

  .right-box {
    height: 100%;
  }
</style>
