Skip to content

Commit

Permalink
feat(drawer): 支持自定义zIndex功能 (XiaoMi#2851)
Browse files Browse the repository at this point in the history
* feat(drawer): 支持自定义zIndex功能(XiaoMi#2850)

* chore(drawer): 生成变更记录文件

* chore: 修改container类型

---------

Co-authored-by: xiamiao <[email protected]>
  • Loading branch information
2 people authored and yangxuexue committed Jun 28, 2024
1 parent 2a4f05b commit 4ee0b8f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/strong-dragons-ring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hi-ui/drawer": minor
---

feat: 支持自定义 zIndex 功能
5 changes: 5 additions & 0 deletions .changeset/yellow-bats-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hi-ui/hiui": patch
---

feat(drawer): 支持自定义 zIndex 功能
6 changes: 5 additions & 1 deletion packages/ui/drawer/src/Drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ export interface DrawerProps extends Omit<HiBaseHTMLProps<'div'>, 'title'>, UseM
* 自定义抽屉高度,仅在 placement="bottom" | "top" 有效
*/
height?: number
/**
* 自定义css展示层级
*/
zIndex?: number
/**
* 开启预加载渲染,用于性能优化,优先级小于 `unmountOnClose`
*/
Expand All @@ -182,7 +186,7 @@ export interface DrawerProps extends Omit<HiBaseHTMLProps<'div'>, 'title'>, UseM
/**
* 指定 portal 的容器
*/
container?: HTMLElement
container?: HTMLElement | null
/**
* 设置唤起的方向
*/
Expand Down

0 comments on commit 4ee0b8f

Please sign in to comment.