Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(drawer): 修复 width 和 height 类型不支持字符串问题 (#3013) #3016

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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