1 | /**
|
2 | * Module : kero dataTable getPage
|
3 | * Author : liuyk(liuyk@yonyou.com)
|
4 | * Date : 2016-08-01 14:34:01
|
5 | */
|
6 |
|
7 |
|
8 |
|
9 | const getPage = function (pageIndex) {
|
10 | if (this.pageCache) {
|
11 | return this.cachedPages[pageIndex]
|
12 | }
|
13 | return -1;
|
14 | }
|
15 |
|
16 | const getPages = function () {
|
17 | if (this.pageCache) {
|
18 | return this.cachedPages
|
19 | }
|
20 | return [];
|
21 | }
|
22 |
|
23 | export {
|
24 | getPage,
|
25 | getPages
|
26 | } |
\ | No newline at end of file |