Skip to content

a-switch use v-bind, props unCheckedChildren is incorrect #4527

@274153705

Description

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

Version

2.2.6

Environment

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36 Edg/92.0.902.62

Reproduction link

Edit on CodeSandbox

Steps to reproduce

<a-switch v-bind="option" />
option = {
    checkedValue: "True",
    checkedChildren: "on",
    unCheckedValue: "False",
    unCheckedChildren: "off",
}

What is expected?

显示正确

What is actually happening?

同时显示on

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