Skip to content

开关(Switch)

组件标识

component: 'Switch'

componentProps

参数名类型说明
disabledboolean禁用
activeTextstring开启文案
inactiveTextstring关闭文案
onChange(value: boolean) => void状态变化
styleRecord<string, any>自定义样式