Skip to content

Commit

Permalink
fix(Calendar): 修复日历组件title插槽缺失的问题 (#1222) (#1223)
Browse files Browse the repository at this point in the history
  • Loading branch information
Delevin888 authored Jan 29, 2024
1 parent 0ad5398 commit 1c8068a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/calendar/calendar.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
<template>
<div>
<calendarTemplate v-if="!usePopup" ref="calendarTemplateRef">
<template #title>
<slot name="title"></slot>
</template>
<template #confirmBtn>
<slot name="confirmBtn"></slot>
</template>
</calendarTemplate>
<t-popup v-else :visible="props.visible" placement="bottom" @visible-change="onPopupVisibleChange">
<calendarTemplate ref="calendarTemplateRef" @visible-change="onVisibleChange">
<template #title>
<slot name="title"></slot>
</template>
<template #confirmBtn>
<slot name="confirmBtn"></slot>
</template>
Expand Down

0 comments on commit 1c8068a

Please sign in to comment.