opti: 样式修改

This commit is contained in:
wenbo.dong 2017-07-19 15:02:51 +08:00
parent 9435ec127e
commit c5da772403
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,10 @@
.m-container{
background-color: #fff;
padding: 16px 24px;
box-shadow: 0 2px 4px 0 rgba(0,0,0,0.20);
border-radius: 4px;
}
.ant-input-group-wrapper { .ant-input-group-wrapper {
width: 100%; width: 100%;
} }

View File

@ -152,9 +152,6 @@ class ProjectList extends Component {
componentWillReceiveProps(nextProps){ componentWillReceiveProps(nextProps){
// 切换分组 // 切换分组
if (this.props.currGroup !== nextProps.currGroup) { if (this.props.currGroup !== nextProps.currGroup) {
// const param = {
// group_id: nextProps.currGroup._id
// };
this.props.fetchProjectList(nextProps.currGroup._id).then((res) => { this.props.fetchProjectList(nextProps.currGroup._id).then((res) => {
if (res.payload.data.errcode) { if (res.payload.data.errcode) {
message.error(res.payload.data.errmsg); message.error(res.payload.data.errmsg);
@ -182,7 +179,7 @@ class ProjectList extends Component {
render() { render() {
const { getFieldDecorator } = this.props.form; const { getFieldDecorator } = this.props.form;
return ( return (
<div> <div className="m-container">
<Modal <Modal
title="创建项目" title="创建项目"
visible={this.state.visible} visible={this.state.visible}