Skip to content
Discussion options

You must be logged in to vote

@zrj531 Tab 组件设计之初的目的是保持一个页面的状态,切换到第二个标签页后,第一个标签页的状态是保持的,第一个标签中的内容需要刷新时,应该是这个标签页的内容提供刷新机制。但是这个设计已经不能满足你的需求了。

我们 Tab 有一个参数 IsOnlyRenderActiveTab 设置这个参数值 true 就是你想要的功能了

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by zrj531
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Question that needs to be answered
2 participants
Converted from issue

This discussion was converted from issue #6668 on August 23, 2025 01:36.