Skip to content

Commit

Permalink
fix(drawer): 修复局部显示中设置 showMask={false} 后显示异常问题 (#3080) (#3081)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyprepare authored Jan 17, 2025
1 parent 30f90d9 commit a8a4a7e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/purple-ligers-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@hi-ui/drawer": patch
"@hi-ui/hiui": patch
---

fix(drawer): 修复局部显示中设置 showMask={false} 后显示异常问题 (#3080)
2 changes: 2 additions & 0 deletions packages/ui/drawer/src/Drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,11 @@ export const Drawer = forwardRef<HTMLDivElement | null, DrawerProps>(
style:
placement === 'left' || placement === 'right'
? {
...modalProps.style,
[`${getPrefixStyleVar('drawer-body-width')}`]: bodyWidth ?? '404px',
}
: {
...modalProps.style,
[`${getPrefixStyleVar('drawer-body-height')}`]: bodyHeight ?? '404px',
},
})}
Expand Down

0 comments on commit a8a4a7e

Please sign in to comment.