<template>
  <!-- 导航组件 -->
  <div class="nav flex-row-center">
    <div class="nav-bos">
      <div class="nav-all flex-row-center">
        <img src="@/assets/images/layout/layout2.png" alt="" />
        <div>全部商品分类</div>
      </div>
      <div v-for="(item, index) in navList" :key="index" class="nav-list">{{ item.title }}</div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { title } from 'process';

const navList = ref<any>([
  { title: '首页' },
  { title: '工业品商城' },
  { title: '福礼商城' },
  { title: '商用工程' },
  { title: '场景采购' },
  { title: '解决方案' },
  { title: '特价专区' }
]);
</script>

<style lang="scss" scoped>
.nav {
  width: 100%;
  height: 48px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;

  .nav-bos {
    width: 1200px;
    display: flex;

    .nav-all {
      height: 48px;
      background: #e7000b;
      padding: 0 10px;
      font-size: 16px;
      color: #ffffff;
      cursor: pointer;

      img {
        height: 16px;
        width: 16px;
        margin-right: 6px;
      }
    }

    .nav-list {
      line-height: 48px;
      font-size: 16px;
      color: #364153;
      padding-left: 32px;
      cursor: pointer;

      &:hover {
        color: #e7000b;
      }
    }
  }
}
</style>
