ant-design/components/menu/index.jsx

21 lines
339 B
React
Raw Normal View History

2015-08-06 16:49:54 +08:00
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;