ContentB.vue 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!-- eslint-disable vue/multi-word-component-names -->
  2. <template>
  3. <CommonTitle class="mb-10px" label="测试" value="是我啊" />
  4. <ListItemA v-for="(item, i) in list" :key="item.icon" :icon="item.icon" :label="item.label" :value="item.value" :type="i % 2 ? 'green' : 'blue'" />
  5. </template>
  6. <script lang="ts" setup>
  7. import { ref } from 'vue';
  8. import CommonTitle from './components/CommonTitle.vue';
  9. import ListItemA from './ListItemA.vue';
  10. // import mapComponent from './components/3Dmap/index.vue';
  11. const list = ref([
  12. {
  13. icon: 'warning-optical-fiber',
  14. label: 'a',
  15. value: 'a',
  16. },
  17. {
  18. icon: 'warning-tubes',
  19. label: 'a',
  20. value: 'a',
  21. },
  22. {
  23. icon: 'warning-smoke-2',
  24. label: 'a',
  25. value: 'a',
  26. },
  27. {
  28. icon: 'warning-CO-2',
  29. label: 'a',
  30. value: 'a',
  31. },
  32. {
  33. icon: 'warning-temp',
  34. label: 'a',
  35. value: 'a',
  36. },
  37. {
  38. icon: 'warning-max-temp',
  39. label: 'a',
  40. value: 'a',
  41. },
  42. ]);
  43. </script>
  44. <style lang="less" scoped></style>