Select rows in Vuetify Data Table

后端 未结 2 1114
小蘑菇
小蘑菇 2021-01-24 22:49

I was wondering how can I select/unselect a row by clicking a row in a datatable in Vuetify. It would be even better if I could select a range by using shift+click or shift+arr

2条回答
  •  臣服心动
    2021-01-24 23:37

    Do this and it will work fine.

    
    
    

    Note two things the v-model and show-select Next in the data section of your script add the selected array

    data(){
      return {
        selected:[{user_id: "FOR_INSTANCE"}]
      }
    }
    

提交回复
热议问题