feat: calendar & router configs
This commit is contained in:
20
frontend/src/components/calendar/Calendar.vue
Normal file
20
frontend/src/components/calendar/Calendar.vue
Normal file
@@ -0,0 +1,20 @@
|
||||
<script setup lang="ts">
|
||||
import { Qalendar } from "qalendar";
|
||||
|
||||
const config = {
|
||||
month: {
|
||||
showTrailingAndLeadingDates: false,
|
||||
},
|
||||
locale: 'ru-RU',
|
||||
defaultMode: 'month',
|
||||
isSilent: true,
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Qalendar :config></Qalendar>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
@import "qalendar/dist/style.css";
|
||||
</style>
|
||||
4
frontend/src/components/calendar/qalendar.d.ts
vendored
Normal file
4
frontend/src/components/calendar/qalendar.d.ts
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
declare module 'qalendar' {
|
||||
import { DefineComponent } from 'vue';
|
||||
export const Qalendar: DefineComponent<{}, {}, any>;
|
||||
}
|
||||
Reference in New Issue
Block a user