Skip to content

Commit

Permalink
fix(drawer): 修复 width 和 height 类型不支持字符串问题 (#3013) (#3016)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyprepare authored Oct 17, 2024
1 parent 93ff5b4 commit 5784cff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/fifty-snakes-invent.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): 修复 width 和 height 类型不支持字符串问题 (#3013)
4 changes: 2 additions & 2 deletions packages/ui/drawer/src/Drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@ export interface DrawerProps extends Omit<HiBaseHTMLProps<'div'>, 'title'>, UseM
/**
* 自定义抽屉宽度,仅在 placement="left" | "right" 有效
*/
width?: number
width?: number | string
/**
* 自定义抽屉高度,仅在 placement="bottom" | "top" 有效
*/
height?: number
height?: number | string
/**
* 自定义css展示层级
*/
Expand Down

0 comments on commit 5784cff

Please sign in to comment.