Skip to content

<a-table bordered>存在嵌套子表格时会影响子表格样式,且主表格不可scroll #3568

@galleonsZcc

Description

@galleonsZcc
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.0.0-rc.8

Environment

vue 3.x

Reproduction link

https://2x.antdv.com/components/table-cn/#API

Steps to reproduce

主表格使用带边框的样式bordered,且设置:scroll="{y: 300}"
#expandedRowRender嵌套子表格并设置:bordered="false"

What is expected?

期望主表格可设置滚动,且子表格样式独立,无边框。

What is actually happening?

主表格存在scroll且有子表格时会提示:
warning.js?2149:6 Warning: [antdv: expandedRowRender and scroll are not compatible. Please use one of them at one time.]。
同时子表格受主表格影响,存在边框

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions