1.1.2 • Published 8 months ago

split-pane-v3 v1.1.2

Weekly downloads
-
License
-
Repository
-
Last release
8 months ago

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

IDXNameTypedefaultexplain
1minPercentNumber10Minimum value of the current panel (%)
2defaultPercentNumber50Default display value of the current panel (%)
3splitString-The display mode of the current panel can be upper or lower or left or right
4class-nameString-The class name of the split gesture for the current panel

slot

IDXNameexplain
1paneLFirst slot inside split panel (left or top)
2paneRFirst slot inside split panel (right or bottom)
1.1.2

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago