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>
<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>
</fu-table>
</div>
@ -81,7 +81,6 @@ function handleSelectionChange(row: any) {
width: auto;
}
}
.complex-table__pagination {
margin-top: 20px;
@include flex-row(flex-end);

View file

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