我如何在ReactJ中使用ANTD滑动其他组件
我是新手的反应,我有一个正在使用ANTD的抽屉组件的场景,而且效果很好,但是默认情况下,它打开了页面的弹出窗口(从顶部滑动),但是这里我的要求代替打开弹出窗口我想作为普通组件打开,并且具有切换按钮,如果关闭,则它会滑动(hide),如果切换在打开,则它会滑下,并且页面的其余部分也会滑动以使空间滑动为此。
请帮助我如何实现这一目标。
谢谢
I'm new to react and I have a scenario where I'm using Drawer component of antd, and it's working fine, but by default it open a popup (slide from top) of the page, but here my requirement is instead of open pop-up I want to open as normal component and it have toggle button, if it off then it get slide up(hide) and if toggle is on then it slide down, and rest of component of the page also slide down to make space for it.
Please help me how can I achieve this.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我想自定义ANTD抽屉会变得复杂。
您可以通过添加高度自动添加自定义抽屉,或者在抽屉时在PX中编写自定义抽屉,而当抽屉隐藏时,则可以编写0px
customising the antd drawer will get complex i guess.
you can write your custom drawer by adding height auto or in px when drawer is visible and 0px when drawer is hidden
这是我想要的,但是它没有抽屉解决方案,它对我有用。
Exactly this is what I want, but it is without Drawer Solution, It works for me.