mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
a1f77f3694
* feat: Table support cssVar * fix: fix * fix: fix * Update check-cssinjs.tsx Signed-off-by: lijianan <574980606@qq.com> * Update components/table/style/fixed.ts Co-authored-by: MadCcc <madccc@foxmail.com> Signed-off-by: lijianan <574980606@qq.com> * fix: fix * fix: fix * fix: fix * fix: fix * fix: fix * fix: fix * fix: fix * fix: fix * feat: optimize token * chore: update --------- Signed-off-by: lijianan <574980606@qq.com> Co-authored-by: MadCcc <madccc@foxmail.com> Co-authored-by: MadCcc <1075746765@qq.com>
41 lines
969 B
TypeScript
41 lines
969 B
TypeScript
import { unit, 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, margin } = token;
|
|
return {
|
|
[`${componentCls}-wrapper`]: {
|
|
// ========================== Pagination ==========================
|
|
[`${componentCls}-pagination${antCls}-pagination`]: {
|
|
margin: `${unit(margin)} 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;
|