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

a-radio-group options 当存在label 就不能自定义 label #8060

Open
1 task
aBrightWorld opened this issue Mar 11, 2025 · 1 comment
Open
1 task

a-radio-group options 当存在label 就不能自定义 label #8060

aBrightWorld opened this issue Mar 11, 2025 · 1 comment

Comments

@aBrightWorld
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.2.6

Environment

1

Reproduction link

https://www.antdv.com/components/radio-cn#components-radio-demo-disabled

Steps to reproduce

只要给组件传去options 就会直接用里边的label ,而不能自定义,

What is expected?

即使传入options内存在label 也能自定义label

What is actually happening?

直接展示label,不能自定义


<a-radio
v-for="(radioItem, radioIndex) in options"
:index="radioIndex"
:value="radioItem.value"

{{ $t(radioItem.label) }}

就会导致span内容不生效

@aBrightWorld
Copy link
Author

只要给组件传入options,并且有label 就会导致自定义的label不生效

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant