<template>
  <list class="contents-list">
    <list-item
      type="contents-Item"
      class="contents-item"
      for="{{list}}"
      onclick="detail($item)"
    >
      <text class="text-black">{{ $item }}</text>
    </list-item>
  </list>
</template>

<script>
export default {
  props: {
    list: {}
  },
  /* -------------------SelfCustomEvent------------------ */
  detail(item) {
    this.$emit('detail', { item })
  }
}
</script>

<style lang="less">
@import '../../assets/styles/index.less';

.contents-list {
  padding-left: @gap-3;
  background-color: @white;
}
.contents-item {
  width: 100%;
  padding: @gap-4 @gap-1;
  .border-bottom-mixins();
}
</style>
