Skip to content

Commit

Permalink
fix(Dialog): compatible "header === 0" special case
Browse files Browse the repository at this point in the history
  • Loading branch information
ylunwang committed Dec 17, 2024
1 parent 8e64dea commit 4280f42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dialog/dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ export default defineComponent({
v-draggable={isModeLess.value && props.draggable}
ref={dialogEle}
>
{(headerContent || props.closeBtn) && (
{(headerContent || headerContent === 0 || props.closeBtn) && (
<div class={headerClassName} onMousedown={onStopDown}>
<div class={`${COMPONENT_NAME.value}__header-content`}>
{getIcon()}
Expand Down

0 comments on commit 4280f42

Please sign in to comment.