fix: 修改Layout

This commit is contained in:
Shu Guang 2025-05-17 21:16:30 +08:00
parent eb6eee1294
commit 680575925c
2 changed files with 20 additions and 4 deletions

View File

@ -204,10 +204,26 @@ export default {
margin: 24px; margin: 24px;
padding: 24px; padding: 24px;
background: #fff; background: #fff;
height: 100vh; min-height: calc(100vh - 128px); // height
border-radius: 8px; border-radius: 8px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
min-height: calc(100vh - 128px); display: flex; // flex
flex-direction: column; //
flex: 1; //
overflow: auto; //
}
//
.ant-pro-basicLayout {
min-height: 100vh;
display: flex;
flex-direction: column;
}
.ant-pro-basicLayout-content-wrapper {
flex: 1;
display: flex;
flex-direction: column;
} }
.footer-container { .footer-container {

View File

@ -111,7 +111,7 @@ export default {
userData: [], userData: [],
imageUrlRegex: /(http[s]?:\/\/[^(\s|")]+\.(png|jpg|jpeg|gif|webp))/gi, imageUrlRegex: /(http[s]?:\/\/[^(\s|")]+\.(png|jpg|jpeg|gif|webp))/gi,
current: 1, current: 1,
pageSize: 8, pageSize: 4,
loading: true, loading: true,
loadingMore: false, loadingMore: false,
data: [], data: [],
@ -146,7 +146,7 @@ export default {
pageSize: this.pageSize, pageSize: this.pageSize,
total: this.total, total: this.total,
showSizeChanger: true, showSizeChanger: true,
pageSizeOptions: ["8", "9", "10", "20"], pageSizeOptions: ["4", "8", "10", "20"],
showQuickJumper: true, showQuickJumper: true,
showTotal: (total) => `Total ${total} items`, showTotal: (total) => `Total ${total} items`,
onChange: this.changePage, onChange: this.changePage,