You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
956 B
40 lines
956 B
3 years ago
|
import type { CSSObject } from '@ant-design/cssinjs';
|
||
2 years ago
|
import type { GenerateStyle } from '../../theme/internal';
|
||
3 years ago
|
import type { TableToken } from './index';
|
||
|
|
||
2 years ago
|
const genPaginationStyle: GenerateStyle<TableToken, CSSObject> = (token) => {
|
||
3 years ago
|
const { componentCls, antCls } = token;
|
||
|
return {
|
||
|
[`${componentCls}-wrapper`]: {
|
||
|
// ========================== Pagination ==========================
|
||
|
[`${componentCls}-pagination${antCls}-pagination`]: {
|
||
|
margin: `${token.margin}px 0`,
|
||
|
},
|
||
|
|
||
|
[`${componentCls}-pagination`]: {
|
||
|
display: 'flex',
|
||
|
flexWrap: 'wrap',
|
||
|
rowGap: token.paddingXS,
|
||
|
|
||
|
'> *': {
|
||
|
flex: 'none',
|
||
|
},
|
||
|
|
||
|
'&-left': {
|
||
|
justifyContent: 'flex-start',
|
||
|
},
|
||
|
|
||
|
'&-center': {
|
||
|
justifyContent: 'center',
|
||
|
},
|
||
|
|
||
|
'&-right': {
|
||
|
justifyContent: 'flex-end',
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
};
|
||
|
};
|
||
|
|
||
|
export default genPaginationStyle;
|