Skip to content

Commit 38f91da

Browse files
committed
fix: 优化双列布局组件点击展开左侧按钮位置不居中问题
1 parent 8edea3a commit 38f91da

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

playground/src/views/examples/layout/col-page.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ const props = reactive({
2222
leftWidth: 30,
2323
resizable: true,
2424
rightWidth: 70,
25-
splitHandle: false,
26-
splitLine: false,
25+
splitHandle: true,
26+
splitLine: true,
2727
});
2828
const leftMinWidth = ref(props.leftMinWidth || 1);
2929
const leftMaxWidth = ref(props.leftMaxWidth || 100);
@@ -42,7 +42,11 @@ const leftMaxWidth = ref(props.leftMaxWidth || 100);
4242
<template #left="{ isCollapsed, expand }">
4343
<div v-if="isCollapsed" @click="expand">
4444
<Tooltip title="点击展开左侧">
45-
<Button shape="circle" type="primary">
45+
<Button
46+
shape="circle"
47+
type="primary"
48+
class="flex items-center justify-center"
49+
>
4650
<template #icon>
4751
<IconifyIcon class="text-2xl" icon="bi:arrow-right" />
4852
</template>

0 commit comments

Comments
 (0)