pagination.js 878 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. const genPaginationStyle = token => {
  7. const {
  8. componentCls,
  9. antCls
  10. } = token;
  11. return {
  12. [`${componentCls}-wrapper`]: {
  13. // ========================== Pagination ==========================
  14. [`${componentCls}-pagination${antCls}-pagination`]: {
  15. margin: `${token.margin}px 0`
  16. },
  17. [`${componentCls}-pagination`]: {
  18. display: 'flex',
  19. flexWrap: 'wrap',
  20. rowGap: token.paddingXS,
  21. '> *': {
  22. flex: 'none'
  23. },
  24. '&-left': {
  25. justifyContent: 'flex-start'
  26. },
  27. '&-center': {
  28. justifyContent: 'center'
  29. },
  30. '&-right': {
  31. justifyContent: 'flex-end'
  32. }
  33. }
  34. }
  35. };
  36. };
  37. var _default = exports.default = genPaginationStyle;