From 4280f42ff82ac13b0c43a310a4f5f5e31317e228 Mon Sep 17 00:00:00 2001 From: Ylun Wang Date: Tue, 17 Dec 2024 18:22:33 +0800 Subject: [PATCH] fix(Dialog): compatible "header === 0" special case --- src/dialog/dialog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dialog/dialog.tsx b/src/dialog/dialog.tsx index 28777061c3..1503c33ffc 100644 --- a/src/dialog/dialog.tsx +++ b/src/dialog/dialog.tsx @@ -377,7 +377,7 @@ export default defineComponent({ v-draggable={isModeLess.value && props.draggable} ref={dialogEle} > - {(headerContent || props.closeBtn) && ( + {(headerContent || headerContent === 0 || props.closeBtn) && (
{getIcon()}