From 8f96c51614ed949fbee73a7025bd95011be20374 Mon Sep 17 00:00:00 2001 From: zwjamnsss Date: Thu, 17 Aug 2017 12:19:16 +0800 Subject: [PATCH] feat: col-menu --- .../InterfaceCol/InterfaceColMenu.js | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/client/containers/Project/Interface/InterfaceCol/InterfaceColMenu.js b/client/containers/Project/Interface/InterfaceCol/InterfaceColMenu.js index faa642db..b0c4ccf4 100644 --- a/client/containers/Project/Interface/InterfaceCol/InterfaceColMenu.js +++ b/client/containers/Project/Interface/InterfaceCol/InterfaceColMenu.js @@ -5,10 +5,10 @@ import PropTypes from 'prop-types' import { fetchInterfaceColList, fetchInterfaceCaseList } from '../../../../reducer/modules/interfaceCol' import { autobind } from 'core-decorators'; import axios from 'axios'; -import { Menu, Input, Icon, Tag, Modal, Row, Col, message, Tooltip } from 'antd'; +import { Input, Icon, Tag, Modal, Row, Col, message, Tooltip, Tree } from 'antd'; -const SubMenu = Menu.SubMenu; -const { TextArea } = Input; +const TextArea = Input.TextArea; +const TreeNode = Tree.TreeNode; @connect( state => { @@ -77,29 +77,29 @@ export default class InterfaceColMenu extends Component { this.setState({addColModalVisible: true})} > - { - this.props.interfaceColList.map((col, index) => ( - ( + {col.name}} - onTitleClick={(key, e) => this.selectCol(key, e, col)} > { - col.caseList && col.caseList.map((interfaceCase, index) => ( - {interfaceCase.name} + col.caseList && col.caseList.map((interfaceCase) => ( + )) } - + )) } - +