Added city widget
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user