<template>
  <el-tabs v-model="activeName" @tab-click="handleClick" ref="tabs">
    <el-tab-pane label="用户管理" name="first">用户管理</el-tab-pane>
    <el-tab-pane label="配置管理" name="second">配置管理</el-tab-pane>
    <el-tab-pane label="角色管理" name="third">角色管理</el-tab-pane>
    <el-tab-pane label="定时任务补偿" name="fourth">定时任务补偿</el-tab-pane>
  </el-tabs>
</template>

<script>
export default {
    data() {
      return {
        activeName: 'second'
      };
    },
  methods: {
    handleClick(tab, event) {
        console.log(tab, event);
      },
    hideTabs() {
      this.$refs.tabs.$children[0].$el.style.display = 'none';
    }
  },
  mounted () {
    this.hideTabs();
  }
}
</script>

 

相关文章:

  • 2022-02-07
  • 2022-12-23
  • 2021-04-17
  • 2022-12-23
  • 2021-11-30
  • 2021-12-07
  • 2021-09-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-14
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
相关资源
相似解决方案