feat: 优化 table tab 的显示

This commit is contained in:
xingyu4j
2025-10-20 14:44:39 +08:00
parent eb61ac3adb
commit 5ceffa2fe9
19 changed files with 59 additions and 41 deletions

View File

@@ -224,9 +224,8 @@ onMounted(async () => {
</template>
<Grid>
<template #top>
<!-- TODO @xingyutabs 可以考虑往上以一些和操作按钮在一排 -->
<ElTabs class="border-none" @tab-change="onChangeTab">
<template #toolbar-actions>
<ElTabs class="w-full" @tab-change="onChangeTab" :stretch="true">
<ElTabs.TabPane
v-for="item in tabsData"
:key="item.type"

View File

@@ -112,10 +112,10 @@ const [Grid, gridApi] = useVbenVxeGrid({
</template>
<Grid>
<template #top>
<template #toolbar-actions>
<ElTabs
:model-value="activeTab"
class="-mt-11"
class="w-full"
@tab-change="handleTabChange"
>
<ElTabPane

View File

@@ -98,10 +98,10 @@ onMounted(() => {
</template>
<Grid>
<template #top>
<template #toolbar-actions>
<ElTabs
v-model="statusTab"
class="-mt-11"
class="w-full"
@tab-change="handleChangeStatus"
>
<ElTabs.TabPane