()
| 692 | } |
| 693 | |
| 694 | get() { |
| 695 | const _data = this.getCurrentDisplayData(); |
| 696 | |
| 697 | if (_data.length === 0) return _data; |
| 698 | |
| 699 | const remote = typeof this.remote === 'function' ? |
| 700 | (this.remote(Const.REMOTE))[Const.REMOTE_PAGE] : this.remote; |
| 701 | |
| 702 | if (remote || !this.enablePagination) { |
| 703 | return _data; |
| 704 | } else { |
| 705 | const result = []; |
| 706 | for (let i = this.pageObj.start; i <= this.pageObj.end; i++) { |
| 707 | result.push(_data[i]); |
| 708 | if (i + 1 === _data.length) break; |
| 709 | } |
| 710 | return result; |
| 711 | } |
| 712 | } |
| 713 | |
| 714 | getKeyField() { |
| 715 | return this.keyField; |
no test coverage detected