Skip to content

Commit 2b442e5

Browse files
committed
update
1 parent 6da8e77 commit 2b442e5

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

src/components/Pagination/index.js

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ const render = async (pagination, setting) => {
6262
const size = parseInt(pagination.attr(ATTR_SIZE) || "10");
6363
const data = toData(page, count, size);
6464

65-
console.log({ data });
66-
6765
setting.renderer.render({ data, container: pagination });
6866
};
6967

@@ -87,6 +85,28 @@ class Pagination extends Component {
8785
render(this, data);
8886
});
8987
}
88+
89+
get page(){
90+
return parseInt(this.attr(ATTR_PAGE));
91+
}
92+
set page(page){
93+
this.attr(ATTR_PAGE, page);
94+
}
95+
96+
get count(){
97+
return parseInt(this.attr(ATTR_COUNT));
98+
}
99+
set count(count){
100+
this.attr(ATTR_COUNT, count);
101+
}
102+
103+
get size(){
104+
return parseInt(this.attr(ATTR_SIZE));
105+
}
106+
set size(size){
107+
this.attr(ATTR_SIZE, size);
108+
}
109+
90110
}
91111

92112
defineComponent("pagination", Pagination);

0 commit comments

Comments
 (0)