<template>
  <el-tabs v-model="tabActive" type="card" @tab-click="handleClick">
    <el-tab-pane label="图文素材消息" name="first">
      <materia-list></materia-list>
      <push-detail></push-detail>
      <material-details></material-details>
      <article-details></article-details>
    </el-tab-pane>
    <el-tab-pane label="营销模版消息" name="second">
      <temp-list></temp-list>
    </el-tab-pane>
    <el-tab-pane label="短信营销消息" name="third">表格</el-tab-pane>
  </el-tabs>
</template>
<script>
import MateriaList from './MateriaList'
import PushDetail from './PushList'
import MaterialDetails from './MaterialDetails'
import ArticleDetails from './ArticleDetails'
import TempList from './TempList'

export default {
  data () {
    return {
      tabActive: 'first'
    }
  },
  components: {
    PushDetail,
    MateriaList,
    MaterialDetails,
    ArticleDetails,
    TempList
  },
  methods: {
    handleClick (tab, event) {
      console.log(tab, event)
    }
  }
}
</script>
