开发指南属性设置器Switch 开关On this pageSwitch 开关类型定义 Switch 类型定义 export type Switch = { value: boolean;}; 字段说明 字段类型必选描述valueboolean是开关的状态(true 为开,false 为关)。 示例 开启状态 const enabledSwitch: Switch = { value: true,}; 关闭状态 const disabledSwitch: Switch = { value: false,}; 注意事项 用途 适用于表示二元状态(如开关、复选框、启用/禁用等场景)。