mirror of
https://github.com/zclzone/vue-naive-admin.git
synced 2025-08-08 20:29:00 +08:00
feat: 优化crud表格弹性高度
This commit is contained in:
parent
7243f4f38e
commit
0fe0b9d41b
@ -7,6 +7,7 @@
|
||||
--------------------------------->
|
||||
|
||||
<template>
|
||||
<div class="h-full flex flex-col overflow-hidden">
|
||||
<AppCard v-if="$slots.default" bordered bg="#fafafc dark:black" class="mb-30 min-h-60 rounded-4">
|
||||
<form class="flex justify-between p-16" @submit.prevent="handleSearch()">
|
||||
<n-scrollbar x-scrollable>
|
||||
@ -46,9 +47,12 @@
|
||||
:data="tableData"
|
||||
:row-key="(row) => row[rowKey]"
|
||||
:pagination="isPagination ? pagination : false"
|
||||
flex-height
|
||||
class="flex-1"
|
||||
@update:checked-row-keys="onChecked"
|
||||
@update:page="onPageChange"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
|
Loading…
x
Reference in New Issue
Block a user