Skip to content

table在template 风格的 API 下列排序失效 #2501

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task
mark0325 opened this issue Jun 28, 2020 · 3 comments
Closed
1 task

table在template 风格的 API 下列排序失效 #2501

mark0325 opened this issue Jun 28, 2020 · 3 comments
Labels

Comments

@mark0325
Copy link

mark0325 commented Jun 28, 2020

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

Version

1.6.2

Environment

win10、Microsoft Edge 83.0.478.56

Reproduction link

Edit on CodeSandbox

Steps to reproduce

点击列排序

What is expected?

正常排序

What is actually happening?

总是升序排序

@ZxcSoft
Copy link

ZxcSoft commented Jul 7, 2020

template模式下, 必须加key. data-index设置无效.

<a-table-column
          title="executeTime"
          data-index="executeTime"
          key="executeTime"
          :sorter="true"
        >
</a-table-column>

@mark0325
Copy link
Author

template模式下, 必须加key. data-index设置无效.

<a-table-column
          title="executeTime"
          data-index="executeTime"
          key="executeTime"
          :sorter="true"
        >
</a-table-column>

thank you

mchobbylong added a commit to mchobbylong/ant-design-vue that referenced this issue Apr 29, 2021
Prop `Column.key` is required if using template style api (vueComponent#2501)
tangjinzhou pushed a commit that referenced this issue May 7, 2021
Prop `Column.key` is required if using template style api (#2501)
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants