mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-01 06:49:32 +08:00
de2992f96f
* chore: base move * chore: all path * chore: fix script
40 lines
890 B
TypeScript
40 lines
890 B
TypeScript
import type { CSSObject } from '@ant-design/cssinjs';
|
|
import type { GenerateStyle } from '../../theme';
|
|
import type { TableToken } from './index';
|
|
|
|
const genStyle: GenerateStyle<TableToken, CSSObject> = token => {
|
|
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;
|