mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
Zmiana wyglądu listy pociągów
This commit is contained in:
@@ -1,32 +1,77 @@
|
||||
<template>
|
||||
<div>
|
||||
</div>
|
||||
<div class="bg-dimmer" @click="close"></div>
|
||||
<section class="train-timetable-card card">
|
||||
|
||||
|
||||
<train-info :train="train" />
|
||||
|
||||
<train-schedule :followingStops="train.timetableData?.followingStops" ref="card-inner" tabindex="0" @focus="test" />
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Train from '@/scripts/interfaces/Train';
|
||||
import { defineComponent } from 'vue'
|
||||
import { defineComponent } from 'vue';
|
||||
import TrainInfo from './TrainInfo.vue';
|
||||
import TrainSchedule from './TrainSchedule.vue';
|
||||
|
||||
export default defineComponent({
|
||||
components: { TrainInfo, TrainSchedule },
|
||||
emits: ['close'],
|
||||
|
||||
data: () => ({
|
||||
icons: {
|
||||
exit: require('@/assets/icon-exit.svg'),
|
||||
},
|
||||
}),
|
||||
props: {
|
||||
train: {
|
||||
type: Object as () => Train,
|
||||
required: true
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
setup() {
|
||||
return {};
|
||||
},
|
||||
|
||||
methods: {
|
||||
close() {
|
||||
this.$emit('close');
|
||||
},
|
||||
|
||||
test() {
|
||||
console.log("xd");
|
||||
|
||||
}
|
||||
},
|
||||
setup () {
|
||||
|
||||
|
||||
return {}
|
||||
},
|
||||
|
||||
mounted() {
|
||||
console.log("test");
|
||||
|
||||
}
|
||||
})
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
<style lang="scss" scoped>
|
||||
@import '../../styles/card';
|
||||
|
||||
</style>
|
||||
.bg-dimmer {
|
||||
position: fixed;
|
||||
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
|
||||
z-index: 25;
|
||||
|
||||
background: rgba(black, 0.5);
|
||||
}
|
||||
|
||||
.train-timetable-card {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
|
||||
z-index: 100;
|
||||
|
||||
padding: 0.5em;
|
||||
|
||||
border: 1px solid white;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user