календарь
This commit is contained in:
1 parent
67c455dbea
commit
588408f675
2 files changed
+74
-23
No files matched your search
Binary file not shown.
@@ -1,6 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-row>
|
<v-row>
|
||||||
<v-col>
|
<v-col class="flex-column">
|
||||||
|
<v-card class="h-100">
|
||||||
|
|
||||||
|
|
||||||
<!-- xsmall
|
<!-- xsmall
|
||||||
:time="false"
|
:time="false"
|
||||||
hide-view-selector
|
hide-view-selector
|
||||||
@@ -19,7 +22,7 @@
|
|||||||
events-count-on-year-view
|
events-count-on-year-view
|
||||||
active-view="month"
|
active-view="month"
|
||||||
:events="events"
|
:events="events"
|
||||||
class="vuecal--blue-theme"
|
|
||||||
@cell-focus="selectedDate = $event"
|
@cell-focus="selectedDate = $event"
|
||||||
>
|
>
|
||||||
<template #arrow-prev>
|
<template #arrow-prev>
|
||||||
@@ -30,21 +33,23 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
</vue-cal>
|
</vue-cal>
|
||||||
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col>
|
<v-col>
|
||||||
|
<v-card class="h-100">
|
||||||
<vue-cal
|
<vue-cal
|
||||||
locale="ru"
|
locale="ru"
|
||||||
xsmall
|
xsmall
|
||||||
:time="false"
|
:time="false"
|
||||||
hide-view-selector
|
hide-view-selector
|
||||||
|
todayButton
|
||||||
|
split
|
||||||
|
|
||||||
:events="events"
|
:events="events"
|
||||||
active-view="day"
|
active-view="day"
|
||||||
:disable-views="['years', 'year', 'month', 'week']"
|
:disable-views="['years', 'year', 'month', 'week']"
|
||||||
:selected-date="selectedDate"
|
:selected-date="selectedDate"
|
||||||
class="vuecal--blue-theme vuecal--rounded-theme"
|
|
||||||
|
|
||||||
>
|
>
|
||||||
<template #arrow-prev>
|
<template #arrow-prev>
|
||||||
@@ -53,7 +58,24 @@
|
|||||||
<template #arrow-next>
|
<template #arrow-next>
|
||||||
<v-icon icon="mdi-menu-right"></v-icon>
|
<v-icon icon="mdi-menu-right"></v-icon>
|
||||||
</template>
|
</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>
|
</vue-cal>
|
||||||
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|
||||||
@@ -121,24 +143,6 @@ export default {
|
|||||||
const selectedDate = ref(null)
|
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 }
|
return { events, selectedDate, f_generalvacation }
|
||||||
}
|
}
|
||||||
@@ -160,5 +164,52 @@ export default {
|
|||||||
color: transparent;
|
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>
|
</style>
|
||||||
Reference in new issue
Block a user