<template>
  <view class="list-icon" :style="divStyle">
    {{ text }}
  </view>
</template>

<script>
export default {
  name: 'ListIcon',
  props: {
    divStyle: {
      type: Object,
      default: () => ({
        backgroundColor: '#5972C0'
      })
    },
    text: {
      type: String,
      default: ''
    }
  }
}
</script>

<style lang="scss" scoped>
.list-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60rpx;
  height: 40rpx;
  padding: 0 16rpx;
  border-radius: 8rpx;
  font-size: 24rpx;
  color: #FFFFFF;
  line-height: 1;
}
</style>