mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-05 05:29:01 +08:00
21 lines
711 B
Markdown
21 lines
711 B
Markdown
|
## API
|
||
|
|
||
|
| 参数 | 说明 | 类型 | 默认值 |
|
||
|
| --- | --- | --- | --- |
|
||
|
| autoFocus | 组件自动获取焦点 | boolean | false |
|
||
|
| checked | 指定当前是否选中 | boolean | false |
|
||
|
| checkedChildren | 选中时的内容 | string\|slot | |
|
||
|
| defaultChecked | 初始是否选中 | boolean | false |
|
||
|
| disabled | 是否禁用 | boolean | false |
|
||
|
| loading | 加载中的开关 | boolean | false |
|
||
|
| size | 开关大小,可选值:`default` `small` | string | default |
|
||
|
| unCheckedChildren | 非选中时的内容 | string\|slot | |
|
||
|
| onChange | 变化时回调函数 | Function(checked:Boolean) | |
|
||
|
|
||
|
## 方法
|
||
|
|
||
|
| 名称 | 描述 |
|
||
|
| --- | --- |
|
||
|
| blur() | 移除焦点 |
|
||
|
| focus() | 获取焦点 |
|