Commit 7bdda0b9 authored by qingwei.li's avatar qingwei.li

Table: multiple selection mode failure

parent 6eaa9ef5
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment