0👍
One solution is unselected the row manually.
onRowSelected(items) {
const limit = 3
let selected = items
if (this.items.length > limit) {
selected = items.slice(0, limit)
}
const toUnselected = items.slice(limit)
toUnselected.forEach(item => {
const idx = this.items.findIndex(it => item == it)
if (idx >= 0) {
this.$refs.selectableTable.unselectRow(idx)
}
})
this.selected = items
}
Note that you need to add ref=selectableTable
to the <b-table>
You can check demo in codepen here
- [Vuejs]-Vue + Mocha, 0 test passing if vue singlefile has <style> tag
- [Vuejs]-4 deep level folder not working "../../../../config.js" in vue component
Source:stackexchange.com