1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +00:00

01 notification more icon (#6551)

02 change trash mobile

03 mobile menu
This commit is contained in:
Michael An
2024-08-14 12:20:57 +08:00
committed by GitHub
parent a85f482d4a
commit 16186b2a8b
7 changed files with 30 additions and 9 deletions

View File

@@ -16,12 +16,14 @@ const propTypes = {
onMenuItemClick: PropTypes.func.isRequired,
freezeItem: PropTypes.func,
unfreezeItem: PropTypes.func,
menuStyle: PropTypes.object,
};
class ItemDropdownMenu extends React.Component {
static defaultProps = {
isHandleContextMenuEvent: true,
menuStyle: {},
toggleClass: 'sf3-font-more sf3-font'
};
@@ -109,7 +111,7 @@ class ItemDropdownMenu extends React.Component {
render() {
let menuList = this.state.menuList;
let { toggleClass, toggleChildren, tagName } = this.props;
let { toggleClass, toggleChildren, tagName, menuStyle } = this.props;
toggleClass = 'sf-dropdown-toggle ' + toggleClass;
if (!menuList.length) {
@@ -160,7 +162,7 @@ class ItemDropdownMenu extends React.Component {
// onClick={this.onDropdownToggleClick}
/>
<ModalPortal>
<DropdownMenu>
<DropdownMenu style={menuStyle}>
{menuList.map((menuItem, index) => {
if (menuItem === 'Divider') {
return <DropdownItem key={index} divider />;