dataSource clone config should not be overwrited by origin config, fix #200

This commit is contained in:
afc163
2015-08-26 14:08:46 +08:00
parent 3a843f3829
commit 38cbaf1239
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -35,6 +35,7 @@ var dataSource = new Table.DataSource({
resolve: function(result) {
return result.data;
},
data: {},
// 和后台接口返回的分页数据进行适配
getPagination: function(result) {
return {
+1 -1
View File
@@ -31,7 +31,7 @@ class DataSource {
}
clone(config = {}) {
return new DataSource(objectAssign(config, this.config));
return new DataSource(objectAssign({}, this.config, config));
}
}