@afeefa/vue-app 0.0.228 → 0.0.230
Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.230
|
package/package.json
CHANGED
@@ -61,7 +61,7 @@
|
|
61
61
|
:value="isSelected(model)"
|
62
62
|
hide-details
|
63
63
|
class="pa-0"
|
64
|
-
@input="
|
64
|
+
@input="selectModel(model)"
|
65
65
|
/>
|
66
66
|
</div>
|
67
67
|
|
@@ -210,12 +210,22 @@ export default class ListView extends Mixins(ListViewMixin) {
|
|
210
210
|
return this.selectedModels.includes(model)
|
211
211
|
}
|
212
212
|
|
213
|
-
|
213
|
+
deselectAll () {
|
214
|
+
this.selectedModels = []
|
215
|
+
this.$emit('update:selectedModels', this.selectedModels)
|
216
|
+
}
|
217
|
+
|
218
|
+
selectModel (model) {
|
214
219
|
if (!this.isSelected(model)) {
|
215
220
|
this.selectedModels.push(model)
|
216
221
|
} else {
|
217
222
|
this.selectedModels = this.selectedModels.filter(m => m !== model)
|
218
223
|
}
|
224
|
+
this.$emit('update:selectedModels', this.selectedModels)
|
225
|
+
}
|
226
|
+
|
227
|
+
_listLoaded () {
|
228
|
+
this.deselectAll()
|
219
229
|
}
|
220
230
|
|
221
231
|
@Watch('isLoading')
|