mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-24 15:46:10 +08:00
502dac12aa
* docs: fix code * feat: lint * feat: prettier * feat: test * feat: review * feat: format html * feat: format html
27 lines
701 B
TypeScript
27 lines
701 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 > th,
|
|
&:hover > td,
|
|
`]: {
|
|
background: token.colorBgContainer,
|
|
},
|
|
},
|
|
},
|
|
};
|
|
};
|
|
|
|
export default genEmptyStyle;
|