homePage.vue 781 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <div class="chart-list">
  3. <div class="chart-item">
  4. <chart-box name="气象预警" arrow="left"></chart-box>
  5. </div>
  6. <div class="chart-item">
  7. <chart-box name="物候调节" arrow="left"></chart-box>
  8. </div>
  9. <div class="chart-item">
  10. <chart-box name="病虫测报" arrow="left"></chart-box>
  11. </div>
  12. <div class="chart-item">
  13. <chart-box name="树势评估" arrow="left"></chart-box>
  14. </div>
  15. </div>
  16. </template>
  17. <script setup>
  18. import chartBox from "@/components/chartBox.vue";
  19. </script>
  20. <style lang="scss" scoped>
  21. .chart-list {
  22. width: calc(100% - 54px - 10px);
  23. height: calc(100% - 30px);
  24. .chart-item {
  25. width: 100%;
  26. height: calc(100% / 4);
  27. box-sizing: border-box;
  28. margin-bottom: 10px;
  29. }
  30. }
  31. </style>