<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>
    </el-tab-pane>
    <el-tab-pane label="营销模版消息" name="second">表格</el-tab-pane>
    <el-tab-pane label="短信营销消息" name="third">表格</el-tab-pane>
  </el-tabs>
</template>
<script>
import MateriaList from 'components/MateriaList'
import PushDetail from 'components/PushList'

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