Table: multiple selection mode failure

pull/2/head
qingwei.li 2016-08-25 14:47:39 +08:00
parent 6eaa9ef545
commit 7bdda0b994
1 changed files with 5 additions and 5 deletions

View File

@ -370,7 +370,11 @@
},
data(val) {
this.tableData = val;
if (val && this.selectionMode === 'multiple') {
this.tableData = val.map(item => objectAssign({ '$selected': false }, item));
} else {
this.tableData = val;
}
},
tableData(newVal) {
@ -398,10 +402,6 @@
this.styleNode = styleNode;
if (this.tableData && this.selectionMode === 'multiple') {
this.tableData = this.tableData.map(item => objectAssign({ '$selected': false }, item));
}
this.doRender();
this.$ready = true;