<template>
    <div class="ui-wrap">
        <h3>面包屑</h3>
<el-breadcrumb separator="/">
  <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
  <el-breadcrumb-item><a href="/">活动管理</a></el-breadcrumb-item>
  <el-breadcrumb-item>活动列表</el-breadcrumb-item>
  <el-breadcrumb-item>活动详情</el-breadcrumb-item>
</el-breadcrumb>
<h3>框架导航</h3>
<el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal">
  <el-menu-item index="1">处理中心</el-menu-item>
  <el-menu-item index="5">处理中心2</el-menu-item>
  <el-submenu index="2">
    <template slot="title">我的工作台</template>
    <el-menu-item index="2-1">选项1</el-menu-item>
    <el-menu-item index="2-2">选项2</el-menu-item>
    <el-menu-item index="2-3">选项3</el-menu-item>
    <el-submenu index="2-4">
      <template slot="title">选项4</template>
      <el-menu-item index="2-4-1">选项1</el-menu-item>
      <el-menu-item index="2-4-2">选项2</el-menu-item>
      <el-menu-item index="2-4-3">选项3</el-menu-item>
    </el-submenu>
  </el-submenu>
  <el-menu-item index="3" disabled>消息中心</el-menu-item>
  <el-menu-item index="4"><a href="https://www.ele.me" target="_blank">订单管理</a></el-menu-item>
</el-menu>
<div class="line"></div>
<el-menu
  class="el-menu-demo"
  mode="horizontal"
  background-color="#545c64"
  active-text-color="#ffd04b">
  <el-menu-item index="1">处理中心</el-menu-item>
  <el-submenu index="2">
    <template slot="title">我的工作台</template>
    <el-menu-item index="2-1">选项1</el-menu-item>
    <el-menu-item index="2-2">选项2</el-menu-item>
    <el-menu-item index="2-3">选项3</el-menu-item>
    <el-submenu index="2-4">
      <template slot="title">选项4</template>
      <el-menu-item index="2-4-1">选项1</el-menu-item>
      <el-menu-item index="2-4-2">选项2</el-menu-item>
      <el-menu-item index="2-4-3">选项3</el-menu-item>
    </el-submenu>
  </el-submenu>
  <el-menu-item index="3" disabled>消息中心</el-menu-item>
  <el-menu-item index="4"><a href="https://www.ele.me" target="_blank">订单管理</a></el-menu-item>
</el-menu>
<h3>侧边栏</h3>
<el-col :span="8">
<el-menu
  default-active="2"
  class="el-menu-vertical-demo">
  <el-submenu index="1">
    <template slot="title">
      <span>导航一</span>
    </template>
    <el-menu-item-group>
      <template slot="title">分组一</template>
      <el-menu-item index="1-1">选项1</el-menu-item>
      <el-menu-item index="1-2">选项2</el-menu-item>
    </el-menu-item-group>
    <el-menu-item-group title="分组2">
      <el-menu-item index="1-3">选项3</el-menu-item>
    </el-menu-item-group>
    <el-submenu index="1-4">
      <template slot="title">选项4</template>
      <el-menu-item index="1-4-1">选项1</el-menu-item>
    </el-submenu>
  </el-submenu>
  <el-menu-item index="2">
    <span slot="title">导航二</span>
  </el-menu-item>
  <el-menu-item index="3" disabled>
    <span slot="title">导航三</span>
  </el-menu-item>
  <el-menu-item index="4">
    <span slot="title">导航四</span>
  </el-menu-item>
</el-menu>
</el-col>
<h3>步骤条</h3>
<el-col :span="8">
  <el-steps :active="activeStep" finish-status="success" not-icon>
    <el-step title="步骤 1"></el-step>
    <el-step title="步骤 2"></el-step>
    <el-step title="步骤 3"></el-step>
    <el-step title="步骤 4"></el-step>
  </el-steps>
<el-button style="margin-top: 12px;" @click="next">下一步</el-button>
</el-col>
<h3>竖状步骤条</h3>
<el-col :span="8">
<div style="height: 300px;">
  <el-steps direction="vertical" :active="activeStep1" finish-status="success">
    <el-step title="步骤 1" description="css真牛皮"></el-step>
    <el-step title="步骤 2" description="我快要瞎了"></el-step>
    <el-step title="步骤 3" description="这是一段很长很长很长的描述性文字"></el-step>
  </el-steps>
  <el-button style="margin-top: 12px;" @click="next1">下一步</el-button>
</div>
</el-col>
<h3>简约步骤条</h3>
<el-steps :active="activeStep2" finish-status="success" simple style="margin-top: 20px">
  <el-step title="步骤 1" ></el-step>
  <el-step title="步骤 2" ></el-step>
  <el-step title="步骤 3" ></el-step>
  <el-step title="步骤 4" ></el-step>
</el-steps>
<el-button style="margin-top: 12px;" @click="next2">下一步</el-button>
   <!---------------------------------标签页-------------------------------------->
<el-divider>标签页</el-divider>
<el-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>
<el-tabs>
    <el-tab-pane name="first"><span slot="label"><i class="el-icon-date"></i> 用户管</span>用户管理</el-tab-pane>
    <el-tab-pane name="second"><span slot="label"><i class="el-icon-date"></i> 配置管理</span>配置管理</el-tab-pane>
    <el-tab-pane label="角色管理" name="third">角色管理</el-tab-pane>
    <el-tab-pane label="定时任务补偿" name="fourth">定时任务补偿</el-tab-pane>
</el-tabs>
<el-tabs type="card">
    <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" disabled>定时任务补偿</el-tab-pane>
</el-tabs>
<el-tabs type="card" only-bordertop>
    <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" disabled>定时任务补偿</el-tab-pane>
</el-tabs>
    </div>
</template>
<script>
export default {
  data() {
    return {
      activeIndex: '2',
      activeStep: 0,
      activeStep1: 0,
      activeStep2: 0
    };
  },
  methods: {
    next() {
      if (this.activeStep++ > 3) this.activeStep = 0;
    },
    next1() {
      if (this.activeStep1++ > 2) this.activeStep1 = 0;
    },
    next2() {
      if (this.activeStep2++ > 3) this.activeStep2 = 0;
    }
  }
};
</script>
<style lang="scss">
.ui-wrap > div  {
  margin-bottom: 10px;
  margin-top: 20px;
}
.el-form-item__content {
  margin-left: 0 !important;
}
.el-select .el-input {
  width: 100px;
}
.input-with-select .el-input-group__prepend {
  background-color: #fff;
}
</style>