<template>
  <div class="more-panel">
    <div class="title">{{ title }}</div>
    <div class="content">
      <slot />
    </div>
  </div>
</template>

<script>
export default {
  name: 'MorePanel',
  props: {
    title: {
      type: String,
      default: '标题'
    }
  }
}
</script>

<style lang="scss" scoped>
.more-panel {
  position: relative;
  width: 100%;
  overflow: hidden;
  .title {
    display: flex;
    align-items: center;
    position: relative;
    margin: 12px 0;
    padding-left: 13px;
    font-size: 15px;
    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 4px;
      height: 15px;
      background-color: #12b085;
      border-radius: 2px;
    }
  }
  .content {
    display: flex;
    flex-wrap: wrap;
    padding: 23px 18px 5px;
    background-color: #fff;
    border-radius: 8px;
    .item {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin: 0 37px 18px 0;
      img {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
      }
      span {
        color: #333;
        font-size: 12px;
      }
    }
    .item:nth-child(4n) {
      margin-right: 0;
    }
  }
}
</style>
