This commit is contained in:
2025-05-24 01:49:48 +09:00
commit 62abbcf4eb
2376 changed files with 325522 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
---
state:
date: 2021-02-28T16:20:00.000Z
---
### DateTimepicker
`<VCalendar />` can be turned into a date range picker if needed. Check the
code example for more details about usage.
<!--code-->
```vue
<script setup lang="ts">
const date = ref(new Date())
</script>
<template>
<ClientOnly>
<VDatePicker v-model="date" mode="dateTime">
<template #default="{ inputValue, inputEvents }">
<VField>
<VControl icon="lucide:calendar">
<input
class="input v-input"
type="text"
:value="inputValue"
v-on="inputEvents"
>
</VControl>
</VField>
</template>
</VDatePicker>
</ClientOnly>
</template>
```
<!--/code-->
<!--example-->
<ClientOnly>
<VDatePicker v-model="frontmatter.state.date" color="green" mode="dateTime">
<template #default="{ inputValue, inputEvents }">
<VField>
<VControl icon="lucide:calendar">
<input class="input v-input" type="text" :value="inputValue" v-on="inputEvents" />
</VControl>
</VField>
</template>
</VDatePicker>
</ClientOnly>
<!--/example-->