Skip to content

Resizable 可调整分栏 ​

按方向拖动分割线。H5 中聚焦分割线后可按箭头键。

vue
<ll-resizable v-model="percent" label="调整分栏">左侧<template #second>右侧</template></ll-resizable>

Attributes ​

参数说明类型可选值默认值
model-value首区比例,单位百分点number—必填
orientation分栏方向horizontal / vertical—horizontal
min首区最小占比number—15
max首区最大占比number—85
height容器高度 pxnumber—165
label分割线可读名称string——

Events ​

事件名称说明
update:modelValue拖动结束或键盘操作时输出新比例

Slots ​

名称说明
default第一栏
second第二栏