v-tables-3
Version:
Vue.js 3 grid components
10 lines (8 loc) • 609 B
JavaScript
;
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
module.exports = function (e) {
this.limit = _typeof(e) === 'object' ? e.target.value : e;
this.updateState('perPage', this.limit);
this.dispatch('limit', parseInt(this.limit));
this.setPage(1);
};