From 06ee986e181e6e8094c29928b79afc12c557768b Mon Sep 17 00:00:00 2001 From: GaoJiuJiu <33615481+GaoJiuJiu@users.noreply.github.com> Date: Wed, 16 Oct 2024 15:29:32 +0800 Subject: [PATCH] feat: fix calendar confirmBtn when value is null (#1621) * feat: fix calendar confirmBtn when value is null * chore: simplify --------- Co-authored-by: anlyyao --- src/calendar/calendar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 (
{!props.usePopup ? (