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

[t-dropdown-item] value属性没有受控,监听不到变化 chang事件也无法触发 #114

Closed
wr1984 opened this issue May 11, 2022 · 2 comments · Fixed by #146
Closed
Labels
bug Something isn't working

Comments

@wr1984
Copy link

wr1984 commented May 11, 2022

tdesign-mobile-vue 版本

使用最新的0.8.5发现此问题

重现链接

No response

重现步骤

`

<t-dropdown-menu>
   <t-dropdown-item v-model="parkType" label="园区类型" :options="parkTypeOptions" @change="handleChange" />
</t-dropdown-menu>

const parkType = ref('');
watch(parkType, (val) => {
  console.log(val);   // 监听不到变化
});

const handleChange = (val) => {
  console.log(val)  // 监听不到变化
}

`

期望结果

下拉选择后监听到value的值变化

实际结果

监听不到value的值变化

框架版本

Vue(3.2.25)

浏览器版本

Chrome(101.0.4951.54)

系统版本

Windows 11

Node版本

Node(v14.17.6)

补充说明

No response

@github-actions
Copy link
Contributor

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

@LeeJim LeeJim added the bug Something isn't working label May 27, 2022
@lookguy
Copy link

lookguy commented Jun 6, 2022

0.8.6版本修复了吗

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.

3 participants