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

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

View File

@@ -113,8 +113,8 @@ const [Grid, gridApi] = useVbenVxeGrid({
</template>
<Grid>
<template #top>
<Tabs class="-mt-11" @change="handleTabChange">
<template #toolbar-actions>
<Tabs class="w-full" @change="handleTabChange">
<TabPane
v-for="tab in statusTabs"
:key="tab.value"

View File

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