FlexProps interface
布局容器:灵活的 Flex 布局容器
Signature
typescript
interface FlexProps extends StyleProps1
Extends: StyleProps
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
'start' | 'center' | 'end' | (Optional) Main axis alignment (horizontal) | ||
'start' | 'center' | 'end' | 'stretch' | (Optional) Cross axis alignment (vertical) | ||
any | (Optional) Child node | ||
string[] | (Optional) List of additional style class names | ||
'column' | 'column-reverse' | 'row' | 'row-reverse' | (Optional) Main axis direction: row (horizontal) / column (vertical, including reverse) | ||
number | (Optional) Gap between child elements (pixels) | ||
() => void | (Optional) 点击容器时触发 |