Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (menuMode !== 'inline') {
// closing vertical popup submenu after click it
menuProps.onClick = this.handleClick;
menuProps.openTransitionName = menuOpenAnimation;
} else {
menuProps.openAnimation = menuOpenAnimation;
}
return _react2['default'].createElement(_rcMenu2['default'], (0, _extends3['default'])({}, this.props, menuProps));
}
}]);
return Menu;
}(_react2['default'].Component);
exports['default'] = Menu;
Menu.Divider = _rcMenu.Divider;
Menu.Item = _MenuItem2['default'];
Menu.SubMenu = _rcMenu.SubMenu;
Menu.ItemGroup = _rcMenu.ItemGroup;
Menu.defaultProps = {
prefixCls: 'ant-menu',
className: '',
theme: 'light'
};
Menu.childContextTypes = {
inlineCollapsed: _propTypes2['default'].bool
};
Menu.contextTypes = {
siderCollapsed: _propTypes2['default'].bool
};
module.exports = exports['default'];
if (menuMode !== 'inline') {
// closing vertical popup submenu after click it
menuProps.onClick = this.handleClick;
menuProps.openTransitionName = menuOpenAnimation;
} else {
menuProps.openAnimation = menuOpenAnimation;
}
return _react2['default'].createElement(_rcMenu2['default'], (0, _extends3['default'])({}, this.props, menuProps));
}
}]);
return Menu;
}(_react2['default'].Component);
exports['default'] = Menu;
Menu.Divider = _rcMenu.Divider;
Menu.Item = _MenuItem2['default'];
Menu.SubMenu = _rcMenu.SubMenu;
Menu.ItemGroup = _rcMenu.ItemGroup;
Menu.defaultProps = {
prefixCls: 'ant-menu',
className: '',
theme: 'light'
};
Menu.childContextTypes = {
inlineCollapsed: _propTypes2['default'].bool
};
Menu.contextTypes = {
siderCollapsed: _propTypes2['default'].bool
};
module.exports = exports['default'];
value: function renderMenubar() {
var menu = _react2.default.createElement(
_rcMenu2.default,
{ selectable: false, onClick: this.HelpMenuClick },
_react2.default.createElement(
_rcMenu.Item,
{ key: '0' },
'\u952E\u76D8\u5FEB\u6377\u952E'
),
_react2.default.createElement(_rcMenu.Divider, null),
this.props.helpOptions.map(function (item) {
return _react2.default.createElement(
_rcMenu.Item,
{ key: item.key },
item.content
);
})
);
var fileMenu = _react2.default.createElement(
_rcMenu2.default,
{ selectable: false, onClick: this.fileMenuClick },
this.props.fileOptions.map(function (item) {
return _react2.default.createElement(
_rcMenu.Item,
{ key: item.key },
item.content
);
})
);
var fileMenu = _react2.default.createElement(
_rcMenu2.default,
{ selectable: false, onClick: this.fileMenuClick },
this.props.fileOptions.map(function (item) {
return _react2.default.createElement(
_rcMenu.Item,
{ key: item.key },
item.content
);
}),
_react2.default.createElement(_rcMenu.Divider, null),
_react2.default.createElement(
_rcMenu.Item,
{ key: '0' },
'\u6253\u5370'
)
);
var _state = this.state,
panel = _state.panel,
panelType = _state.panelType;
return _react2.default.createElement(
'div',
{ className: 'menu-bar' },
_react2.default.createElement(
_rcDropdown2.default,