mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-21 13:18:04 +08:00
502dac12aa
* docs: fix code * feat: lint * feat: prettier * feat: test * feat: review * feat: format html * feat: format html
59 lines
1.2 KiB
TypeScript
59 lines
1.2 KiB
TypeScript
import type { CSSObject } from '@ant-design/cssinjs';
|
|
|
|
import type { GenerateStyle } from '../../theme/internal';
|
|
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`]: {
|
|
float: 'right',
|
|
|
|
'&::after': {
|
|
transform: 'rotate(-90deg)',
|
|
},
|
|
|
|
'&-collapsed::before': {
|
|
transform: 'rotate(180deg)',
|
|
},
|
|
|
|
'&-collapsed::after': {
|
|
transform: 'rotate(0deg)',
|
|
},
|
|
},
|
|
|
|
[`${componentCls}-container`]: {
|
|
'&::before': {
|
|
insetInlineStart: 'unset',
|
|
insetInlineEnd: 0,
|
|
},
|
|
|
|
'&::after': {
|
|
insetInlineStart: 0,
|
|
insetInlineEnd: 'unset',
|
|
},
|
|
|
|
[`${componentCls}-row-indent`]: {
|
|
float: 'right',
|
|
},
|
|
},
|
|
},
|
|
};
|
|
};
|
|
|
|
export default genStyle;
|