календарь

This commit is contained in:
iriska-gri committed 2023-11-13 12:05:34 +03:00
1 parent 67c455dbea
commit 588408f675
2 files changed
+75 -24

No files matched your search

BIN
View File
Binary file not shown.
+75 -24
View File
@@ -1,6 +1,9 @@
<template>
<v-row>
<v-col>
<v-col class="flex-column">
<v-card class="h-100">
<!-- xsmall
:time="false"
hide-view-selector
@@ -19,7 +22,7 @@
events-count-on-year-view
active-view="month"
:events="events"
class="vuecal--blue-theme"
@cell-focus="selectedDate = $event"
>
<template #arrow-prev>
@@ -30,21 +33,23 @@
</template>
</vue-cal>
</v-card>
</v-col>
<v-col>
<v-card class="h-100">
<vue-cal
locale="ru"
xsmall
:time="false"
hide-view-selector
todayButton
split
:events="events"
active-view="day"
:disable-views="['years', 'year', 'month', 'week']"
:selected-date="selectedDate"
class="vuecal--blue-theme vuecal--rounded-theme"
>
<template #arrow-prev>
@@ -53,7 +58,24 @@
<template #arrow-next>
<v-icon icon="mdi-menu-right"></v-icon>
</template>
<template #today-button>
<!-- Using Vuetify (but we prefer Wave UI 🤘) -->
<v-tooltip text="Сегодня" location="bottom">
<template v-slot:activator="{ props }">
<v-icon v-bind="props" icon="mdi-crosshairs-gps" size="x-small" class="pt-1 pr-3" color="more_details_btn"/>
</template>
</v-tooltip>
</template>
</vue-cal>
</v-card>
</v-col>
</v-row>
@@ -120,25 +142,7 @@ export default {
const selectedDate = ref(null)
// {
// start: '2023-11-20 14:00',
// end: '2023-11-20 18:00',
// title: 'Need to go shopping',
// icon: 'shopping_cart', // Custom attribute.
// content: 'Click to see my shopping list',
// contentFull: 'My shopping list is rather long:<br><ul><li>Avocados</li><li>Tomatoes</li><li>Potatoes</li><li>Mangoes</li></ul>', // Custom attribute.
// class: 'leisure'
// },
// {
// start: '2023-10-10 14:00',
// end: '2023-10-20 14:00',
// title: 'Golf with John',
// icon: 'golf_course', // Custom attribute.
// content: 'Do I need to tell how many holes?',
// contentFull: 'Okay.<br>It will be a 18 hole golf course.', // Custom attribute.
// class: 'sport'
// }
return { events, selectedDate, f_generalvacation }
}
@@ -160,5 +164,52 @@ export default {
color: transparent;
}
.vuecal {
border-radius: 6px;
}
.vuecal__title-bar {
border-top-left-radius: 3px;
border-top-right-radius: 3px;
}
.vuecal__title-bar {
background: var(--cards)
/* background: linear-gradient(to top right, rgba(19,84,122,.8), rgba(128,208,199,.8)); */
}
.vuecal__flex .vuecal__title {
font-family: sans-serif;
}
.vuecal__cell-events-count {
position: absolute;
left: 50%;
top: 65%;
transform: translate(-50%);
min-width: 15px;
height: 15px;
line-height: 15px;
padding: 0;
background: linear-gradient(to top right, rgba(19,84,122,.8), rgba(128,208,199,.8));
color: #f8fff9!important;
border-radius: 12px;
font-size: 10px;
box-sizing: border-box;
}
.vuecal--rounded-theme .vuecal__cell-content {
width: 30px;
height: 30px;
flex-grow: 0;
border: 1px solid #00a5bc00;
background: #c2e9d78c;
border-radius: 30px;
color: #333;
}
.vuecal--no-time .vuecal__event {
min-height: 20px;
}
.vuecal__cell--selected:before {border-color: rgba(30, 65, 49, 0.5);}
</style>