mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 03:59:01 +08:00
fix: virtual list prefixCls not working (#47639)
* fix: virtual list prefixCls not working * update test case
This commit is contained in:
parent
183746ac3f
commit
2156ed4c07
@ -27,10 +27,12 @@ describe('Table.Virtual', () => {
|
||||
'.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',
|
||||
);
|
||||
expect(
|
||||
container.querySelectorAll('.ant-table-tbody-virtual-holder .ant-table-cell'),
|
||||
).toHaveLength(1);
|
||||
expect(
|
||||
container.querySelector('.ant-table-tbody-virtual-holder .ant-table-cell')?.textContent,
|
||||
).toEqual('bamboo');
|
||||
});
|
||||
|
||||
// warning from `rc-table`
|
||||
|
@ -153,7 +153,7 @@
|
||||
"rc-slider": "~10.5.0",
|
||||
"rc-steps": "~6.0.1",
|
||||
"rc-switch": "~4.1.0",
|
||||
"rc-table": "~7.41.0",
|
||||
"rc-table": "~7.42.0",
|
||||
"rc-tabs": "~14.0.0",
|
||||
"rc-textarea": "~1.6.3",
|
||||
"rc-tooltip": "~6.1.3",
|
||||
|
Loading…
Reference in New Issue
Block a user