Stack
容器属性
所有组件配置的第一层均支持容器属性
组件属性 componentsProps
| Name | Type | Default | 是否支持 Variable Pattern | Description |
|---|---|---|---|---|
| className | string | ✔️ | Root div 的 className | |
| style | object | Root div 的 style | ||
| flexDirection | string | 等同 css flex 的属性 | ||
| gap | number | 8 | 等同 css flex 的属性 | |
| alignItems | string | 等同 css flex 的属性 | ||
| justifyContent | string | 等同 css flex 的属性 |
所有其余 componentsProps 将会被传给组件根元素(div)。
JS API
通过 formApi.getFieldApi() 获取的接口如下:
| Name | Type | Description |
|---|---|---|
| node | HTML Element | 组件的根 DOM 元素 |