ListItem.vue 712 Bytes
Newer Older
Nature's avatar
Nature committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
<template>
  <div :class="[c(),cusClass]">
    <slot/>
  </div>
</template>

<script>
import { base } from '../../common/mixins'
import Item from './Item'

export default {
  Item,
  name: 'ListItem',
  mixins: [base],
  props: {
    itemHeight: {
      type: Number,
      default: 45,
    },
    cusClass: {
      type: String,
      default: '',

    },
  },
  data () {
    return {}
  },
  mounted () {
  },
}
</script>

<style lang="less">
  .hls-list-item {
    width: 100%;
    overflow: hidden;
    background: #fff;
    margin-bottom: 10px;

    .hls-item {
      &:last-child {
        .vue-1px-b {
          &:after {
            border-bottom: none;
          }
        }
      }
    }
  }
</style>