<template>
  <div class="multi-bar">
    <div class="inner">
      <ul class="list">
        <li v-for="item in componentData.list" :key="item.id" class="item">
          <img :src="item.img" alt="" width="50" height="50" />
          <p>{{ item.title }}</p>
        </li>
      </ul>
    </div>
    <div class="dot">
      <img src="" alt="" />
    </div>
  </div>
</template>

<script>
/**
 * @author: 过飞
 * @createData: 2020年09月15日 09:25:08
 * @version：v1.0
 *
 * @desc: 功能描述
 */
export default {
  name: 'MultiBar',

  components: {},

  mixins: [],

  props: {
    componentData: {
      type: Object,
      default: () => ({})
    }
  },

  data() {
    return {}
  },

  computed: {},

  watch: {},

  created() {},

  mounted() {},

  methods: {}
}
</script>
<style lang="scss" scoped>
.multi-bar {
  .inner {
    display: flex;
    justify-content: center;

    .list {
      display: flex;
      justify-content: flex-start;
      flex-wrap: wrap;
      width: 355px;
      list-style-type: none;
      padding: 0;
      margin: 0;
      .item {
        padding: 4px;
        margin-right: 16px;
        &:nth-child(5n) {
          margin-right: 0;
        }
        & > img {
          display: block;
          width: 50px;
          height: 50px;
          background-color: #eee;
          border-radius: 4px;
        }
        & > p {
          text-align: center;
          margin: 0;
          line-height: 1.8em;
          font-size: 12px;
        }
      }
    }
  }
  .dot {
    display: flex;
    justify-content: center;
    & > img {
      display: block;
      width: 50px;
      height: 8px;
      background-color: #eee;
    }
  }
}
</style>
