import React from 'react'; import { Menu, Icon } from 'antd'; import '../leftTab.less'; const SubMenu = Menu.SubMenu; const MenuItemGroup = Menu.ItemGroup; const LeftTab = React.createClass({ getInitialState() { return { current: 'group', }; }, 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;