<template>
  <div class="ht-base-menu-custom2-demo" style="overflow-x: scroll">
    <div class="ht-base-main-menu" style="width: 900px">
      <div class="wrapper">
        <div class="category">
          <ht-base-icon type='LiRa_list1' color="#fff" size=14 />
          采购商品类目
          <ht-base-icon type='LiRa_down' size=14 />
        </div>
        <div class="menu" style="width: calc(100% - 180px)">
          <div class="menu-item"
               v-for="index in [1, 2,3,4,5]" :key="index"
               @click="active = index"
               :class="{active: active === index}">
            导航菜单{{index}}
          </div>
          <div class="menu-special">
            <ht-base-icon style="color: #338EF7;" type='LiRa_home' size=14 />
            专题2
          </div>
          <div class="menu-special">
            <ht-base-icon style="color: #338EF7;" type='LiRa_data' size=14 />
            专题1
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
  export default {
    name: 'HtBaseMenuCustom2Demo',
    data() {
      return {
        active: 1
      }
    }
  }
</script>

<style lang="less">
  .ht-base-menu-custom2-demo {
    width: 100%;
  }
  .ht-base-main-menu {
    width: 100%;
    font-size: 14px;
    .wrapper {
      width: 100%;
      height: 40px;
      line-height: 40px;
      overflow: hidden;
      .category {
        float: left;
        width: 180px;
        color: #fff;
        text-align: center;
        cursor: pointer;
        background: #338EF7;
      }
      .menu {
        float: left;
        line-height: 38px;
        border-bottom: 2px solid #338EF7;
        .menu-item {
          float: left;
          width: 100px;
          text-align: center;
          cursor: pointer;
          color: #595959;
          &:hover {
            color: #228EF8;
          }
          &.active {
            color: #228EF8;
            background: #F0FAFF;
          }
        }
        .menu-special {
          float: right;
          width: 100px;
          text-align: center;
          cursor: pointer;
          color: #595959;
          &:hover {
            color: #228EF8;
          }
          .ht-base-icon{
            font-size: 16px;
          }
        }
      }
    }
  }
</style>
