mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
Przełączanie pomiędzy sekcjami dziennika
This commit is contained in:
@@ -18,16 +18,22 @@
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<JournalTimetables v-if="journalTypeChosen == 'timetables'" />
|
||||
<div class="journal-section">
|
||||
<keep-alive>
|
||||
<JournalTimetables v-if="journalTypeChosen == 'timetables'" />
|
||||
<JournalDispatchers v-else-if="journalTypeChosen == 'dispatchers'" />
|
||||
</keep-alive>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import JournalTimetables from '@/components/JournalView/JournalTimetables.vue';
|
||||
import { defineComponent } from 'vue';
|
||||
import JournalDispatchers from '@/components/JournalView/JournalDispatchers.vue';
|
||||
|
||||
export default defineComponent({
|
||||
components: { JournalTimetables },
|
||||
components: { JournalTimetables, JournalDispatchers },
|
||||
|
||||
data() {
|
||||
return {
|
||||
@@ -57,4 +63,11 @@ export default defineComponent({
|
||||
border-radius: 0 0 0.5em 0.5em;
|
||||
padding: 0.1em 0;
|
||||
}
|
||||
|
||||
.journal-section > section {
|
||||
height: 100%;
|
||||
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user