更新记录
                                                                                                    
                                                    
                                                        1.0.1(2023-07-13)
                                                                                                                    
                                                                下载此版本
                                                            
                                                        
                                                    
                                                    
                                                                                                    
                                                    
                                                        1.0.0(2023-07-13)
                                                                                                                    
                                                                下载此版本
                                                            
                                                        
                                                    
                                                    
                                                                                                                                                
                                            
                                                                                                                                                        平台兼容性
                                                                                                                                                                                                                                                                                                                                uni-app
                                                                                                                                                                                                                                    
| Vue2 | 
Vue3 | 
Chrome | 
Safari | 
app-vue | 
app-nvue | 
Android | 
iOS | 
鸿蒙 | 
| √ | 
- | 
√ | 
√ | 
- | 
- | 
- | 
- | 
- | 
                                                                                                                                                            
| 微信小程序 | 
支付宝小程序 | 
抖音小程序 | 
百度小程序 | 
快手小程序 | 
京东小程序 | 
鸿蒙元服务 | 
QQ小程序 | 
飞书小程序 | 
快应用-华为 | 
快应用-联盟 | 
| × | 
- | 
- | 
- | 
- | 
- | 
- | 
- | 
- | 
- | 
- | 
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                其他
                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
                                            发光开关按钮组件
组件名:h-switch-button
安装方式
本组件符合easycom规范,HBuilderX 2.5.5起,只需将本组件导入项目,在页面template中即可直接使用,无需在页面中import和注册components。
基本用法
在 template 中使用组件
<!-- 基本用法 -->
<h-switch-button></h-switch-button>
<!-- 暗黑模式 -->
<h-switch-button type="darkness"></h-switch-button>
API
Props
| 属性名 | 
类型 | 
默认值 | 
说明 | 
| type | 
String | 
white | 
开关模式 (白色模式-white、暗黑模式-darkness) | 
Events
| 事件名 | 
类型 | 
回调参数 | 
说明 | 
| active | 
function | 
botton(true、false) | 
按钮点击事件 |