Skip to content

Commit

Permalink
修复菜单栏右侧多了个0。
Browse files Browse the repository at this point in the history
  • Loading branch information
tengge1 committed Sep 8, 2019
1 parent c4d527a commit 739ae2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ShadowEditor.Web/src/ui/menu/MenuItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ class MenuItem extends React.Component {
render() {
const { title, className, style, children, show, disabled, onClick } = this.props;

const subMenu = React.Children.count(children) && <><div className={'suffix'}>
const subMenu = React.Children.count(children) ? <><div className={'suffix'}>
<i className={'iconfont icon-right-triangle'}></i>
</div>
<div className={'sub'}>
<ul className={'wrap'}>{children}</ul>
</div></>;
</div></> : null;

return <li
className={classNames('MenuItem', disabled && 'disabled', !show && 'hidden', className)}
Expand Down

0 comments on commit 739ae2b

Please sign in to comment.