用户列表查看滚动条

This commit is contained in:
龚皓 2024-10-22 13:56:23 +08:00
parent 6159ce3a18
commit 13425be2ca
1 changed files with 6 additions and 3 deletions

View File

@ -36,7 +36,7 @@
<el-col :span="24"> <el-col :span="24">
<div class="table-part"> <div class="table-part">
<el-table v-loading="loading" :data="tableData" <el-table v-loading="loading" :data="tableData"
class="user-table" border> class="user-table" border max-height="550px">
<el-table-column v-if="getColumnVisibility('selection')" type="selection" <el-table-column v-if="getColumnVisibility('selection')" type="selection"
min-width="55"></el-table-column> min-width="55"></el-table-column>
<el-table-column v-if="getColumnVisibility('id')" prop="id" label="序号" <el-table-column v-if="getColumnVisibility('id')" prop="id" label="序号"
@ -259,7 +259,8 @@ const handleDeleteSelected = () => {
<style scoped> <style scoped>
.user-list { .user-list {
width: auto; /* width: 100%; */
/* height: 100%; */
overflow: auto; overflow: auto;
/* min-height: 650px; */ /* min-height: 650px; */
/* height: 100vh; */ /* height: 100vh; */
@ -267,7 +268,9 @@ const handleDeleteSelected = () => {
} }
.user-table{ .user-table{
width: 100%;
overflow: auto;
overflow-x: auto;
} }
.header { .header {