diff --git a/client/containers/Interface/Interface.js b/client/containers/Interface/Interface.js index 0a96066a..0cbb54df 100644 --- a/client/containers/Interface/Interface.js +++ b/client/containers/Interface/Interface.js @@ -8,7 +8,7 @@ import InterfaceTable from './InterfaceTable/InterfaceTable.js' import InterfaceMode from './InterfaceMode/InterfaceMode.js' import moment from 'moment' import { - fetchInterfaceData, + fetchInterfaceData, projectMember, closeProjectMember } from '../../actions/interfaceAction.js' diff --git a/client/containers/Interface/Interface.scss b/client/containers/Interface/Interface.scss index 7e451f49..892a521d 100644 --- a/client/containers/Interface/Interface.scss +++ b/client/containers/Interface/Interface.scss @@ -1,48 +1,19 @@ /* .interface-box.css */ .interface-box { max-width: 11rem; - display: -webkit-box; - -webkit-box-flex: 1; margin: 24px auto; border-radius: 4px; box-shadow: 0 2px 4px 0 rgba(0,0,0,0.20); - font-size: 0.14rem; background: #FFF; - - .interface-list { - width: 216px; - line-height: 45px; - background: #f9fafe; - - li { - padding: 0 0 0 30px; - color: #344562; - cursor: pointer; - - &:hover { - color: #29f; - } - - a { - color: #344562; - &:hover { - color: #29f; - } - } - } + overflow: hidden; + .interface-btngroup { + margin: .24rem .24rem 0; + } + .interface-btn { + margin-right: .16rem; } - .interface-table { - -webkit-box-flex: 1; - margin: 0 20px; - min-height: 740px; - .ant-table-wrapper table { - font-size: .14rem; - - button { - margin: 0 10px 0 0; - } - } + margin: .24rem; } } diff --git a/client/containers/Interface/InterfaceList/InterfaceList.js b/client/containers/Interface/InterfaceList/InterfaceList.js index b0720f50..8d278db9 100644 --- a/client/containers/Interface/InterfaceList/InterfaceList.js +++ b/client/containers/Interface/InterfaceList/InterfaceList.js @@ -1,6 +1,7 @@ import React, { Component } from 'react' import PropTypes from 'prop-types' import { Link } from 'react-router-dom' +import { Button } from 'antd' class InterfaceList extends Component { static propTypes = { @@ -23,10 +24,10 @@ class InterfaceList extends Component { const getInterfaceId = this.getInterfaceId() console.log(`/AddInterface/${getInterfaceId}`) return ( - +
+ + +
) } } diff --git a/client/containers/Interface/InterfaceTable/InterfaceTable.js b/client/containers/Interface/InterfaceTable/InterfaceTable.js index b1b73066..15ee1acd 100644 --- a/client/containers/Interface/InterfaceTable/InterfaceTable.js +++ b/client/containers/Interface/InterfaceTable/InterfaceTable.js @@ -72,13 +72,11 @@ class InterfaceTable extends Component { const deleteInterface = this.deleteInterface.bind(this, data._id) return ( - - - + 编辑 + + 测试 + + 删除 ) } @@ -88,7 +86,7 @@ class InterfaceTable extends Component { return (
- +
) }