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

radio组件的disable #79

Open
changyuqing opened this issue Apr 23, 2020 · 0 comments
Open

radio组件的disable #79

changyuqing opened this issue Apr 23, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@changyuqing
Copy link
Collaborator

目前的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'
        }
    ]
}
@BingBlog BingBlog added the enhancement New feature or request label May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants