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

Drawer 多层抽屉在代码嵌套情况下,提供一种方式能使其弹出时不嵌套 #48345

Closed
linxianxi opened this issue Apr 9, 2024 · 2 comments

Comments

@linxianxi
Copy link
Contributor

Reproduction link

https://ant.design/components/drawer-cn#drawer-demo-multi-level-drawer

Steps to reproduce

弹出

What is expected?

可以互不影响

What is actually happening?

嵌套弹出

Environment Info
antd 5.16.1
React latest
System mac
Browser chrome

有些情况父组件和子组件内都有 Drawer,就会出现代码中嵌套 Drawer 的情况,但视觉上并不需要这个效果

@linxianxi
Copy link
Contributor Author

linxianxi commented Apr 9, 2024

发现有 push 属性可以实现,但是如果能加在子抽屉上就好了。

@crazyair
Copy link
Member

crazyair commented Apr 9, 2024

<Drawer/>  1
<Drawer/> 2

我是不嵌套的 Drawer,就不会被 push

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants