<template>
  <div>
    <!-- //tab栏 -->
    <div class="naue_tab">
     <p @click="tabClid(index)" v-for="(item,index) in tabNume"  :key="index" :class="[tab == index? 'p' : '']">{{item}}</p>
    </div>
    <div>
         <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: "Config",
  data() {
    return {
      // 遮罩层
      loading: true,
      //步骤条
      naueactive:2,
      tab:1,
      tabNume:['线索信息','签约信息','在建信息','投产信息'],
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
    };
  },
  created() {
  },
  methods: {
    //tab
    tabClid(index){
    this.tab = index
    }
  }
};
</script>

<style rel="stylesheet/scss" lang="scss">
  //tab
 .naue_tab{
   border-bottom: 1px solid #CDCDCD;
   display: flex;
   margin-top: 30px;
   padding: 0 10px;
   margin-bottom: 30px;
   p{
     font-size: 16px;
     font-family: PingFang SC;
     font-weight: 700;
     color: #fff !important;
     padding: 11px 15px;
     margin: 0;
     cursor: pointer;
     background-color: #0086c6;
     margin-right: 10px !important;
     // border-radius: 6px;
   }
   p:nth-child(2){
     font-size: 16px;
     font-family: PingFang SC;
     font-weight: 700;
     color: #fff;
     padding: 11px 15px;
     margin: 0;
     cursor: pointer;
     background-color: #02b938;
     margin-right: 10px;
     // border-radius: 6px;
   }
   p:nth-child(3){
     font-size: 16px;
     font-family: PingFang SC;
     font-weight: 700;
     color: #fff;
     padding: 11px 15px;
     margin: 0;
     cursor: pointer;
     background-color: #df3838;
     margin-right: 10px;
     // border-radius: 6px;
   }
   p:nth-child(4){
     font-size: 16px;
     font-family: PingFang SC;
     font-weight: 700;
     color: #fff !important;
     padding: 11px 15px;
     margin: 0;
     cursor: pointer;
     background-color: #f66e00;
     margin-right: 10px !important;
     // border-radius: 6px;
   }
   .p{
     // border-bottom: 2px solid #1C84C6;
     // margin-bottom: -1px;
     // color: #343434;
     opacity: .8;
   }
 }
</style>
