"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = MyPagination;
var _react = _interopRequireDefault(require("react"));
var _pagination = _interopRequireDefault(require("antd/lib/pagination"));
require("./index.less");
var _excluded = ["total", "current", "pageSize", "onChange"];
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
function MyPagination(props) {
  var total = props.total,
    current = props.current,
    pageSize = props.pageSize,
    onChange = props.onChange,
    otherProps = _objectWithoutProperties(props, _excluded);
  var classnames = function classnames(name) {
    if (name) {
      return "ol-map-MyPagination-".concat(name);
    }
    return "ol-map-MyPagination";
  };
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: classnames('MyPagination')
  }, /*#__PURE__*/_react["default"].createElement(_pagination["default"], _extends({
    size: "small",
    total: total,
    current: current,
    pageSize: pageSize,
    showTotal: function showTotal(total) {
      return "\u5171".concat(total, "\u6761");
    },
    showSizeChanger: true,
    showQuickJumper: true,
    onChange: onChange,
    onShowSizeChange: onChange
  }, otherProps)));
}
//# sourceMappingURL=index.js.map
