<template>
  <div class="app-container">
    <el-tabs v-model="activeName">
      <el-tab-pane
        v-for="item in tabs"
        :key="item.name"
        :label="item.label"
        :name="item.name">
        <component :is="item.component" :isActive="activeName === item.name"/>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import StreamerAgreement from './modules/streamerAgreement.vue'
import StreamerSms from './modules/streamerSms.vue'

export default {
  name: 'liveStreamerConfig',
  components: {
    StreamerAgreement,
    StreamerSms
  },
  data() {
    return {
      activeName: 'StreamerAgreement',
      tabs: [
        {
          name: 'StreamerAgreement',
          label: '主播协议配置',
          component: 'StreamerAgreement'
        },
        {
          name: 'StreamerSms',
          label: '主播短信配置',
          component: 'StreamerSms'
        }
      ]
    }
  }
}
</script>

<style scoped>

</style>
