問題:
Element-ui el-table組件樹狀表格使用max-height固定表頭之后,刷新頁面只能顯示到一級菜單的高度,滾動條無法拖動
原因:
審查元素知,max-height初始值太小了
解決:
給el-table增加class=“table-fixed”,style增加樣式
.table-fixed {
/deep/ .el-table__body-wrapper {
max-height: 200px !important;
}
}
Element-ui el-table組件樹狀表格使用max-height固定表頭之后,刷新頁面只能顯示到一級菜單的高度,滾動條無法拖動
審查元素知,max-height初始值太小了
給el-table增加class=“table-fixed”,style增加樣式
.table-fixed {
/deep/ .el-table__body-wrapper {
max-height: 200px !important;
}
}
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。