Skip to content

Switch 开关

基础用法

通过checked设置是否开启

禁止点击

通过设置 disabled 属性来禁止点击

change 事件

通过判断 switch 组件是否拥有 checked 属性来判断是否被选中

MIT Licensed