mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 01:29:11 +08:00
5d3381334c
* chore: remove useless tsx support * add * revert * add * fix * fix * add test case * fix
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;
|