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] 绑定值变化后,文字底部高亮条没同步过来 #1746

Closed
willianfu opened this issue Feb 10, 2025 · 1 comment · Fixed by #1748
Closed

[Tabs] 绑定值变化后,文字底部高亮条没同步过来 #1746

willianfu opened this issue Feb 10, 2025 · 1 comment · Fixed by #1748
Labels
bug Something isn't working

Comments

@willianfu
Copy link

willianfu commented Feb 10, 2025

tdesign-mobile-vue 版本

1.8.0

重现链接

No response

重现步骤

非手动点击切换情况下,直接修改绑定值,状态不能同步

Image

const current = ref('0')

<t-tabs v-model="current">
      <t-tab-panel value="0" label="0000">
        <p>内容0</p>
      </t-tab-panel>
      <t-tab-panel value="1" label="1111">
        <p>内容1</p>
      </t-tab-panel>
    </t-tabs>
<t-button @click="current = '1'">点我</t-button>

期望结果

状态值完全同步

实际结果

tab选择状态不同步

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

👋 @willianfu,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@anlyyao anlyyao added the bug Something isn't working label Feb 11, 2025
@anlyyao anlyyao closed this as completed Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants