Skip to content

Commit

Permalink
fix: 修复日历组件cell和cellAppend插槽在build版本不生效的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
PsTiu authored and PengYYYYY committed Apr 9, 2022
1 parent 9db453a commit d6a7ded
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/calendar/calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,8 @@ export default defineComponent({
onClick={(e: MouseEvent) => clickCell(e, item)}
onDblclick={(e: MouseEvent) => doubleClickCell(e, item)}
onRightclick={(e: MouseEvent) => rightClickCell(e, item)}
>
{{ ...slots }}
</CalendarCellItem>
v-slots={{ ...slots }}
></CalendarCellItem>
),
)}
</tr>
Expand Down Expand Up @@ -404,9 +403,8 @@ export default defineComponent({
onClick={(e: MouseEvent) => clickCell(e, item)}
onDblclick={(e: MouseEvent) => doubleClickCell(e, item)}
onRightclick={(e: MouseEvent) => rightClickCell(e, item)}
>
{{ ...slots }}
</CalendarCellItem>
v-slots={{ ...slots }}
></CalendarCellItem>
))}
</tr>
))}
Expand Down

0 comments on commit d6a7ded

Please sign in to comment.