We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.0.5
No response
<template> <t-dropdown-menu> <t-dropdown-item :options="options" :value="value" @change="handleChange" /> </t-dropdown-menu> <button @click="handleClick">点我</button> </template> <script setup lang="ts"> import { ref } from 'vue'; const options = ref([ { label: '选项一', value: 1 }, { label: '选项二', value: 2 }, ]); const value = ref(1); const handleChange = (val: number) => { value.value = val; }; const handleClick = () => { // 动态更改为选项2 实际显示存在问题 value.value = 2; }; </script>
复现demo 动态设置t-dropdown-item值时显示错误
组件正常受控
组件受控异常
Vue(3.3.4)
pull request
The text was updated successfully, but these errors were encountered:
👋 @gushisan,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
Sorry, something went wrong.
@gushisan 感谢反馈。外部改变 value 后,dropdown 标题没有变化。
value
dropdown
fix(dropdown-menu): 修复DropdownItem组件不受控
ad505f4
fix Tencent#1139
fix(dropdown-menu): 修复DropdownItem组件不受控 (#1145)
3b7400c
fix #1139
Successfully merging a pull request may close this issue.
tdesign-mobile-vue 版本
1.0.5
重现链接
No response
重现步骤
复现demo 动态设置t-dropdown-item值时显示错误
期望结果
组件正常受控
实际结果
组件受控异常
框架版本
Vue(3.3.4)
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
No response
IssueShoot
pull request
并合并为准The text was updated successfully, but these errors were encountered: