🚀 Socket Launch Week 🚀 Day 3: Socket Acquires Coana.Learn More
Socket
Sign inDemoInstall
Socket

split-pane-v3

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

split-pane-v3

A split panel for vue3, using TS

1.1.2
latest
npm
Version published
Weekly downloads
109
165.85%
Maintainers
1
Weekly downloads
 
Created
Source

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)

Keywords

SplitPane

FAQs

Package last updated on 09 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts