zent
Version:
一套前端设计语言和基于React的实现
22 lines (21 loc) • 823 B
JavaScript
import { __extends } from "tslib";
import { Component } from 'react';
var BasePageList = (function (_super) {
__extends(BasePageList, _super);
function BasePageList() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.onPageNumberClick = function (page) { return function () {
var onPageChange = _this.props.onPageChange;
onPageChange(page);
_this.resetActiveDoubleArrowButton();
}; };
_this.jumpToPageDelta = function (delta, cb) { return function () {
var _a = _this.props, current = _a.current, onPageChange = _a.onPageChange;
onPageChange(current + delta);
cb && cb();
}; };
return _this;
}
return BasePageList;
}(Component));
export default BasePageList;