mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
fix(style): Virtual table style lead on none virtual table used as a nested table (#47333)
* fix(style): Virtual table style lead on none virtual table render used as a nested table. * fix(test): Update test for virtual table with fix nested table inside. --------- Co-authored-by: ykryshtal <ykryshtal@magnite.com> Co-authored-by: Eugene <Jeka1.1@mail.ru>
This commit is contained in:
parent
c3c9cfd652
commit
87882e1db6
@ -22,6 +22,11 @@ describe('Table.Virtual', () => {
|
||||
/>,
|
||||
);
|
||||
|
||||
expect(
|
||||
container.querySelectorAll(
|
||||
'.ant-table-wrapper .ant-table-tbody-virtual .ant-table-row:not(tr)',
|
||||
),
|
||||
).toHaveLength(1);
|
||||
expect(container.querySelectorAll('.rc-virtual-list-holder .ant-table-cell')).toHaveLength(1);
|
||||
expect(container.querySelector('.rc-virtual-list-holder .ant-table-cell')?.textContent).toEqual(
|
||||
'bamboo',
|
||||
|
@ -14,7 +14,7 @@ const genVirtualStyle: GenerateStyle<TableToken, CSSObject> = (token) => {
|
||||
[`${componentCls}-wrapper`]: {
|
||||
// ========================== Row ==========================
|
||||
[`${componentCls}-tbody-virtual`]: {
|
||||
[`${componentCls}-row`]: {
|
||||
[`${componentCls}-row:not(tr)`]: {
|
||||
display: 'flex',
|
||||
boxSizing: 'border-box',
|
||||
width: '100%',
|
||||
|
Loading…
Reference in New Issue
Block a user