File tree Expand file tree Collapse file tree 2 files changed +12614
-2271
lines changed
Expand file tree Collapse file tree 2 files changed +12614
-2271
lines changed Original file line number Diff line number Diff line change 11<script setup lang="ts">
2+ import { ref } from ' vue' ;
23import { SplitPanel } from ' ../../src' ;
4+
5+ const collapsed = ref (false );
36 </script >
47
58<template >
6- <SplitPanel class =" split" min = " 150px " : size =" 200 " size-unit = " px " max = " 500px " primary = " end " >
9+ <SplitPanel class =" split" collapsible :collapsed :min- size =" 30 " :collapse-threshold = " 80 " >
710 <template #start >
811 <div class =" panel" >
912 <p >Panel A</p >
@@ -20,6 +23,10 @@ import { SplitPanel } from '../../src';
2023 </div >
2124 </template >
2225 </SplitPanel >
26+
27+ <button @click =" collapsed = !collapsed" >
28+ Collapse
29+ </button >
2330</template >
2431
2532<style scoped>
@@ -37,5 +44,7 @@ import { SplitPanel } from '../../src';
3744
3845.resize-handle {
3946 width : 5px ;
47+ height : 100% ;
48+ background-color : black ;
4049}
4150 </style >
You can’t perform that action at this time.
0 commit comments