Skip to content

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

Open
@aBrightWorld

Description

@aBrightWorld
  • 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内容不生效

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions