1
0
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:
zclzone 2025-05-19 11:21:45 +08:00
parent 7243f4f38e
commit 0fe0b9d41b

View File

@ -7,6 +7,7 @@
---------------------------------> --------------------------------->
<template> <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"> <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()"> <form class="flex justify-between p-16" @submit.prevent="handleSearch()">
<n-scrollbar x-scrollable> <n-scrollbar x-scrollable>
@ -46,9 +47,12 @@
:data="tableData" :data="tableData"
:row-key="(row) => row[rowKey]" :row-key="(row) => row[rowKey]"
:pagination="isPagination ? pagination : false" :pagination="isPagination ? pagination : false"
flex-height
class="flex-1"
@update:checked-row-keys="onChecked" @update:checked-row-keys="onChecked"
@update:page="onPageChange" @update:page="onPageChange"
/> />
</div>
</template> </template>
<script setup> <script setup>