辅助加样
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.1 KiB

6 months ago
6 months ago
6 months ago
6 months ago
  1. <template>
  2. <div class="simple_home">
  3. <main>
  4. <div class="main">
  5. <div v-for="(item, index) in simpleCardList" :key="index">
  6. <SimpleCard :simpleInfo="item" :key="item.id"></SimpleCard>
  7. <!-- <SimpleCardVertical :simpleInfo="item" :key="item.id"></SimpleCardVertical> -->
  8. </div>
  9. </div>
  10. </main>
  11. </div>
  12. </template>
  13. <script setup lang="ts">
  14. import {ref} from 'vue'
  15. import SimpleCard from './components/SimpleCard.vue'
  16. import SimpleCardVertical from './components/SimpleCardVertical.vue'
  17. const simpleCardList = ref([{
  18. id:1,
  19. time:123,
  20. state:1,
  21. },{
  22. id:2,
  23. time:123,
  24. state:1,
  25. },{
  26. id:3,
  27. time:123,
  28. state:1
  29. },{
  30. id:4,
  31. time:123,
  32. state:1
  33. },{
  34. id:5,
  35. time:123,
  36. state:1
  37. },{
  38. id:6,
  39. time:123,
  40. state:1
  41. }])
  42. </script>
  43. <style scoped>
  44. .main{
  45. display: flex;
  46. justify-content: flex-start;
  47. flex-wrap: wrap;
  48. gap: 5px;
  49. flex-direction: row;
  50. padding-left: 5px;
  51. margin-top:-5px;
  52. }
  53. .simple_home{
  54. background: #ECF2FF;
  55. }
  56. .sidebar {
  57. width: 100%;
  58. height: 50px;
  59. margin-right: 20px;
  60. }
  61. </style>