style(frontend): 商品属性页底部分页与列表统一
- 属性页 el-tabs(左侧页签)的 __content 与 tab-pane 未设置高度, 面板的 height:100% 因此失效,分页跟着表格滚走 - 补齐 .el-tabs__content / .el-tab-pane 的 height:100%(tab-pane 改为 flex 列 + min-height:0), 与订单页同一套写法;面板内 .attr-panel 补 min-height:0 - 效果:商品分类/品牌/单位三个页签的分页均固定在底部,只有表格主体滚动 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
81855f2cab
commit
bbbaa36310
@ -48,4 +48,15 @@ const tabs: { key: AttrType; label: string }[] = [
|
||||
.attr-card :deep(.el-tabs--left .el-tabs__header) {
|
||||
margin-right: 16px;
|
||||
}
|
||||
/* 页签内容撑满,面板内部才能把分页固定到底部(与订单页一致) */
|
||||
.attr-card :deep(.el-tabs--left .el-tabs__content),
|
||||
.attr-card :deep(.el-tab-pane) {
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
.attr-card :deep(.el-tab-pane) {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -331,6 +331,7 @@ onMounted(fetchList)
|
||||
<style scoped>
|
||||
.attr-panel {
|
||||
height: 100%;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user