vue3 绿色蓝色圆形底座加标题效果

数据可视化大屏底座 yekong

vue3 绿色蓝色圆形底座加标题效果实例

vue3 绿色蓝色圆形底座加标题效果

效果演示

组件代码

<template>
  <div class="cardBody">
    <div class="cardBodyItem wow" :class="item.animate" v-for="(item,index) in list"
         :key="index">
      <div class="title">{{ item.title }}</div>
      <div class="num">
        <numcard :number="item.num"></numcard>
      </div>
    </div>
  </div>
</template>

<script>
import WOW from "wow.js";
import numcard from "@/components/numcard/numcard.vue";

export default {
  name: "title",
  data() {
    return {
      list: [{
        title: '应缴人数',
        num: 20,
        animate: ' fadeInDown'
      }, {
        title: '已缴人数',
        num: 100,
        animate: ' fadeInUp'
      }]
    }
  },
  components: {numcard},
  watch: {},
  mounted() {
    var that = this;
    var wow = new WOW({
      boxClass: "wow",
      animateClass: "animated",
      offset: 0,
      mobile: true,
      live: true,
      scrollContainer: null,
      resetAnimation: true,
    });
    wow.init();
  },
}
</script>

<style lang="scss" scoped>
.cardBody {
  position: relative;
  width: calc(100% - 0px);
  margin: 0 auto;
  height: calc(100% - 0px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: nowrap;
  flex-direction: row;
  align-content: flex-start;

  .cardBodyItem {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: column;
    align-content: flex-start;
    background: url("./assets/dizuo1.png") no-repeat;
    width: 124px;
    height: 114px;

    .title {
      font-size: 14px;
      font-family: MicrosoftYaHei;
      font-weight: bold;
      color: #FFFFFF;
      padding-top: 2px;
    }

    .num {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap: nowrap;
      flex-direction: row;
      align-content: flex-start;
      position: relative;
      z-index: 12;
      height: 113px;
      width: 100%;
    }

    :deep(.num) {
      .real-time-num {
        font-size: 30px;
        font-family: DIN-Bold;
        font-weight: bold;
        color: #F2F4FF;
        width: auto;
        text-shadow: 0px 3px 3px rgba(0,0,0,0.47);
      }

      .real-time-num-item {
        text-shadow: 0 0 8px rgba(66, 163, 236, 1.00);
      }
    }
  }

  .cardBodyItem:nth-child(2) {
    background: url("./assets/dizuo2.png") no-repeat;
    width: 124px;
    height: 114px;
  }
}
</style>

更多底座效果

vue3 数据可视化大屏底座效果实例集合

喜欢