ToggleButton

属性

名称 类型 默认值 描述
checked Boolean false 切换按钮是否处于选中/打开状态。

事件

名称 类型 描述
change CustomEvent<boolean> 当选中状态改变时触发。detail 属性包含新的选中状态。