mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-21 05:19:42 +08:00
opti: 样式修改
This commit is contained in:
parent
9435ec127e
commit
c5da772403
@ -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%;
|
||||||
}
|
}
|
||||||
|
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user