<template>
  <div class="tabs-bar">
    <div class="inner">
      <div class="list-wrap">
        <div
          v-for="item in componentData.list"
          :key="item.id"
          class="item-wrap"
        >
          <div class="item">
            <p class="bold title">{{ item.title }}</p>
            <p class="sub-title">{{ item.subTitle }}</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

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

  components: {},

  mixins: [],

  props: {
    componentData: {
      type: Object,
      defautl: () => ({}),
      required: true
    }
  },

  data() {
    return {}
  },

  computed: {},

  watch: {},

  created() {},

  mounted() {},

  methods: {}
}
</script>
<style lang="scss" scoped>
.tabs-bar {
  .inner {
    .list-wrap {
      display: flex;
      justify-content: flex-start;
      width: 300%;
      padding: 20px 0;
      .item-wrap {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 6px;
        height: 20px;
        border-right: 1px solid #eee;
        .item {
          text-align: center;
          width: 60px;
          & > p {
            margin: 0;
            line-height: 1.4em;
          }
          .title {
            font-size: 14px;
          }
          .sub-title {
            font-size: 14px;
          }
        }
      }
    }
  }
}
</style>
