<!--
 * @Author: your name
 * @Date: 2021-10-15 14:16:01
 * @LastEditTime: 2021-11-25 14:32:37
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \Foshan4A\src\layout\components\EchartsNum\index.vue
-->
<template>
  <div :class="type?'flex':'r3'" class="account-number">
    <div v-for="(item,index) in arrs" :key="index" :class="!type?'t21':''" class="account-number-list">
      <div class="number">{{item.number}}</div>
      <div class="text">
        <span :style="{'background':item.color}" class="icon"></span>
        <span class="txt">{{item.txt}}</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'EchartsNum',
  props: {
    arrs: {
      type: Array,
      default: () => []
    },
    type: {
      type: Boolean,
      default: false
    }
  }
}
</script>

<style lang="scss" scoped>
.t21 {
  margin-top: 11px;
}
.r3 {
  margin-right: 30px;
}
.account-number {
  margin-top: 55px;
}
.account-number-list {
  cursor: pointer;
  .number {
    font-size: 28px;
    font-family: DIN;
    font-weight: bold;
    color: #303133;
    margin-bottom: 3px;
  }
  .icon {
    width: 12px;
    height: 12px;
    display: inline-block;
    background: #8969be;
    margin-right: 7px;
    position: relative;
    top: 2px;
    border-radius: 2px;
  }
  .txt {
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: bold;
    color: #303133;
  }
  .new {
    background: #697bbe;
  }
}
</style>