pagination.js 949 B

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