mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-21 05:19:42 +08:00
fix: 修改添加分组处最小宽度以及添加分组的描述框为textarea
This commit is contained in:
parent
7cf0d94c55
commit
60ae8e073f
@ -21,10 +21,12 @@ export function fetchNewsData (uid,page,limit) {
|
||||
page: page,
|
||||
limit: variable.PAGE_LIMIT?variable.PAGE_LIMIT:limit
|
||||
}
|
||||
console.log(param);
|
||||
// console.log(param);
|
||||
return {
|
||||
type: FETCH_NEWS_DATA,
|
||||
payload: axios.get('/log/list',param)
|
||||
payload: axios.get('/log/list',{
|
||||
params: param
|
||||
})
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,7 @@ class News extends Component {
|
||||
}
|
||||
componentWillMount(){
|
||||
console.log(this.props.uid);
|
||||
this.props.fetchNewsData(1,1,10).then(function(data){
|
||||
this.props.fetchNewsData(107,1,10).then(function(data){
|
||||
console.log(data);
|
||||
})
|
||||
}
|
||||
|
@ -5,6 +5,7 @@ import { Button, Icon, Modal, Input, message, Menu, Row, Col } from 'antd'
|
||||
import { autobind } from 'core-decorators';
|
||||
import axios from 'axios';
|
||||
|
||||
const { TextArea } = Input;
|
||||
const Search = Input.Search;
|
||||
const confirm = Modal.confirm;
|
||||
const TYPE_EDIT = 'edit';
|
||||
@ -229,7 +230,7 @@ export default class GroupList extends Component {
|
||||
<Row gutter={6} className="modal-input">
|
||||
<Col span="5"><div className="label">简介:</div></Col>
|
||||
<Col span="15">
|
||||
<Input placeholder="请输入分组描述" onChange={this.inputNewGroupDesc}></Input>
|
||||
<TextArea rows = {3} placeholder="请输入分组描述" onChange={this.inputNewGroupDesc}></TextArea>
|
||||
</Col>
|
||||
</Row>
|
||||
</Modal>
|
||||
|
@ -23,6 +23,7 @@
|
||||
}
|
||||
.group-operate {
|
||||
height: 48px;
|
||||
min-width: 263px;
|
||||
padding: 10px 6px;
|
||||
background: #fff;
|
||||
.search {
|
||||
|
Loading…
Reference in New Issue
Block a user