<template>
  <div>
    <el-tabs v-model="tabIndex">
      <el-tab-pane label="会员用户" :name="1">
        <VipUser v-if="tabIndex == 1" />
      </el-tab-pane>
      <el-tab-pane label="会员类型" :name="2">
        <VipType v-if="tabIndex == 2" />
      </el-tab-pane>
      <el-tab-pane label="会员折扣" :name="3">
        <VipDiscount v-if="tabIndex == 3" />
      </el-tab-pane>
      <el-tab-pane label="用户折扣" :name="4">
        <UserDiscount v-if="tabIndex == 4" />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script setup name="Vip">
import UserDiscount from './components/UserDiscount.vue'
import VipDiscount from './components/VipDiscount.vue'
import VipType from './components/VipType.vue'
import VipUser from './components/VipUser.vue'

const tabIndex = ref(1)
</script>

<style lang="scss" scoped></style>
