|
|
|
@ -152,9 +152,7 @@ let AntTable = React.createClass({
|
|
|
|
|
sorter,
|
|
|
|
|
};
|
|
|
|
|
this.setState(newState);
|
|
|
|
|
this.props.onChange.apply(this, this.prepareParamsArguments(
|
|
|
|
|
objectAssign({}, this.state, newState)
|
|
|
|
|
));
|
|
|
|
|
this.props.onChange(this.prepareParamsArguments({ ...this.state, ...newState }));
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
handleFilter(column, nextFilters) {
|
|
|
|
@ -174,9 +172,7 @@ let AntTable = React.createClass({
|
|
|
|
|
};
|
|
|
|
|
this.setState(newState);
|
|
|
|
|
this.setSelectedRowKeys([]);
|
|
|
|
|
this.props.onChange.apply(this, this.prepareParamsArguments(
|
|
|
|
|
objectAssign({}, this.state, newState)
|
|
|
|
|
));
|
|
|
|
|
this.props.onChange(this.prepareParamsArguments({ ...this.state, ...newState }));
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
handleSelect(record, rowIndex, e) {
|
|
|
|
@ -278,9 +274,7 @@ let AntTable = React.createClass({
|
|
|
|
|
pagination
|
|
|
|
|
};
|
|
|
|
|
this.setState(newState);
|
|
|
|
|
this.props.onChange.apply(this, this.prepareParamsArguments(
|
|
|
|
|
objectAssign({}, this.state, newState)
|
|
|
|
|
));
|
|
|
|
|
this.props.onChange(this.prepareParamsArguments({ ...this.state, ...newState }));
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
onRadioChange(ev) {
|
|
|
|
@ -459,11 +453,12 @@ let AntTable = React.createClass({
|
|
|
|
|
handleShowSizeChange(current, pageSize) {
|
|
|
|
|
const pagination = this.state.pagination;
|
|
|
|
|
pagination.onShowSizeChange(current, pageSize);
|
|
|
|
|
|
|
|
|
|
let nextPagination = objectAssign(pagination, {
|
|
|
|
|
pageSize,
|
|
|
|
|
});
|
|
|
|
|
const nextPagination = { ...pagination, pageSize };
|
|
|
|
|
this.setState({ pagination: nextPagination });
|
|
|
|
|
this.props.onChange(this.prepareParamsArguments({
|
|
|
|
|
...this.state,
|
|
|
|
|
pagination: nextPagination,
|
|
|
|
|
}));
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
renderPagination() {
|
|
|
|
|