Skip to content

There is a problem when the table header title and Column title have the same name #4131

@Rex-L

Description

@Rex-L
<template>
  <a-table :columns="columns" :data-source="data" bordered>
    <template slot="title" slot-scope="text">
      <a>{{ text }}</a>
    </template>
    <template slot="title" slot-scope="currentPageData">
      Header
    </template>
    <template slot="footer" slot-scope="currentPageData">
      Footer
    </template>
  </a-table>
</template>

代码如上:
当 第三行代码()的 slot="title" 跟 第六行的()当 slot="title" 相同时,会导致页头渲染出问题,比如有代码

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