Appearance
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 | 容器高度 px | number | — | 165 |
| label | 分割线可读名称 | string | — | — |
Events
| 事件名称 | 说明 |
|---|---|
| update:modelValue | 拖动结束或键盘操作时输出新比例 |
Slots
| 名称 | 说明 |
|---|---|
| default | 第一栏 |
| second | 第二栏 |