mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
5d3381334c
* chore: remove useless tsx support * add * revert * add * fix * fix * add test case * fix
23 lines
653 B
TypeScript
23 lines
653 B
TypeScript
import type { CSSObject } from '@ant-design/cssinjs';
|
|
import type { GenerateStyle } from '../../theme/internal';
|
|
import type { TableToken } from './index';
|
|
|
|
// ========================= Placeholder ==========================
|
|
const genEmptyStyle: GenerateStyle<TableToken, CSSObject> = (token) => {
|
|
const { componentCls } = token;
|
|
return {
|
|
[`${componentCls}-wrapper`]: {
|
|
[`${componentCls}-tbody > tr${componentCls}-placeholder`]: {
|
|
textAlign: 'center',
|
|
color: token.colorTextDisabled,
|
|
|
|
'&:hover > td': {
|
|
background: token.colorBgContainer,
|
|
},
|
|
},
|
|
},
|
|
};
|
|
};
|
|
|
|
export default genEmptyStyle;
|