完善表格高度问题
This commit is contained in:
@@ -29,7 +29,11 @@
|
|||||||
></div>
|
></div>
|
||||||
</n-layout-sider>
|
</n-layout-sider>
|
||||||
|
|
||||||
<n-layout class="app-main" :class="{ 'app-main-fullscreen': isFullscreen }">
|
<n-layout
|
||||||
|
class="app-main"
|
||||||
|
:class="{ 'app-main-fullscreen': isFullscreen }"
|
||||||
|
content-style="display:flex;flex-direction:column;height:100%;min-height:0;"
|
||||||
|
>
|
||||||
<header v-if="!isFullscreen" class="app-header">
|
<header v-if="!isFullscreen" class="app-header">
|
||||||
<div class="header-main">
|
<div class="header-main">
|
||||||
<n-button
|
<n-button
|
||||||
@@ -264,9 +268,16 @@ async function handleLogout() {
|
|||||||
.content-scroll {
|
.content-scroll {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.content-scroll > * {
|
||||||
|
flex: 1 1 auto;
|
||||||
|
min-height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.app-backdrop {
|
.app-backdrop {
|
||||||
background: #f5f7fb;
|
background: #f5f7fb;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -198,6 +198,19 @@ body {
|
|||||||
padding: 12px 2px 0;
|
padding: 12px 2px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.app-vxe-table-body {
|
||||||
|
flex: 1;
|
||||||
|
min-height: 0;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.app-vxe-table-body > .vxe-table {
|
||||||
|
flex: 1;
|
||||||
|
min-height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.page-card .n-data-table {
|
.page-card .n-data-table {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user