mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
22 lines
550 B
JavaScript
22 lines
550 B
JavaScript
import classNames from 'classnames/bind';
|
|
|
|
/**
|
|
* 菜单栏
|
|
* @author tengge / https://github.com/tengge1
|
|
* @property {String} className 样式类
|
|
* @property {Object} style 样式
|
|
* @property {String} children 内容
|
|
*/
|
|
class MenuBar extends React.Component {
|
|
render() {
|
|
const { className, style, children } = this.props;
|
|
|
|
return <div className={classNames('MenuBar', className)} style={style}>
|
|
<ul className="header">
|
|
{children}
|
|
</ul>
|
|
</div>;
|
|
}
|
|
}
|
|
|
|
export default MenuBar; |