Merge branch 'devlop' of http://47.97.1.152:5880/r/wms-master into devlop
| | |
| | | primaryText={node.name} |
| | | leftIcon={getIcon(node.icon)} |
| | | dense={dense} |
| | | sx={{ '& .RaMenuItemLink-icon': { visibility: 'hidden', minWidth: '24px' } }} |
| | | // sx={{ '& .RaMenuItemLink-icon': { visibility: 'hidden' } }} |
| | | /> |
| | | ); |
| | | } |
| | |
| | | import * as React from 'react'; |
| | | import { ReactElement, ReactNode } from 'react'; |
| | | import { |
| | | Box, |
| | | List, |
| | | MenuItem, |
| | | ListItemIcon, |
| | |
| | | const [sidebarIsOpen] = useSidebarState(); |
| | | |
| | | const header = ( |
| | | <MenuItem dense={dense} onClick={handleToggle} sx={{ display: 'flex', alignItems: 'center' }}> |
| | | <ListItemIcon sx={{ minWidth: 40, color: 'text.secondary', display: 'flex', alignItems: 'center' }}> |
| | | {icon ? icon : isOpen ? <KeyboardArrowDownIcon /> : <KeyboardArrowRightIcon />} |
| | | </ListItemIcon> |
| | | <Typography variant="inherit" color="textSecondary" sx={{ ml: 1, display: 'flex', alignItems: 'center' }}> |
| | | {translate(name)} |
| | | </Typography> |
| | | <MenuItem dense={dense} onClick={handleToggle} sx={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}> |
| | | <Box sx={{ display: 'flex', alignItems: 'center', flex: 1 }}> |
| | | <ListItemIcon sx={{ minWidth: 40, color: 'text.secondary', display: 'flex', alignItems: 'center' }}> |
| | | {icon} |
| | | </ListItemIcon> |
| | | <Typography variant="inherit" color="textSecondary" sx={{ ml: 1, display: 'flex', alignItems: 'center' }}> |
| | | {translate(name)} |
| | | </Typography> |
| | | </Box> |
| | | <Box sx={{ display: 'flex', alignItems: 'center', minWidth: 24 }}> |
| | | {isOpen ? <KeyboardArrowDownIcon fontSize="small" sx={{color: 'text.secondary'}} /> : <KeyboardArrowRightIcon fontSize="small" sx={{color: 'text.secondary'}} />} |
| | | </Box> |
| | | </MenuItem> |
| | | ); |
| | | |
| | |
| | | dense={dense} |
| | | component="div" |
| | | disablePadding |
| | | sx={{ |
| | | '& .MuiTypography-root': { |
| | | visibility: 'hidden' |
| | | }, |
| | | |
| | | '& .MuiMenuItem-root': { |
| | | transition: |
| | | 'padding-left 195ms cubic-bezier(0.4, 0, 0.6, 1) 0ms', |
| | | paddingLeft: theme => |
| | | sidebarIsOpen |
| | | ? theme.spacing(4) |
| | | : theme.spacing(2), |
| | | }, |
| | | }} |
| | | // sx={{ |
| | | // '& .MuiMenuItem-root': { |
| | | // transition: |
| | | // 'padding-left 195ms cubic-bezier(0.4, 0, 0.6, 1) 0ms', |
| | | // paddingLeft: theme => |
| | | // sidebarIsOpen |
| | | // ? theme.spacing(4) |
| | | // : theme.spacing(2), |
| | | // }, |
| | | // // 显示二级菜单的icon |
| | | // '& .RaMenuItemLink-icon': { |
| | | // visibility: 'visible !important', |
| | | // minWidth: '24px' |
| | | // } |
| | | // }} |
| | | > |
| | | {children} |
| | | </List> |
| | |
| | | <DateField source="createTime" label="common.field.createTime" showTime /> |
| | | <BooleanField source="statusBool" label="common.field.status" sortable={false} /> |
| | | <TextField source="memo" label="common.field.memo" sortable={false} /> |
| | | <WrapperField cellClassName="opt" label="common.field.opt"> |
| | | {/* <WrapperField cellClassName="opt" label="common.field.opt"> |
| | | <Button label="ra.action.edit" onClick={(id, resource, record) => { |
| | | setEditDialog(true) |
| | | setSelect(record) |
| | | }} /> |
| | | <DeleteButton sx={{ padding: '1px', fontSize: '.75rem' }} mutationMode={OPERATE_MODE} /> |
| | | </WrapperField> |
| | | </WrapperField> */} |
| | | </StyledDatagrid> |
| | | </List> |
| | | <PurchaseItemEdit |