MerchantStatistic.vue 1.08 KB
<template>
  <div class="main-box">
    <div v-for="(item, index) in dataList" :key="index" class="statistic-box" :style="{ width: 100 / dataList.length + '%' }">
      <div class="title">{{ item.name }}</div>
      <div class="text">{{ numAddSymbol(item.val) }}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'MerchantStatistic',
  props: {
    dataList: {
      type: Array,
      default: () => []
    }
  },
  data() {
    return {}
  },

  mounted() {},

  methods: {}
}
</script>

<style lang="scss" scoped>
.main-box {
  display: flex;
}
.statistic-box {
  box-shadow: inset 0 0 20px 0 #3d57ff69;
  padding: 1.89vh 0.89vw;
  margin-right: 1.11vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  &:last-child {
    margin-right: 0;
  }
  .title {
    font-weight: 500;
    font-size: 14px;
    color: #ffffff;
  }
  .text {
    font-weight: 600;
    font-size: 20px;
    color: #5894ff;
    background-image: -webkit-linear-gradient(left, #24d8ff, #7787ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
</style>