mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 01:29:11 +08:00
21 lines
339 B
JavaScript
21 lines
339 B
JavaScript
import Menu from 'rc-menu';
|
|
import React from 'react';
|
|
|
|
const AntMenu = React.createClass({
|
|
getDefaultProps(){
|
|
return {
|
|
prefixCls: 'ant-menu'
|
|
};
|
|
},
|
|
|
|
render(){
|
|
return <Menu {...this.props}/>;
|
|
}
|
|
});
|
|
|
|
AntMenu.Divider = Menu.Divider;
|
|
AntMenu.Item = Menu.Item;
|
|
AntMenu.SubMenu = Menu.SubMenu;
|
|
|
|
export default AntMenu;
|