You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
653 B
23 lines
653 B
3 years ago
|
import type { CSSObject } from '@ant-design/cssinjs';
|
||
2 years ago
|
import type { GenerateStyle } from '../../theme/internal';
|
||
3 years ago
|
import type { TableToken } from './index';
|
||
|
|
||
|
// ========================= Placeholder ==========================
|
||
2 years ago
|
const genEmptyStyle: GenerateStyle<TableToken, CSSObject> = (token) => {
|
||
3 years ago
|
const { componentCls } = token;
|
||
|
return {
|
||
|
[`${componentCls}-wrapper`]: {
|
||
|
[`${componentCls}-tbody > tr${componentCls}-placeholder`]: {
|
||
|
textAlign: 'center',
|
||
|
color: token.colorTextDisabled,
|
||
|
|
||
|
'&:hover > td': {
|
||
2 years ago
|
background: token.colorBgContainer,
|
||
3 years ago
|
},
|
||
|
},
|
||
|
},
|
||
|
};
|
||
|
};
|
||
|
|
||
|
export default genEmptyStyle;
|