pagination.js 754 B

1234567891011121314151617181920212223242526272829303132
  1. const genPaginationStyle = token => {
  2. const {
  3. componentCls,
  4. antCls
  5. } = token;
  6. return {
  7. [`${componentCls}-wrapper`]: {
  8. // ========================== Pagination ==========================
  9. [`${componentCls}-pagination${antCls}-pagination`]: {
  10. margin: `${token.margin}px 0`
  11. },
  12. [`${componentCls}-pagination`]: {
  13. display: 'flex',
  14. flexWrap: 'wrap',
  15. rowGap: token.paddingXS,
  16. '> *': {
  17. flex: 'none'
  18. },
  19. '&-left': {
  20. justifyContent: 'flex-start'
  21. },
  22. '&-center': {
  23. justifyContent: 'center'
  24. },
  25. '&-right': {
  26. justifyContent: 'flex-end'
  27. }
  28. }
  29. }
  30. };
  31. };
  32. export default genPaginationStyle;