+6
-2
lines changedFilter options
+6
-2
lines changed Original file line number Diff line number Diff line change
@@ -83,6 +83,10 @@
83
83
},
84
84
mdSelectable () {
85
85
this.MdTable.selectingMode = this.mdSelectable
86
+
},
87
+
mdItem (after, before) {
88
+
this.removeSelectableItem(before)
89
+
this.$nextTick(this.addSelectableItem)
86
90
}
87
91
},
88
92
methods: {
@@ -121,12 +125,12 @@
121
125
122
126
this.MdTable.selectable.push(this.mdItem)
123
127
},
124
-
removeSelectableItem () {
128
+
removeSelectableItem (target = this.mdItem) {
125
129
if (!this.hasMultipleSelection) {
126
130
return
127
131
}
128
132
129
-
this.MdTable.selectable = this.MdTable.selectable.filter(item => item !== this.mdItem)
133
+
this.MdTable.selectable = this.MdTable.selectable.filter(item => item !== target)
130
134
}
131
135
},
132
136
created () {
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4