UNPKG

1.05 kBJavaScriptView Raw
1/**
2 * Module : Kero webpack entry Page index
3 * Author : liuyk(liuyuekai@yonyou.com)
4 * Date : 2016-08-09 15:24:46
5 */
6
7import {
8 pageDataFunObj
9} from './page-data';
10
11import {
12 pageGetDataFunObj
13} from './page-getData';
14
15import{
16 rowGetMetaFunObj
17} from './page-getMeta';
18
19import {
20 pageMetaFunObj
21} from './page-meta';
22
23import {
24 pageRemoveRowFunObj
25} from './page-removeRow';
26
27/**
28 * Page
29 * @namespace
30 * @description 分页对象
31 */
32class Page{
33 constructor(options){
34 // 当前焦点行
35 this.focus = options['focus'] || null;
36 // 选中行
37 this.selectedIndices = options['selectedIndices'] || null;
38 // 所有数据行
39 this.rows = options['rows'] || []
40 // DataTable对象
41 this.parent = options['parent'] || null;
42 }
43}
44
45const PageProto = Page.prototype;
46Object.assign(PageProto, pageDataFunObj);
47Object.assign(PageProto, pageGetDataFunObj);
48Object.assign(PageProto, rowGetMetaFunObj);
49Object.assign(PageProto, pageMetaFunObj);
50Object.assign(PageProto, pageRemoveRowFunObj);
51
52export {
53 Page
54}