splitpanes

A Vue.js reliable, simple and touch-ready panes splitter / resizer

MIT 80 个版本
安装
npm install splitpanes
yarn add splitpanes
pnpm add splitpanes
bun add splitpanes
README

Splitpanes

Latest Version on NPM Software License npm npm JavaScript Style Guide

A Vue.js reliable, simple and touch-ready panes splitter / resizer. Vue 3 compatible.

Installation

Vue 3

npm i splitpanes

Vue 2

npm i splitpanes@legacy

Demo & Documentation

https://antoniandre.github.io/splitpanes

Try it yourself

https://codepen.io/antoniandre/pen/XybPKP


Browser Support

Chrome Firefox Safari Opera Edge IE
Latest ✔ Latest ✔ Latest ✔ Latest ✔ Latest ✔ 10+ ✔

Donating

If you like this library, you can buy me a beer or become a sponsor!

Thank you!

If you are using this library for profit business, please consider backing me! It ensures that the project your products rely on keeps being actively maintained. :)


Contributing

If you have any idea, feel free to open an issue to discuss a new feature, or fork Splitpanes and submit your changes back to me.


Release Notes

  • Version 4.1.1 Bug fixes: crash on fast drag, min/max enforcement, size jump, cursor disappear, size="0" override, Firefox text selection, init flash, panel order, nested transition
  • Version 4.1.0 Keyboard accessibility: splitters focusable with arrow keys, keyboard-step prop, ARIA attributes
  • Version 4.0.5 TypeScript definitions, null pointer safeguards, fallthrough attributes fix
  • Version 4.0.0 Emit splitter-dblclick event, rename dblClickSplitter to maximizePanes, refactored emitted events
  • Version 3.2.0 Account for cursor position when dragging, Composition API rewrite
  • Version 3.0.0 Vue 3 support (use splitpanes@legacy for Vue 2)
  • Version 2.3.0 Support RTL direction
  • Version 2.2.0 Add firstSplitter option, allow v-if on panes and other improvements
  • Version 2.0.0 Fix reactivity issues
  • Version 1.14.0 Programmatically set pane size
  • Version 1.13.0 Emit event on splitter click
  • Version 1.12.0 Double click splitter to maximize is now an option
  • Version 1.11.0 Persist panes size after slots changed
  • Version 1.10.0 Add maximum size feature on panes
  • Version 1.9.0 Emit event on resize & watch slots optional
  • Version 1.8.0 Watch slots
  • Version 1.7.0 Double click splitter to maximize next pane
  • Version 1.6.0 Emit events
  • Version 1.5.0 Add default size feature on panes
  • Version 1.4.0 Add minimum size feature on panes
  • Version 1.3.0 Splitpanes slots are now reactive (add/remove on the fly)
  • Version 1.2.0 Add a default-theme CSS class to load default theme
  • Version 1.1.0 Allow pushing other panes while dragging splitter
  • Version 1.0.0 First public release
版本列表
4.1.2 2026-05-26
4.1.1 2026-05-26
4.1.0 2026-05-26
4.0.5 2026-05-26
4.0.4 2025-05-23
4.0.3 2025-03-15
4.0.2 2025-03-08
4.0.1 2025-03-07
4.0.0 2025-03-06
3.2.0 2025-03-05
3.1.8 2025-01-11
3.1.7 2025-01-11
3.1.6 2025-01-11
3.1.5 2022-10-28
3.1.4 2022-10-26
3.1.3 2022-10-25
3.1.1 2022-02-22
3.1.0 2022-02-22
3.0.6 2021-07-13
3.0.4 2020-11-17
3.0.3 2020-10-19
3.0.2 2020-10-11
3.0.1 2020-10-05
3.0.0 2020-10-02
3.0.0-next 2020-10-01
2.4.1 2022-02-22
2.4.0 2022-02-22
2.3.9 2022-02-22
2.3.8 2021-07-13
2.3.7 2021-07-13
2.3.6 2020-11-20
2.3.5 2020-11-17
2.3.4 2020-10-19
2.3.3 2020-10-05
2.3.2 2020-10-01
2.3.1 2020-09-30
2.3.0 2020-09-30
2.2.2 2020-09-30
2.2.1 2020-01-09
2.2.0 2019-12-20
2.1.2 2019-12-16
2.1.1 2019-11-24
2.1.0 2019-11-24
2.0.0 2019-10-09
1.14.5 2019-08-19
1.14.4 2019-08-18
1.14.3 2019-08-16
1.14.2 2019-04-16
1.14.1 2019-03-26
1.14.0 2019-03-26
1.13.0 2019-03-10
1.12.1 2019-03-10
1.12.0 2019-02-25
1.11.3 2019-02-18
1.11.2 2019-02-17
1.11.1 2019-02-02
1.11.0 2019-02-02
1.10.1 2019-01-25
1.10.0 2019-01-13
1.9.2 2019-01-10
1.9.1 2019-01-06
1.9.0 2019-01-03
1.8.1 2018-12-27
1.8.0 2018-12-22
1.7.0 2018-12-18
1.6.1 2018-12-18
1.6.0 2018-12-17
1.4.1 2018-11-07
1.4.0 2018-11-07
1.3.0 2018-10-22
1.2.2 2018-10-19
1.2.1 2018-10-19
1.2.0 2018-10-18
1.1.5 2018-10-18
1.0.5 2018-10-12
1.0.4 2018-10-12
1.0.3 2018-10-11
1.0.2 2018-10-11
1.0.1 2018-10-10
1.0.0 2018-10-10