Dashboard sipadu mbip
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Pagination.js 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import _extends from "@babel/runtime/helpers/esm/extends";
  2. import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
  3. import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose";
  4. import classNames from 'classnames';
  5. import React from 'react';
  6. import { createBootstrapComponent } from './ThemeProvider';
  7. import PageItem, { First, Prev, Ellipsis, Next, Last } from './PageItem';
  8. /**
  9. * @property {PageItem} Item
  10. * @property {PageItem} First
  11. * @property {PageItem} Prev
  12. * @property {PageItem} Ellipsis
  13. * @property {PageItem} Next
  14. * @property {PageItem} Last
  15. */
  16. var Pagination =
  17. /*#__PURE__*/
  18. function (_React$Component) {
  19. _inheritsLoose(Pagination, _React$Component);
  20. function Pagination() {
  21. return _React$Component.apply(this, arguments) || this;
  22. }
  23. var _proto = Pagination.prototype;
  24. _proto.render = function render() {
  25. var _this$props = this.props,
  26. bsPrefix = _this$props.bsPrefix,
  27. className = _this$props.className,
  28. children = _this$props.children,
  29. size = _this$props.size,
  30. props = _objectWithoutPropertiesLoose(_this$props, ["bsPrefix", "className", "children", "size"]);
  31. return React.createElement("ul", _extends({}, props, {
  32. className: classNames(className, bsPrefix, size && bsPrefix + "-" + size)
  33. }), children);
  34. };
  35. return Pagination;
  36. }(React.Component);
  37. var DecoratedPagination = createBootstrapComponent(Pagination, 'pagination');
  38. DecoratedPagination.First = First;
  39. DecoratedPagination.Prev = Prev;
  40. DecoratedPagination.Ellipsis = Ellipsis;
  41. DecoratedPagination.Item = PageItem;
  42. DecoratedPagination.Next = Next;
  43. DecoratedPagination.Last = Last;
  44. export default DecoratedPagination;