index.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <div class="_energy">
  3. <layout>
  4. <template #left>
  5. <div style="height: 100%;display: flex;flex-direction: column;overflow: hidden;">
  6. <sameDay style="flex: 1;" />
  7. <consumptionPower style="flex: 1;" />
  8. <consumptionWater style="flex: 1;" />
  9. </div>
  10. </template>
  11. <template #content>
  12. <p>能源</p>
  13. </template>
  14. <template #right>
  15. <div style="height: 100%;display: flex;flex-direction: column;overflow: hidden;">
  16. <running style="flex: 1;" />
  17. <consume style="flex: 1;" />
  18. <carbonEmission style="flex: 1;" />
  19. </div>
  20. </template>
  21. </layout>
  22. </div>
  23. </template>
  24. <script setup name="Role">
  25. import layout from "@/components/layout_/index.vue";
  26. import sameDay from './modules/sameDay.vue'
  27. import consumptionPower from './modules/consumptionPower.vue'
  28. import consumptionWater from './modules/consumptionWater.vue'
  29. import running from './modules/running.vue'
  30. import carbonEmission from './modules/carbonEmission.vue'
  31. import consume from './modules/consume.vue'
  32. </script>
  33. <style lang="scss">
  34. ._energy {
  35. height: 100%;
  36. }
  37. </style>