mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-05-20 13:01:52 +00:00
parent
7a8d15b3b4
commit
9a80a37609
1 changed files with 6 additions and 5 deletions
|
|
@ -40,6 +40,12 @@
|
|||
};
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
mdItem(newValue, oldValue) {
|
||||
this.parentTable.data[this.index] = this.mdItem;
|
||||
this.handleMultipleSelection(newValue === oldValue);
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
setSelectedRow(value, index) {
|
||||
if (value) {
|
||||
|
|
@ -94,11 +100,6 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
data() {
|
||||
this.parentTable.data[this.index] = this.item;
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.parentTable = getClosestVueParent(this.$parent, 'md-table');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue