mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 18:09:22 +08:00
21 lines
339 B
React
21 lines
339 B
React
|
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;
|