chore: 优化左树右表

This commit is contained in:
秋帆
2025-01-12 20:30:32 +08:00
parent 4b61e4027e
commit 8c55504bf8
18 changed files with 123 additions and 172 deletions

View File

@@ -33,10 +33,10 @@
</a-doption>
</template>
</a-dropdown>
<a-popover
<a-popover
v-if="showSettingColumnBtn" trigger="click" position="br"
:content-style="{ minWidth: '120px', padding: '6px 8px 10px' }"
>
>
<a-tooltip content="列设置">
<a-button>
<template #icon>
@@ -77,15 +77,15 @@
</a-row>
<div class="gi-table__body" :class="`gi-table__body-pagination-${attrs['page-position']}`">
<div class="gi-table__container">
<a-table
ref="tableRef"
:stripe="stripe"
:size="size"
column-resizable
:bordered="{ cell: isBordered }"
v-bind="{ ...attrs, columns: _columns }"
:scrollbar="true"
:data="data"
<a-table
ref="tableRef"
:stripe="stripe"
:size="size"
column-resizable
:bordered="{ cell: isBordered }"
v-bind="{ ...attrs, columns: _columns }"
:scrollbar="true"
:data="data"
>
<template v-for="key in Object.keys(slots)" :key="key" #[key]="scoped">
<slot :key="key" :name="key" v-bind="scoped"></slot>
@@ -235,7 +235,7 @@ defineExpose({ tableRef })
height: 100%;
background: var(--color-bg-1);
position: relative;
box-sizing:border-box;
box-sizing: border-box;
&--fullscreen {
padding: $padding;
position: fixed;
@@ -256,6 +256,10 @@ defineExpose({ tableRef })
height: 100%;
}
:deep(.arco-table-container) {
flex: 1;
}
:deep(.arco-table-body) {
height: 100%;
}