material-ui

Material UI Date Time Picker example

一个人想着一个人 提交于 2021-02-10 05:28:20
问题 I am trying to understand the Material UI Date Time Picker. The problem is that the given example on Codesandbox leads to errors, because the following import cannot be found: import DateFnsUtils from '@date-io/date-fns'; I already have tried unsuccessfully to get rid of that error in several tests. My guess is that it imports a corrupt version from npm . Hence, I believe it must be one of the following packages within the package.json : "date-fns": "next", "@types/date-ioDate-fns": "latest",

Material UI Date Time Picker example

房东的猫 提交于 2021-02-10 05:27:06
问题 I am trying to understand the Material UI Date Time Picker. The problem is that the given example on Codesandbox leads to errors, because the following import cannot be found: import DateFnsUtils from '@date-io/date-fns'; I already have tried unsuccessfully to get rid of that error in several tests. My guess is that it imports a corrupt version from npm . Hence, I believe it must be one of the following packages within the package.json : "date-fns": "next", "@types/date-ioDate-fns": "latest",

How to set the zIndex on the drawer component

泄露秘密 提交于 2021-02-10 05:26:16
问题 I am trying to acheive the clipped under the app bar style temporary drawer. But I can't seem to be able to set the z index on the temporary drawer. The temporary drawer in material-ui has the z-index of the modal component which is 1300 as mentioned in the issue I raised here https://github.com/mui-org/material-ui/issues/22562. So, if I use the approach given in the documentation of setting the appbar zIndex to theme.zIndex.modal + 1 , I can get the 'clipped under the app bar` effect. But

Material UI / Webpack / React - the className optimization/minification in production mode

我与影子孤独终老i 提交于 2021-02-09 07:23:28
问题 webpack - v4+ material ui - v4.9.6 react - v16.12.0 In a normal way all classes should be as the last one from the first example. In some reason on production mode, many of the classes do not change. Any idea? Example 1: <div class="MuiDrawer-root MuiDrawer-docked jss408"></div> Example 2: <div class="MuiPaper-root jss469 MuiPaper-elevation1 MuiPaper-rounded"></div> 回答1: styles className is not designed as deterministic in prod mode. But the generated class names of the @material-ui/core

How to make a drop-down menu appear exactly below the bar in Material-UI?

六眼飞鱼酱① 提交于 2021-02-08 18:48:01
问题 I created a drop-down menu by using Material-UI, and I found one thing annoying: I want to let my drop-down menu appear under the bar when I click it, but every time it just covers the bar (as the image below) Is there any way I can do to let the drop-down menu appear below the bar? (not covering the Your order label and the number) My codes are as below: I try to modify the anchorOrigin property and transformOrigin property but it didn't work. <Menu id="order-menu" anchorEl={anchorEl}

How to make a drop-down menu appear exactly below the bar in Material-UI?

倖福魔咒の 提交于 2021-02-08 18:41:56
问题 I created a drop-down menu by using Material-UI, and I found one thing annoying: I want to let my drop-down menu appear under the bar when I click it, but every time it just covers the bar (as the image below) Is there any way I can do to let the drop-down menu appear below the bar? (not covering the Your order label and the number) My codes are as below: I try to modify the anchorOrigin property and transformOrigin property but it didn't work. <Menu id="order-menu" anchorEl={anchorEl}

How to make a drop-down menu appear exactly below the bar in Material-UI?

旧城冷巷雨未停 提交于 2021-02-08 18:41:12
问题 I created a drop-down menu by using Material-UI, and I found one thing annoying: I want to let my drop-down menu appear under the bar when I click it, but every time it just covers the bar (as the image below) Is there any way I can do to let the drop-down menu appear below the bar? (not covering the Your order label and the number) My codes are as below: I try to modify the anchorOrigin property and transformOrigin property but it didn't work. <Menu id="order-menu" anchorEl={anchorEl}

How to make a drop-down menu appear exactly below the bar in Material-UI?

守給你的承諾、 提交于 2021-02-08 18:37:35
问题 I created a drop-down menu by using Material-UI, and I found one thing annoying: I want to let my drop-down menu appear under the bar when I click it, but every time it just covers the bar (as the image below) Is there any way I can do to let the drop-down menu appear below the bar? (not covering the Your order label and the number) My codes are as below: I try to modify the anchorOrigin property and transformOrigin property but it didn't work. <Menu id="order-menu" anchorEl={anchorEl}

How to make a drop-down menu appear exactly below the bar in Material-UI?

痴心易碎 提交于 2021-02-08 18:37:03
问题 I created a drop-down menu by using Material-UI, and I found one thing annoying: I want to let my drop-down menu appear under the bar when I click it, but every time it just covers the bar (as the image below) Is there any way I can do to let the drop-down menu appear below the bar? (not covering the Your order label and the number) My codes are as below: I try to modify the anchorOrigin property and transformOrigin property but it didn't work. <Menu id="order-menu" anchorEl={anchorEl}

How to make a drop-down menu appear exactly below the bar in Material-UI?

假如想象 提交于 2021-02-08 18:36:16
问题 I created a drop-down menu by using Material-UI, and I found one thing annoying: I want to let my drop-down menu appear under the bar when I click it, but every time it just covers the bar (as the image below) Is there any way I can do to let the drop-down menu appear below the bar? (not covering the Your order label and the number) My codes are as below: I try to modify the anchorOrigin property and transformOrigin property but it didn't work. <Menu id="order-menu" anchorEl={anchorEl}