feat: complex-table 改为固定表头

This commit is contained in:
zhengkunwang223 2022-08-18 17:29:53 +08:00
parent 74e9ad87ac
commit 393d0295e2
2 changed files with 3 additions and 4 deletions

View File

@ -22,7 +22,7 @@
</template> </template>
<div class="complex-table__body"> <div class="complex-table__body">
<fu-table v-bind="$attrs" @selection-change="handleSelectionChange"> <fu-table v-bind="$attrs" @selection-change="handleSelectionChange" height="67vh">
<slot></slot> <slot></slot>
</fu-table> </fu-table>
</div> </div>
@ -81,7 +81,6 @@ function handleSelectionChange(row: any) {
width: auto; width: auto;
} }
} }
.complex-table__pagination { .complex-table__pagination {
margin-top: 20px; margin-top: 20px;
@include flex-row(flex-end); @include flex-row(flex-end);

View File

@ -42,12 +42,12 @@ const data = ref();
const selects = ref<any>([]); const selects = ref<any>([]);
const paginationConfig = reactive({ const paginationConfig = reactive({
page: 1, page: 1,
pageSize: 5, pageSize: 20,
total: 0, total: 0,
}); });
const userSearch = reactive({ const userSearch = reactive({
page: 1, page: 1,
pageSize: 5, pageSize: 20,
}); });
const openOperate = (row: User.User | null) => { const openOperate = (row: User.User | null) => {