Skip to content

Switch 开关

组件来源:Element-Plus
https://element-plus.org/zh-CN/component/switch.html

示例

API

属性名说明类型默认值
activeTextswitch 打开时的文字描述string‘’
inactiveTextswitch 的状态为 off 时的文字描述string‘’
activeValueswitch 状态为 on 时的值boolean | string | numbertrue
inactiveValueswitch的状态为 off 时的值boolean | string | numberfalse
disabled是否禁用booleanfalse