forked from kernoeb/PlanningSup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EventBottom.vue
73 lines (70 loc) · 1.79 KB
/
EventBottom.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<template>
<v-bottom-sheet
:value="bottom"
@input="$emit('change', $event)"
>
<v-sheet
class="text-center"
>
<div class="ml-3 mr-3 pa-2">
<div
v-if="selectedEvent && selectedEvent.event"
class="mb-2"
>
<div class="mt-4 font-weight-bold title">
{{ selectedEvent.event.name }}
</div>
<div
v-if="selectedEvent.event.location"
style="font-size: 14px; font-weight: normal"
class="mb-3"
:style="$vuetify.theme.dark ? 'color: gainsboro;' : null"
>
{{ selectedEvent.event.location }}
</div>
<div
v-if="selectedEvent.event.description"
style="font-size: 12px; font-weight: normal"
class="mb-2"
>
{{ selectedEvent.event.description }}
</div>
<div class="font-weight-bold">
{{ $moment(selectedEvent.event.start).format('H:mm') }} - {{ $moment(selectedEvent.event.end).format('H:mm') }}
</div>
</div>
<div
v-if="selectedEvent && selectedEvent.content"
style="font-size: 14px;"
>
<code>{{ selectedEvent.content }}</code>
</div>
</div>
<div class="pa-5" />
<v-btn
style="position:absolute; margin-left:-50px; left:50%; width:100px; bottom:0;"
text
@click="$emit('close')"
>
<span style="color: red">{{ $config.i18n.close }}</span>
</v-btn>
</v-sheet>
</v-bottom-sheet>
</template>
<script>
export default {
name: 'EventBottom',
props: {
selectedEvent: {
type: Object,
default: () => {}
},
bottom: {
type: Boolean,
default: false
}
}
}
</script>
<style scoped>
</style>