Skip to content

radio组件的disable #79

@changyuqing

Description

@changyuqing

目前的radio组件组件如果需要disable的话,需要在每一个option中单独的配置,能不能通过在顶层中传入disbale的方式进行全部选项的disable。

目前:

{
    'type': 'Radio',
    'label': '水果',
    'model': 'fruit',
    'options': [
        {
            'label': '苹果',
            'value': 'apple',
            'disabled': true
        },
        {
            'label': '桃子',
            'value': 'peach',
            'disabled': true
        }
    ]
}

希望:

{
    'type': 'Radio',
    'label': '水果',
    'disabled': true,
    'model': 'fruit',
    'options': [
        {
            'label': '苹果',
            'value': 'apple'
        },
        {
            'label': '桃子',
            'value': 'peach'
        }
    ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions