mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 02:22:22 +09:00
1.8 KiB
1.8 KiB
state
| state | ||||||
|---|---|---|---|---|---|---|
|
DateRangepicker
<VCalendar /> can be turned into a date range picker if needed. Check the
code example for more details about usage.
<script setup lang="ts">
const range = reactive({
start: new Date(),
end: new Date(),
})
</script>
<template>
<ClientOnly>
<VDatePicker
v-model.range="range"
color="green"
trim-weeks
>
<template #default="{ inputValue, inputEvents }">
<VField addons>
<VControl>
<input
class="input v-input"
type="text"
:value="inputValue.start"
v-on="inputEvents.start"
>
</VControl>
<VControl>
<VButton static icon="lucide:arrow-right" />
</VControl>
<VControl subcontrol>
<input
class="input v-input"
type="text"
:value="inputValue.end"
v-on="inputEvents.end"
>
</VControl>
</VField>
</template>
</VDatePicker>
</ClientOnly>
</template>