<template>
  <div class="split-nest">
    <tiny-split v-model="split1" trigger-simple collapse-right-bottom three-areas>
      <template #left>
        <tiny-split v-model="split2" trigger-simple collapse-left-top three-areas>
          <template #left>
            <div class="split-content">内容A区</div>
          </template>
          <template #right>
            <div class="split-content">内容B区</div>
          </template>
        </tiny-split>
      </template>
      <template #right>
        <div class="split-content">内容C区</div>
      </template>
    </tiny-split>
  </div>
</template>

<script setup>
import { ref } from 'vue'
import { Split as TinySplit } from '@opentiny/vue'

const split1 = ref(0.8)
const split2 = ref(0.25)
</script>

<style scoped>
.split-nest {
  height: 300px;
  border: 1px solid #d9d9d9;
}

.split-content {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>
