mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-11 23:00:20 +08:00
5d9cb2e50d
* refactor: Optimize theme export and add docs * chore: fix lint * chore: fix lint * chore: fix lint
40 lines
956 B
TypeScript
40 lines
956 B
TypeScript
import type { CSSObject } from '@ant-design/cssinjs';
|
|
import type { GenerateStyle } from '../../theme/internal';
|
|
import type { TableToken } from './index';
|
|
|
|
const genPaginationStyle: GenerateStyle<TableToken, CSSObject> = (token) => {
|
|
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;
|