mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 04:30:06 +08:00
a268fdde8f
* Add the rowScope style * doc(table): add demo about rowScope * update snapshot --------- Co-authored-by: Yuiai01 <dujiaqi@kezaihui.com> Co-authored-by: muxinFeng <434980373@qq.com>
26 lines
700 B
TypeScript
26 lines
700 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;
|