gpt4 book ai didi

angular - MatSidenav 和 MatDrawer 有什么区别?

转载 作者:行者123 更新时间:2023-12-03 15:02:23 24 4
gpt4 key购买 nike

它们可以在同一个文档页面上找到,但看起来是一样的。您知道从功能 Angular 来看的区别吗?使用一个比另一个有什么好处?

https://material.angular.io/components/sidenav/overview

首先感谢阅读。

最佳答案

documentation :

The sidenav components are designed to add side content to a fullscreen app.



VS

The drawer component is designed to add side content to a small section of your app.



^ 重点是我的

这两个组件之间的区别在于 sidenav 组件应该用于全局抽屉(例如 navigation drawer ),而抽屉组件应该用于特定于应用程序一小部分的内容(例如允许用户 filter files )。

关于angular - MatSidenav 和 MatDrawer 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61074330/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com