-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3c14ef0
commit 2611e5a
Showing
5 changed files
with
100 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,4 +75,4 @@ watch(eventsData, (newVal: any, oldVal: any) => { | |
text-align: center; | ||
min-width: 120px; | ||
} | ||
</style> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<template> | ||
<div> | ||
<h3 class="title">Events:</h3> | ||
<v-expansion-panels> | ||
<v-expansion-panel> | ||
<v-expansion-panel-title> | ||
<h4>event table</h4> | ||
</v-expansion-panel-title> | ||
<v-expansion-panel-text> | ||
<EventTable :items="filteredEvents"/> | ||
</v-expansion-panel-text> | ||
</v-expansion-panel> | ||
<v-expansion-panel> | ||
<v-expansion-panel-title> | ||
<h4>event list</h4> | ||
</v-expansion-panel-title> | ||
<v-expansion-panel-text> | ||
<v-list dense> | ||
<v-list-item v-for="event in filteredEvents" :key="event.event_id"> | ||
<v-list-item-content> | ||
<v-list-item-title>{{ event.event_name.toLowerCase() }}</v-list-item-title> | ||
<v-list-item-subtitle>Type: {{ event.event_type.toLowerCase() }}</v-list-item-subtitle> | ||
</v-list-item-content> | ||
</v-list-item> | ||
</v-list> | ||
</v-expansion-panel-text> | ||
</v-expansion-panel> | ||
</v-expansion-panels> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { | ||
computed, | ||
PropType, | ||
ref, | ||
} from 'vue'; | ||
/// <reference path="../store.d.ts" /> | ||
import { events } from '@/store'; | ||
import EventTable from './EventTable.vue'; | ||
const props = defineProps({ | ||
filteredEvents: { | ||
type: Array as PropType<Array<any>>, | ||
required: true, | ||
}, | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters