diff --git a/src/calendar/calendar.tsx b/src/calendar/calendar.tsx index 5b7f9b1e8..c777ab121 100644 --- a/src/calendar/calendar.tsx +++ b/src/calendar/calendar.tsx @@ -61,7 +61,7 @@ export default defineComponent({ return () => { const title = renderTNodeJSX('title'); - const confirmBtn = renderTNodeJSX('confirmBtn'); + const confirmBtn = renderTNodeJSX('confirmBtn') === undefined ? null : renderTNodeJSX('confirmBtn'); return (