Space
Use this component to provide uniform spacing between components.
Basic usage
The most basic usage, through this component to provide a uniform spacing between components.
Control the size of the spacing
control the size of the spacing by adjusting the value of size
Arrangement direction
Vertical layout, use direction
to control the way of layout, behind it is actually using flex-direction
to control.
Automatic line wrapping
set automatic line wrapping via wrap
control
Alignment
controls the alignment of child nodes through align-items
stretch
center
start
end
normal
Fill the whole line
controls the child node to fill the entire line through fill
API
space attribute
property name | description | type | default value |
---|---|---|---|
size | spacing size | string | enum | medium |
align-items | alignment | enum | normal |
direction | arrangement direction | enum | row |
wrap | Whether to automatically wrap | boolean | false |
fill | whether to fill the entire line | boolean | false |
space slots
Slot Name | Description |
---|---|
default | default slot |