<template>
  <div class="app-container">
    <div class="container">
      <el-tabs v-model="activeName"
        class="demo-tabs"
        @tab-click="handleClickTabs">
        <el-tab-pane label="陈列计划"
          name="陈列计划">
          <Display />
        </el-tab-pane>
        <el-tab-pane label="档期计划"
          name="档期计划">
          <Schedule />
        </el-tab-pane>
      </el-tabs>
    </div>
  </div>
</template>

<script setup>
import Display from './tabs/display.vue'
import Schedule from './tabs/schedule.vue'
const activeName = ref('陈列计划');
const handleClickTabs = (tab) => {
  activeName.value = tab.name;
}
</script>

<style scoped
  lang="scss">
  .app-container {
    padding: 10px;

    .container {
      padding: 10px;

      .el-tabs {
        height: 100%;
        display: flex;
        flex-direction: column-reverse;

        .el-tabs__content {
          display: flex;
          flex-direction: column;
          height: 100%;

          .el-tab-pane {
            height: 100%;
            display: flex;
            flex-direction: column;
          }

          .formula-column {
            display: flex;
            justify-content: center;
            align-items: center;

            .el-icon {
              margin-left: 2px;
            }
          }
        }
      }

      .el-form-item {
        align-items: center;
      }

    }
  }

</style>