Splitter beta ​

Divide the area horizontally or vertically, and freely drag to adjust the size of each area.

Basic usage ​

The most basic usage, if no default size is passed, it will be automatically divided equally.

1
2

Vertical ​

Use vertical orientation.

1
2

Collapsible ​

Configuring collapsible provides quick shrinking capability. You can use the min property to prevent expanding through dragging after collapsing.

enable
1
2
3
4
5

Disable drag ​

When either panel disables resizable, dragging will be disabled.

disable
1
drag disable
3

Panel size ​

v-model:size can get the panel size.

1
100px
3

Lazy 2.11.0 ​

When lazy is enabled, the panel size will not update in real time during dragging, but only after the drag ends.

1
2
3

Splitter API ​

Splitter Attributes ​

NameDescriptionTypeDefault
layoutLayout direction of the splitterenumhorizontal
lazy 2.11.0Whether to enable lazy modebooleanfalse

Splitter Events ​

NameDescriptiontype
resize-startTriggered when starting to resize a panel, index is the drag bar indexFunction
resizeTriggered while resizing a panel, index is the drag bar indexFunction
resize-endTriggered when panel resizing ends, index is the drag bar indexFunction
collapse 2.10.3Triggered when a panel is collapsed, index is the drag bar indexFunction

SplitterPanel API ​

SplitterPanel Attributes ​

NameDescriptionTypeDefault
size / v-model:sizeSize of the panel (in pixels or percentage)string / number-
minMinimum size of the panel (in pixels or percentage)string / number-
maxMaximum size of the panel (in pixels or percentage)string / number-
resizableWhether the panel can be resizedbooleantrue
collapsibleWhether the panel can be collapsedbooleanfalse

SplitterPanel Events ​

NameDescriptiontype
update:sizeTriggered when panel size changesFunction

SplitterPanel Slots ​

NameDescription
defaultDefault content of the panel
start-collapsibleCustom content for the start collapsible button
end-collapsibleCustom content for the end collapsible button

SplitterPanel Exposes ​

NameDescriptionType
splitterPanelRef 2.11.9SplitterPanel html elementobject

Source ​

Component • Style • Docs

Contributors ​