diff --git a/src/calendar/calendar.tsx b/src/calendar/calendar.tsx index 5b7f9b1e8..b0f8f324c 100644 --- a/src/calendar/calendar.tsx +++ b/src/calendar/calendar.tsx @@ -62,16 +62,20 @@ export default defineComponent({ return () => { const title = renderTNodeJSX('title'); const confirmBtn = renderTNodeJSX('confirmBtn'); + let newConfirmBtn = confirmBtn; + if (typeof confirmBtn === 'undefined') { + newConfirmBtn = null; + } return (