</thead>
<tbody id="cs-table__body">
<CSData
- v-for="chargingStation in props.chargingStations"
+ v-for="chargingStation in chargingStations"
:key="chargingStation.stationInfo?.hashId"
:charging-station="chargingStation"
- :id-tag="props.idTag"
/>
</tbody>
</table>
</template>
<script setup lang="ts">
+import { defineProps } from 'vue'
import CSData from '@/components/charging-stations/CSData.vue'
import type { ChargingStationData } from '@/types'
-const props = defineProps<{
+defineProps<{
chargingStations: ChargingStationData[]
- idTag: string
}>()
</script>
empty-cells: show;
}
-#cs-table__head,
#cs-table__body {
height: fit-content;
width: 100%;
height: fit-content;
width: 100%;
display: flex;
+ flex-direction: row;
justify-content: center;
align-items: center;
-}
-
-#cs-table__head .cs-table__row {
- background-color: lightgrey;
+ border: solid 0.5px black;
}
.cs-table__row:nth-of-type(even) {
.cs-table__column {
height: fit-content;
- width: calc(65% / 10);
+ width: calc(60% / 10);
text-align: center;
}
+#cs-table__head .cs-table__row {
+ background-color: lightgrey;
+}
+
.cs-table__connectors-column {
height: fit-content;
- width: 35%;
- text-align: center;
+ width: 40%;
}
</style>