split-pane-v3

A split panel for vue3, using TS
2,899
Install
npm install split-pane-v3
Latest Version:1.1.2
Vue:3
Last Updated:Oct 9, 2023
Links: npm
Maintainer: wang2523436332

split-pane-v3

中文文档README.zh_CN.md

demo

About

  • Split-pane-v3 is a split panel component based on VUE3+TS, this component functions similar to 'vscode' panel splitting, commonly found in online code editors! According to turn,this can be understood as the Vue3 version of the project.

Get Start

download

npm install split-pane-v3 --save

or

npm i split-pane-v3 -S

<template>
	<split-pane :min-percent="0" :default-percent="20" split="vertical">
		<template v-slot:paneL> vertical-A </template>
		<template v-slot:paneR>
			<split-pane split="horizontal" :default-percent="75">
				<template v-slot:paneL> horizontal-B </template>
				<template v-slot:paneR>
					<split-pane split="vertical" :default-percent="75">
						<template v-slot:paneL> vertical-C </template>
						<template v-slot:paneR> vertical-D </template>
					</split-pane>
				</template>
			</split-pane>
		</template>
	</split-pane>
</template>

<script setup lang="ts">
	import { defineAsyncComponent } from "vue";
	const SplitPane = defineAsyncComponent(() => import("split-pane-v3"));
</script>

Options

IDX Name Type default explain
1 minPercent Number 10 Minimum value of the current panel (%)
2 defaultPercent Number 50 Default display value of the current panel (%)
3 split String - The display mode of the current panel can be upper or lower or left or right
4 class-name String - The class name of the split gesture for the current panel

slot

IDX Name explain
1 paneL First slot inside split panel (left or top)
2 paneR First slot inside split panel (right or bottom)

Related Packages

markdown-to-jsx

A very fast and versatile markdown toolchain. AST, React, React Native, SolidJS,...

214,042,213 2,394
vaul-vue

Vaul Vue is an unstyled drawer component for Vue that can be used as a Dialog re...

19,162,483 497

Version History

Version Released Vue License
1.1.2 ^3.2.47
1.0.2 ^3.2.47
1.0.1 ^3.2.47
1.0.0 ^3.2.47