|
|
@ -22,8 +22,8 @@ const props = reactive({ |
|
|
leftWidth: 30, |
|
|
leftWidth: 30, |
|
|
resizable: true, |
|
|
resizable: true, |
|
|
rightWidth: 70, |
|
|
rightWidth: 70, |
|
|
splitHandle: false, |
|
|
splitHandle: true, |
|
|
splitLine: false, |
|
|
splitLine: true, |
|
|
}); |
|
|
}); |
|
|
const leftMinWidth = ref(props.leftMinWidth || 1); |
|
|
const leftMinWidth = ref(props.leftMinWidth || 1); |
|
|
const leftMaxWidth = ref(props.leftMaxWidth || 100); |
|
|
const leftMaxWidth = ref(props.leftMaxWidth || 100); |
|
|
@ -42,7 +42,11 @@ const leftMaxWidth = ref(props.leftMaxWidth || 100); |
|
|
<template #left="{ isCollapsed, expand }"> |
|
|
<template #left="{ isCollapsed, expand }"> |
|
|
<div v-if="isCollapsed" @click="expand"> |
|
|
<div v-if="isCollapsed" @click="expand"> |
|
|
<Tooltip title="点击展开左侧"> |
|
|
<Tooltip title="点击展开左侧"> |
|
|
<Button shape="circle" type="primary"> |
|
|
<Button |
|
|
|
|
|
shape="circle" |
|
|
|
|
|
type="primary" |
|
|
|
|
|
class="flex items-center justify-center" |
|
|
|
|
|
> |
|
|
<template #icon> |
|
|
<template #icon> |
|
|
<IconifyIcon class="text-2xl" icon="bi:arrow-right" /> |
|
|
<IconifyIcon class="text-2xl" icon="bi:arrow-right" /> |
|
|
</template> |
|
|
</template> |
|
|
|