Skip to content

Commit

Permalink
init listview dragMode + bulkSelection props propertly like a pro
Browse files Browse the repository at this point in the history
  • Loading branch information
kakenbok committed Nov 24, 2024
1 parent 16fdc31 commit e47e418
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src-admin/components/list/ListView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -190,20 +190,25 @@ export default class ListView extends Mixins(ListViewMixin) {
dragMode_ = null
bulkSelection_ = null
created () {
this.dragMode_ = this.dragMode
this.bulkSelection_ = this.bulkSelection
}
setDragMode (mode) {
this.dragMode_ = mode
}
get _dragMode () {
return this.dragMode_ || this.dragMode
return this.dragMode_
}
setBulkSelection (mode) {
this.bulkSelection_ = mode
}
get _bulkSelection () {
return this.bulkSelection_ || this.bulkSelection
return this.bulkSelection_
}
isSelected (model) {
Expand Down

0 comments on commit e47e418

Please sign in to comment.