---
title: boolean
subtitle: 开关
type: Widgets
---

开关选择器

## API

### schema 属性

| 参数         | 说明     | 类型      | 默认值 |
| ------------ | -------- | --------- | ------ |
| `[readOnly]` | 禁用状态 | `boolean` | -      |

### ui 属性

| 参数                  | 说明                | 类型            | 默认值    |
| --------------------- | ------------------- | --------------- | --------- |
| `[size]`              | 大小，等同 `nzSize` | `default,small` | `default` |
| `[checkedChildren]`   | 选中时的内容        | `string`        | -         |
| `[unCheckedChildren]` | 非选中时的内容      | `string`        | -         |
