mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-03 00:09:39 +08:00
de2992f96f
* chore: base move * chore: all path * chore: fix script
40 lines
945 B
TypeScript
40 lines
945 B
TypeScript
import type { CSSObject } from '@ant-design/cssinjs';
|
|
import type { GenerateStyle } from '../../theme';
|
|
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;
|