Skip to content

Tabs use table, table loading setting exception #5187

@Benjamin369

Description

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

What problem does this feature solve?

如题,在tabs中使用table时,如果table的loading成真,table上的加载效果异常。

What does the proposed API look like?

需要在tabs中表的loading配置为真时,效果与非tabs中一致。

非tabs中嵌套的效果:
image

tabs中嵌套的效果:
image

tabs中非loading效果
image

tabs嵌套的部分代码

使用的是tabs中嵌套组件,组件中包含table,是组件

tabs部分
<a-tabs type="card">
    <a-tab-pane :key="'tab_room_' + e.id" :tab="e.name" v-for="e in roomData">
        <div class="tabPaneContent">
            <EquipmentList :roomData="e" />
        </div>
    </a-tab-pane>
</a-tabs>
EquipmentList 组件部分
<a-table
    size="middle"
    :columns="tbaleColumns"
    :data-source="tableData"
    :pagination="pageInfo"
    :loading="true"
    rowKey="id"
    @change="changePage">
</a-table>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions