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

pull/201/head
afc163 10 years ago
parent 3a843f3829
commit 38cbaf1239

@ -35,6 +35,7 @@ var dataSource = new Table.DataSource({
resolve: function(result) { resolve: function(result) {
return result.data; return result.data;
}, },
data: {},
// 和后台接口返回的分页数据进行适配 // 和后台接口返回的分页数据进行适配
getPagination: function(result) { getPagination: function(result) {
return { return {

@ -31,7 +31,7 @@ class DataSource {
} }
clone(config = {}) { clone(config = {}) {
return new DataSource(objectAssign(config, this.config)); return new DataSource(objectAssign({}, this.config, config));
} }
} }

Loading…
Cancel
Save