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.
|
|
|
import type { CSSObject } from '@ant-design/cssinjs';
|
|
|
|
import type { GenerateStyle } from '../../theme';
|
|
|
|
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.colorBgComponent,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export default genEmptyStyle;
|