<template>
  <div class="demo-split-nesting">
    <ui-split
      v-model="value1"
      style="height: 200px">
      <div
        slot="left"
        class="demo-split-nesting-pane">
        left
      </div>
      <div
        slot="right"
        style="height: 200px">
        <ui-split
          v-model="value2"
          mode="vertical">
          <div
            slot="top"
            class="demo-split-nesting-pane">
            top
          </div>
          <div
            slot="bottom"
            class="demo-split-nesting-pane">
            bottom
          </div>
        </ui-split>
      </div>
    </ui-split>
  </div>
</template>

<script>
import { Split } from "amumu-ui"
export default {
  components: {
    "ui-split": Split,
  },
  data() {
    return {
      value1: 0.5,
      value2: 0.5,
    }
  },
}
</script>

<style lang="scss">
.demo-split-nesting {
  border: 1px solid #dcdcdc;

  .demo-split-nesting-pane {
    padding: 10px;
  }
}
</style>
