@afeefa/vue-app 0.0.228 → 0.0.229
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.229
|
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,18 @@ export default class ListView extends Mixins(ListViewMixin) {
|
|
210
210
|
return this.selectedModels.includes(model)
|
211
211
|
}
|
212
212
|
|
213
|
-
|
213
|
+
selectModel (model) {
|
214
214
|
if (!this.isSelected(model)) {
|
215
215
|
this.selectedModels.push(model)
|
216
216
|
} else {
|
217
217
|
this.selectedModels = this.selectedModels.filter(m => m !== model)
|
218
218
|
}
|
219
|
+
this.$emit('update:selectedModels', this.selectedModels)
|
220
|
+
}
|
221
|
+
|
222
|
+
_listLoaded () {
|
223
|
+
this.selectedModels = []
|
224
|
+
this.$emit('update:selectedModels', this.selectedModels)
|
219
225
|
}
|
220
226
|
|
221
227
|
@Watch('isLoading')
|