Material ui 抽屉展示风格
我查看了文档,没有找到定义抽屉显示样式的属性z索引:在AppBar的上方/下方?有什么快速的方法吗? Thx,给你:Material ui 抽屉展示风格,material-ui,drawer,Material Ui,Drawer,我查看了文档,没有找到定义抽屉显示样式的属性z索引:在AppBar的上方/下方?有什么快速的方法吗? Thx,给你: <Drawer containerStyle={{zIndex: 1000}} > 对于某些z索引!=应用程序栏的您可以使用ThemeProvider在应用程序的顶层设置抽屉和应用程序栏的样式。有一个zIndex属性描述不同组件的这些值 import { ThemeProvider } from "@material-ui/styles"; import { c
<Drawer
containerStyle={{zIndex: 1000}}
>
对于某些z索引!=应用程序栏的您可以使用ThemeProvider在应用程序的顶层设置抽屉和应用程序栏的样式。有一个zIndex属性描述不同组件的这些值
import { ThemeProvider } from "@material-ui/styles";
import { createMuiTheme } from "@material-ui/core/styles";
const customTheme = createMuiTheme({
zIndex: {
appBar: 1100,
drawer: 1200
}
});
// Then, wrap your app with a ThemeProvider
<ThemeProvider theme={customTheme}>
<App />
</ThemeProvider>