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

[RadioButton] 填充型按钮样式在使用布尔值时不符合预期的失去了切换动画效果 #4619

Open
SuperManito opened this issue Sep 29, 2024 · 5 comments
Labels
🐞 bug Something isn't working

Comments

@SuperManito
Copy link
Contributor

tdesign-vue-next 版本

1.10.2

重现链接

文档绑定的两个工具都看不了

重现步骤

填充型按钮样式在使用布尔值时不符合预期的失去了切换动画效果

期望结果

No response

实际结果

No response

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

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

@SuperManito
Copy link
Contributor Author

SuperManito commented Sep 29, 2024

image

            <t-radio-group variant="default-filled" :default-value="true">
              <t-radio-button :value="false">
                <NIcon :size="18">
                  <i-mdi-format-list-bulleted style="vertical-align: -0.2em" />
                </NIcon>
              </t-radio-button>
              <t-radio-button :value="true">
                <NIcon :size="18">
                  <i-material-symbols-grid-view-outline-rounded style="vertical-align: -0.2em" />
                </NIcon>
              </t-radio-button>
            </t-radio-group>

@SuperManito
Copy link
Contributor Author

经过调试,定位到问题位于 group.tsx#L104

innerValuevalue 的 watch 没有正常触发,除了布尔值还需考虑 number<0 | 1>

@uyarn uyarn added the 🐞 bug Something isn't working label Sep 30, 2024
@uyarn
Copy link
Collaborator

uyarn commented Sep 30, 2024

stackblitz 是正常的,codesandbox刚刚修复了之前需要跳到devbox打开的问题,现在应该也可以了

@SuperManito
Copy link
Contributor Author

stackblitz 是正常的,codesandbox刚刚修复了之前需要跳到devbox打开的问题,现在应该也可以了

用沙盒复现不出来,但确实在我的项目上出现了,我还调试了一下,可能是是Vue的问题

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

No branches or pull requests

2 participants