Skip to content

Commit 448063c

Browse files
committed
add header button slot
1 parent 2d75fe8 commit 448063c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/Calendar/Calendar.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,11 @@ export default {
249249
{
250250
class: [`vc-arrows-container title-${this.titlePosition}`],
251251
},
252-
[getArrowButton(true), getArrowButton(false)],
252+
[
253+
this.$slots.buttons && this.$slots.buttons(),
254+
getArrowButton(true),
255+
getArrowButton(false),
256+
],
253257
),
254258
this.$slots.footer && this.$slots.footer(),
255259
],

0 commit comments

Comments
 (0)