feat: implement adaptive layout with internal scrolling for outbound selection
Co-authored-by: aider (openai/DeepSeek-V3.2-Thinking) <aider@aider.chat>
This commit is contained in:
@ -59,15 +59,16 @@
|
|||||||
:closable="false"
|
:closable="false"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<el-table
|
<div class="table-wrapper">
|
||||||
v-loading="loading"
|
<el-table
|
||||||
:data="filteredTableData"
|
v-loading="loading"
|
||||||
style="width: 100%"
|
:data="filteredTableData"
|
||||||
@selection-change="handleSelectionChange"
|
style="width: 100%"
|
||||||
row-key="uuid"
|
@selection-change="handleSelectionChange"
|
||||||
border
|
row-key="uuid"
|
||||||
height="600"
|
border
|
||||||
>
|
height="100%"
|
||||||
|
>
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
|
||||||
<el-table-column label="类型" width="100" align="center">
|
<el-table-column label="类型" width="100" align="center">
|
||||||
@ -92,6 +93,7 @@
|
|||||||
<el-table-column prop="uuid" label="条码UUID" width="280" show-overflow-tooltip />
|
<el-table-column prop="uuid" label="条码UUID" width="280" show-overflow-tooltip />
|
||||||
<el-table-column prop="create_time" label="入库时间" width="170" />
|
<el-table-column prop="create_time" label="入库时间" width="170" />
|
||||||
</el-table>
|
</el-table>
|
||||||
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<el-dialog
|
<el-dialog
|
||||||
@ -467,4 +469,39 @@ onMounted(async () => {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 400px;
|
max-width: 400px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.app-container {
|
||||||
|
height: 100vh;
|
||||||
|
overflow: hidden;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
padding: 20px;
|
||||||
|
margin: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.app-container .el-card {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep(.el-card__body) {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-wrapper {
|
||||||
|
flex: 1;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 对话框内部滚动 */
|
||||||
|
::v-deep(.el-dialog__body) {
|
||||||
|
max-height: 70vh;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user