Commit ff86c880aa6957fced627c37fc6ed27fb72b47ef

Authored by fengtao
1 parent 2b9f422b

feat:首页新增饼状图和调整部分样式

1 <template> 1 <template>
2 <div v-show="dataSeries.length" ref="chartRef" :style="{ height, width }"></div> 2 <div v-show="dataSeries.length" ref="chartRef" :style="{ height, width }"></div>
3 - <div v-show="!dataSeries.length"><Empty :image="Empty.PRESENTED_IMAGE_SIMPLE" /></div> 3 + <div class="empty-box" v-show="!dataSeries.length"
  4 + ><Empty :image="Empty.PRESENTED_IMAGE_SIMPLE"
  5 + /></div>
4 </template> 6 </template>
5 <script lang="ts"> 7 <script lang="ts">
6 import { defineComponent, PropType, ref, Ref, onMounted, toRefs } from 'vue'; 8 import { defineComponent, PropType, ref, Ref, onMounted, toRefs } from 'vue';
@@ -72,3 +74,11 @@ @@ -72,3 +74,11 @@
72 }, 74 },
73 }); 75 });
74 </script> 76 </script>
  77 +
  78 +<style>
  79 + .empty-box {
  80 + display: flex;
  81 + align-items: center;
  82 + margin: 0 120px;
  83 + }
  84 +</style>