feat(Calendar): add subtitle slot (#8980)

This commit is contained in:
neverland
2021-07-05 13:06:04 +08:00
committed by GitHub
parent 8bc924ea62
commit 779f3363c2
6 changed files with 25 additions and 20 deletions
+2 -2
View File
@@ -489,10 +489,10 @@ export default defineComponent({
const renderCalendar = () => (
<div class={bem()}>
<CalendarHeader
v-slots={{ title: slots.title }}
v-slots={pick(slots, ['title', 'subtitle'])}
title={props.title}
showTitle={props.showTitle}
subtitle={state.subtitle}
showTitle={props.showTitle}
showSubtitle={props.showSubtitle}
firstDayOfWeek={dayOffset.value}
/>