BigModuleTrend.vue 1.07 KB
<!--
 * @Description: 
 * @Author: huyue
 * @Date: 2024-07-09 10:35:58
 * @LastEditors: huyue
 * @LastEditTime: 2024-07-10 15:44:05
-->
<template>
  <div class="big-module-box">
    <BoxTitle :title="'使用大模型创建活动的趋势'" :fontSize="16"></BoxTitle>
    <BarChart class="bar-chart" ref="bigModuleChartRef" :height="'25.83vh'" domId="bigModuleChart" :dataList.sync="bigModuleChartDataList"></BarChart>
  </div>
</template>

<script>
import { bigModuleChartDataList } from '../const/index'
import BarChart from './BarChart.vue'
export default {
  name: 'BigModuleTrend',
  components: { BarChart },
  data() {
    return {
      bigModuleChartDataList
    }
  },

  mounted() {
    let _this = this;
    _this.$nextTick(function () {
      _this.$refs.bigModuleChartRef.drawBar()
    })
  },

  methods: {}
}
</script>

<style lang="scss" scoped>
.big-module-box {
  box-sizing: border-box;
  width: 15vw;
  height: 34.23vh;
  background-image: url(../../../assets/images/big-module-bg.png);
      background-size: 100% 100%;
      padding: 3.61vh 1.59vw 5.93vh 0.78vw;
}
</style>