<template>
  <div class="num-statistics">
    <div class="icon">
      <i class="el-icon-s-data"></i>
    </div>
    <div class="con">
      <div>
        <span class="num">{{ num }}</span>
        <i class="el-icon-top" style="color: green; font-weight: 600;"></i>
      </div>
      <div class="name">{{ name }}</div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    num: [String, Number],
    name: String
  }
}
</script>

<style lang="scss" scoped>
.num-statistics {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 260px;
  padding: 12px 8px;
  border: 1px solid #eee;
  border-radius: 3px;
  .icon {
    font-size: 26px;
  }
  .con {
    margin-left: 12px;
    text-align: center;
  }
  .num {
    font-size: 32px;
    font-weight: 600;
    color: rgb(64, 158, 255);
  }
  .name {
    color: #999;
  }
}
</style>