monthlyTrend.vue 728 Bytes
<template>
  <div class='monthly-trend'>
    <view-sub-title title='订单月度趋势' />
    <div class='line-bar-chart' v-if='monthlyTrend'>
      <LineBar :domId='domId' :dataList='monthlyTrend' :boxHeight='boxHeight'></LineBar>
    </div>
  </div>
</template>

<script>
import LineBar from 'components/lineBar'

export default {
  name: 'MonthlyTrend',
  props: {
    boxHeight: {
      type: String,
      default: '42vh'
    }
  },
  components: {
    LineBar
  },
  data() {
    return {
      domId: 'monthlyTrendLineBar',
      monthlyTrend: []
    }
  },
  mounted() {
    this.$bus.$on('orderMonthlyTrend', data => {
      this.monthlyTrend = data.orderMonthlyTrend
    })
  }
}

</script>

<style scoped>

</style>