2022-05-31 10:10:35 +08:00
|
|
|
import type { CSSObject } from '@ant-design/cssinjs';
|
2022-11-23 20:22:38 +08:00
|
|
|
import type { GenerateStyle } from '../../theme/internal';
|
2022-05-31 10:10:35 +08:00
|
|
|
import type { TableToken } from './index';
|
|
|
|
|
2022-11-19 13:47:33 +08:00
|
|
|
const genStyle: GenerateStyle<TableToken, CSSObject> = (token) => {
|
2022-05-31 10:10:35 +08:00
|
|
|
const { componentCls } = token;
|
|
|
|
return {
|
|
|
|
[`${componentCls}-wrapper-rtl`]: {
|
|
|
|
direction: 'rtl',
|
|
|
|
table: {
|
|
|
|
direction: 'rtl',
|
|
|
|
},
|
|
|
|
|
|
|
|
[`${componentCls}-pagination-left`]: {
|
|
|
|
justifyContent: 'flex-end',
|
|
|
|
},
|
|
|
|
|
|
|
|
[`${componentCls}-pagination-right`]: {
|
|
|
|
justifyContent: 'flex-start',
|
|
|
|
},
|
|
|
|
|
|
|
|
[`${componentCls}-row-expand-icon`]: {
|
|
|
|
'&::after': {
|
|
|
|
transform: 'rotate(-90deg)',
|
|
|
|
},
|
|
|
|
|
|
|
|
'&-collapsed::before': {
|
|
|
|
transform: 'rotate(180deg)',
|
|
|
|
},
|
|
|
|
|
|
|
|
'&-collapsed::after': {
|
|
|
|
transform: 'rotate(0deg)',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export default genStyle;
|