mirror of
https://github.com/wahyd4/ant-design.git
synced 2026-08-21 10:46:32 +10:00
dataSource clone config should not be overwrited by origin config, fix #200
This commit is contained in:
@@ -35,6 +35,7 @@ var dataSource = new Table.DataSource({
|
||||
resolve: function(result) {
|
||||
return result.data;
|
||||
},
|
||||
data: {},
|
||||
// 和后台接口返回的分页数据进行适配
|
||||
getPagination: function(result) {
|
||||
return {
|
||||
|
||||
@@ -31,7 +31,7 @@ class DataSource {
|
||||
}
|
||||
|
||||
clone(config = {}) {
|
||||
return new DataSource(objectAssign(config, this.config));
|
||||
return new DataSource(objectAssign({}, this.config, config));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user