<template>
  <div>
    <el-tabs v-model="activeName" v-if="data.addperson || data.additem">
      <el-tab-pane v-if="data.addperson" label="培训人员" name="培训人员"></el-tab-pane>
      <el-tab-pane v-if="data.additem" label="培训商品" name="培训商品"></el-tab-pane>
    </el-tabs>
    <slot :name="activeName"></slot>
  </div>
</template>

<script>
export default {
  name: '',
  props:['data'],
  data() {
    return {
      activeName:''
    };
  },
  computed:{
  },
  watch:{
  },
  methods: {},
  mounted () {
    this.data.addperson ? this.activeName = '培训人员' : this.data.additem ? '培训商品' : ''
  }
};
</script>

<style scoped>

</style>
