<template>
  <div>
      <el-tabs v-model="activeName" type="card">
    <el-tab-pane label="课程作业" name="first" lazy>
      <courseWork  :studentId='studentId' v-if="studentId&&activeName=='first'"/>
    </el-tab-pane>
    <el-tab-pane label="课外训练" name="second"  lazy>
      <afterWork :studentId='studentId' v-if="studentId&&activeName=='second'"/>
    </el-tab-pane>

  </el-tabs>
  </div>
</template>
<script>
import courseWork from './courseWork'
import afterWork from './afterWork'
export default {
  props:['studentId'],
  components:{courseWork,afterWork},
  data(){
    return{
      activeName:'first'
    }
  },
  mounted(){},
  methods:{},
}
</script>
