<template>
  <!--  <component :is="activeName" />-->
  <div>
    <List v-show="activeName=='List'" ref="list" />
  </div>
</template>

<script>
import List from './components/list.vue'

export default {
  components: {
    List: List
  },
  data() {
    return {
      activeName: 'List'
    }
  },
  watch: {
    activeName(val) {
      if (val == 'List') {
        this.$refs.list.getList()
        this.$refs.list.getTreeList()
      }
    }
  }
}
</script>

<style scoped>
</style>

