<template>
  <div class="app-container">
    <transition name="el-zoom-in-center">
      <check-report-list v-if="options.showList" @showCard="showCard" />
    </transition>
    <transition name="el-zoom-in-bottom">
      <check-report-structure v-if="options.showDetail" :data="options.data" @showCard="showCard" />
    </transition>

    <transition name="el-zoom-in-bottom">
      <check-report-structure-content v-if="options.showDetail_content" :data="options.data" @showCard="showCard" />
    </transition>
    <transition name="el-zoom-in-bottom">
      <check-report-structure-relevance v-if="options.showDetail_relevance" :data="options.data" @showCard="showCard" />
    </transition>
  </div>
</template>

<script>
  import CheckReportList from './CheckReportList'
  import CheckReportStructure from './CheckReportStructure'
  import CheckReportStructureContent from './CheckReportStructure_content'
  import CheckReportStructureRelevance from './CheckReportStructure_relevance'

  export default {
    name: 'CheckReport',
    components: { CheckReportList, CheckReportStructure, CheckReportStructureContent, CheckReportStructureRelevance },
    data() {
      return {
        options: {
          data: {},
          showList: true
        }
      }
    },
    methods: {
      showCard(data) {
        Object.assign(this.options, data)
      }
    }
  }
</script>

<style lang="scss" scoped>

</style>
