Skip to content

Commit 231d57c

Browse files
committed
fix: render custom template in day slot
1 parent 11a3050 commit 231d57c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/components/core/calendar.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@
4444

4545
<slot
4646
v-bind="props"
47-
name="day"/>
47+
name="day">
48+
<div class="vuec-default-day">
49+
{{ props.date.format('D') }}
50+
</div>
51+
</slot>
4852

4953
</template>
5054

src/components/core/month.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
@blur="$emit('blur', $event)"
3636
>
3737
<template
38-
v-if="$slots.day"
3938
slot="day"
4039
slot-scope="props">
4140

0 commit comments

Comments
 (0)