fix: add 'Today' button to quickly reset calendar date
This commit is contained in:
parent
0386df262e
commit
b6a15ab96e
@ -74,9 +74,19 @@
|
|||||||
}
|
}
|
||||||
"
|
"
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
class="h-4 w-4"
|
|
||||||
icon="chevron-left"
|
icon="chevron-left"
|
||||||
/>
|
/>
|
||||||
|
<Button
|
||||||
|
:label="__('Today')"
|
||||||
|
variant="ghost"
|
||||||
|
@click="
|
||||||
|
() => {
|
||||||
|
const today = dayjs().format('YYYY-MM-DD')
|
||||||
|
setCalendarDate(today)
|
||||||
|
selectedMonthDate = today
|
||||||
|
}
|
||||||
|
"
|
||||||
|
/>
|
||||||
<Button
|
<Button
|
||||||
@click="
|
@click="
|
||||||
() => {
|
() => {
|
||||||
@ -85,7 +95,6 @@
|
|||||||
}
|
}
|
||||||
"
|
"
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
class="h-4 w-4"
|
|
||||||
icon="chevron-right"
|
icon="chevron-right"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user