UNPKG

v-tables-3

Version:

Vue.js 3 grid components

15 lines (12 loc) 294 B
"use strict"; module.exports = function (rowId) { var _this = this; if (!!this.selectedRows.find(function (row) { return String(row[_this.opts.uniqueKey]) === String(rowId); })) { this.unselectRow(rowId); } else { this.selectRow(rowId); } return this.selectedRows; };