mirror of
https://github.com/1Panel-dev/1Panel
synced 2024-11-22 07:38:45 +00:00
feat: complex-table 改为固定表头
This commit is contained in:
parent
74e9ad87ac
commit
393d0295e2
@ -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);
|
||||||
|
@ -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) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user