Added city widget

This commit is contained in:
Kamil Klecha
2021-10-14 21:34:13 +02:00
parent 627fdc4b5f
commit 49cc0fd873
2 changed files with 99 additions and 1 deletions

View File

@@ -1,13 +1,28 @@
<template>
<v-card flat tile>
<v-card-title>Prognoza pogody</v-card-title>
<v-row justify="space-around">
<v-col pa-1 v-for="(city, i) in city_ids" :key="i">
<City :id="city"/>
</v-col>
</v-row>
</v-card>
</template>
<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
import City from "@/components/City.vue";
@Component
@Component({
components: {
City,
},
})
export default class Forecast extends Vue {
private data() {
return {
city_ids: [6695624, 759734, 3094802, 764849]
}
}
}
</script>