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

[checkbox] CheckboxGroup 的 options 参数未观察属性的变化 #1705

Closed
sagittarius-rev opened this issue Oct 31, 2022 · 3 comments
Closed
Assignees
Labels
accepted the issue has been accepted and would be resolved 🐞 bug Something isn't working

Comments

@sagittarius-rev
Copy link

tdesign-vue 版本

tdesign-vue 0.49.2

重现链接

https://codesandbox.io/s/tdesign-vue-demo-forked-ugtbo3?file=/src/demo.vue

重现步骤

使用 TCheckboxGroup 组件,设置输入参数 options 。然后动态改变 options 参数中选项的文本 label 或选项的值 value

期望结果

对于动态的 options 参数,在其内部属性发生变化时, TCheckboxGroup 应当能正确响应数据的变化。在界面上显示变化的选项文本,在进行选择/取消选择操作时,也应当能使用最新的选项值。

实际结果

options 参数内部的 labelvalue 属性发生变化时, TCheckboxGroup 并未响应变化,界面上显示的选项文本依然是旧的,而选择/取消选择时,使用的也是旧的选项值。

框架版本

Vue(2.6.14)

浏览器版本

No response

系统版本

Windows 10

Node版本

14.15.1

补充说明

TRadioGroupSelect 组件功能都是正常的,均没有这个问题。

@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

♥️ 有劳 @chaishi @start940315 @HQ-Lin 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @sagittarius-rev

@uyarn uyarn added 🐞 bug Something isn't working accepted the issue has been accepted and would be resolved to be published fixed, not be published labels Oct 31, 2022
@uyarn
Copy link
Collaborator

uyarn commented Nov 2, 2022

fixed 0.49.3

@uyarn uyarn closed this as completed Nov 2, 2022
@chaishi chaishi removed the to be published fixed, not be published label Sep 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted the issue has been accepted and would be resolved 🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants