Skip to content

switch只支持true和false,实际场景会是数字1,2或者0。希望和iview类似,能属性里直接支持转化 #3288

@mengguagua

Description

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

What problem does this feature solve?

节省代码,更快速开发

What does the proposed API look like?

true-value 选中时的值,当使用类似 1 和 0 来判断是否选中时会很有用 String, Number, Boolean true
false-value 没有选中时的值,当使用类似 1 和 0 来判断是否选中时会很有用 String, Number, Boolean false

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