Skip to content
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

tabs组件异步加载时会默认选中第二项 #2167

Closed
1 task
arika163 opened this issue Apr 28, 2020 · 3 comments
Closed
1 task

tabs组件异步加载时会默认选中第二项 #2167

arika163 opened this issue Apr 28, 2020 · 3 comments
Labels

Comments

@arika163
Copy link

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

Version

1.5.1

Environment

windows10@1909,chrome@81.0.4044.122,vue@2.6.11

Reproduction link

Edit on CodeSandbox

Steps to reproduce

已提供沙盒复现:
https://codesandbox.io/s/vibrant-cherry-qhd8n

What is expected?

按defaultActiveKey属性选中对应的tab

What is actually happening?

选中了第二个tab

@mudi-1125
Copy link

image
key要用string类型吧,key转成string就不会有问题了

@arika163
Copy link
Author

image
key要用string类型吧,key转成string就不会有问题了

确实是这个问题,感谢指正!

@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 Apr 29, 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