amis/docs/renderers/Switch.md

19 lines
361 B
Markdown
Raw Normal View History

2019-05-08 22:55:41 +08:00
### Switch
可选框,和 checkbox 完全等价。
- `type` 请设置成 `switch`
- `option` 选项说明
- `trueValue` 默认 `true`
- `falseValue` 默认 `false`
- 更多配置请参考 [FormItem](#FormItem)
```schema:height="200" scope="form-item"
{
"name": "switch",
"type": "switch",
"label": "Switch",
"option": "开关说明"
}
```