Skip to content

ToggleSwitch-DEMO


属性


属性类型必填默认值说明
modelValuebooleanfalseToggleswitch value
onstring'On'Toggleswitch content when value is true
offstring'Off'Toggleswitch content when value is false
onForegroundstring''Toggleswitch content foreground when value is true
offForegroundstring''Toggleswitch content foreground when value is false
borderColorstring''
widthnumber40
heightnumber20
insideContentbooleanfalse
ringBackgroundstring''
switchOnBackgroundstring''
disabledbooleanfalse
themestring'global'主题样式。支持 globallightdarksystemcustom
langstring"global"参见组件的 lang 选项。

事件


事件名参数说明
togglevalue

MIT Licensed