<template>
  <section class="show-wrapper">
    <article class="show-wrapper-all" :class="{'border-top': showTopBorder}">
        <span class="show-wrapper-all-item" @click="showAllItem">{{noMoreText}}</span>
    </article>
  </section>
</template>
<script>
export default {
  data() {
    return {

    }
  },
  props: {
    showTopBorder: {
      type: Boolean,
      default: true
    },
    noMoreText: {
      type: String,
      default: '查看全部'
    },
    itemIndex: {
      type: String,
      default: '0'
    }
  },
  methods: {
    showAllItem() {
      this.$emit('showAllItem', this.itemIndex)
    }
  }
}
</script>

<style lang="scss" scoped>
@import '../../style/mixin.scss';
// @import '../../style/global.scss';
.show-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  &-all {
    height: px2rem(40px);
    width: px2rem(345px);
    &-item {
      display: block;
      margin-top: px2rem(11px);
      text-align: center;
      font-size: px2rem(11px);
      color: #999999;
    }
  }
}
.border-top {
    border-top: px2rem(1px) solid rgba(240,240,240,1);
}
</style>
