**JSwitch 组件文档** [TOC] ## 组件参数 | 参数 | 类型 | 必填 | 默认值 | 说明 | | --- | --- | --- | --- | --- | | value(v-model) | string / number | | '' | | | options | array | | \['Y', 'N'\] | 取值 options | | labelOptions | array | | \['是', '否'\] | 文本 options | | query | bool | | false | 是否使用下拉 | | disabled | bool | | false | 是否禁用 | >[info] 更多参数见:[Switch 开关](https://2x.antdv.com/components/switch-cn/#API) 或 [Select 选择器](https://2x.antdv.com/components/select-cn/#API) ## 效果展示 ![](https://img.kancloud.cn/40/7e/407e2ece0af46a9bbfd43f4653a2de77_817x207.png) ## 使用示例 ``` js const schemas: FormSchema[] = [ { field: 'JSwitch', component: 'JSwitch', label: 'JSwitch', }, { field: 'JSwitchSelect', component: 'JSwitch', label: 'JSwitchSelect', componentProps: { query: true }, }, ] ```