import React from 'react'; import { Menu, Icon } from 'antd'; import '../leftTab.less'; import './content.less'; import '../content.less'; const SubMenu = Menu.SubMenu; const MenuItemGroup = Menu.ItemGroup; const LeftTab = React.createClass({ getInitialState() { return { current: 'member', subKey: 'sub1', keyList: [ { key: 'sub1', value: ['member','permission','role','site'] }, { key: 'sub2', value: ['organization'] }, { key: 'sub3', value: ['businessCategory', 'businessProject'] }, { key: 'sub4', value: ['user','roles','jurisdiction'] }, ] }; }, handleClick(e) { this.props.handlekey(e.key); this.setState({ current: e.key, }); }, componentWillMount(){ if ( window.location.hash ) { this.state.current = window.location.hash.substr(1); }; }, render() { return (
); } }); export default LeftTab;