Checkbox
容器属性
所有组件配置的第一层均支持容器属性
组件属性 componentsProps
| Name | Type | Default | 是否支持 Variable Pattern | Description |
|---|---|---|---|---|
| className | string | ✔️ | 组件的 className | |
| style | object | 组件的 style | ||
| options | Array<{ value: string | number, label: string }> | 可选项 | ||
| direction | 'horizontal' | 'vertical' | Checkbox 元素的方向 | ||
| gap | 'small' | 'middle' | 'large' | number | 'small' | Checkbox 之间的间距 |
所有其余 componentsProps 将会被传给组件根元素(Checkbox.Group)。
JS API
通过 formApi.getFieldApi() 获取的接口如下:
| Name | Type | Description |
|---|---|---|
| node | HTML Element | 组件的根 DOM 元素 |