<tbody id="cs-table__body">
<CSData
v-for="chargingStation in chargingStations"
- :key="chargingStation.stationInfo?.hashId"
+ :key="chargingStation.stationInfo.hashId"
:charging-station="chargingStation"
+ @need-refresh="$emit('need-refresh')"
/>
</tbody>
</table>
</template>
<script setup lang="ts">
-import { defineProps } from 'vue'
import CSData from '@/components/charging-stations/CSData.vue'
import type { ChargingStationData } from '@/types'
defineProps<{
chargingStations: ChargingStationData[]
}>()
+
+const $emit = defineEmits(['need-refresh'])
</script>
<style>
}
#cs-table__caption {
- color: white;
+ color: ivory;
background-color: black;
font-size: 1.5rem;
font-weight: bold;
flex-direction: row;
justify-content: center;
align-items: center;
- border: solid 0.5px black;
+ border: solid 0.25px black;
}
.cs-table__row:nth-of-type(even) {
.cs-table__column {
height: fit-content;
- width: calc(60% / 10);
+ width: calc((100% - calc(100% / 3)) / 10);
+ display: flex;
+ flex-direction: column;
text-align: center;
}
.cs-table__connectors-column {
height: fit-content;
- width: 40%;
+ width: calc(100% / 3);
+ display: flex;
+ flex-direction: column;
}
</style>