This commit is contained in:
2024-03-12 13:38:24 +01:00
parent 423b2638aa
commit 6791342879
5 changed files with 160 additions and 18 deletions

View File

@@ -1,4 +1,4 @@
<script setup lang="ts">
<script setup>
import { DatePicker as VCalendarDatePicker } from 'v-calendar'
import 'v-calendar/dist/style.css'
@@ -6,6 +6,10 @@ const props = defineProps({
modelValue: {
type: Date,
default: null
},
mode: {
type: String,
default: "date"
}
})
@@ -37,6 +41,8 @@ const attrs = [{
<template>
<VCalendarDatePicker
v-model="date"
:mode="props.mode"
is24hr
transparent
borderless
:attributes="attrs"