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

Table: multiple selection mode failure

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